| 1 |
[package] |
| 2 |
name = "bson" |
| 3 |
version = "2.10.0" |
| 4 |
authors = [ |
| 5 |
"Y. T. Chung <[email protected]>", |
| 6 |
"Kevin Yeh <[email protected]>", |
| 7 |
"Saghm Rossi <[email protected]>", |
| 8 |
"Patrick Freed <[email protected]>", |
| 9 |
"Isabel Atkinson <[email protected]>", |
| 10 |
"Abraham Egnor <[email protected]>", |
| 11 |
] |
| 12 |
description = "Encoding and decoding support for BSON in Rust" |
| 13 |
license = "MIT" |
| 14 |
readme = "README.md" |
| 15 |
repository = "https://github.com/mongodb/bson-rust" |
| 16 |
edition = "2018" |
| 17 |
keywords = ["bson", "mongodb", "serde", "serialization", "deserialization"] |
| 18 |
categories = ["encoding"] |
| 19 |
|
| 20 |
# By default cargo include everything git include |
| 21 |
# cargo diet can help to manage what's not useful. |
| 22 |
exclude = [ |
| 23 |
"etc/**", |
| 24 |
"examples/**", |
| 25 |
"fuzz/**", |
| 26 |
"serde-tests/**", |
| 27 |
"src/tests/**", |
| 28 |
"rustfmt.toml", |
| 29 |
".travis.yml", |
| 30 |
".evergreen/**", |
| 31 |
".gitignore" |
| 32 |
] |
| 33 |
|
| 34 |
[features] |
| 35 |
default = [] |
| 36 |
# if enabled, include API for interfacing with chrono 0.4 |
| 37 |
chrono-0_4 = ["chrono"] |
| 38 |
# if enabled, include API for interfacing with uuid 0.8 |
| 39 |
# This is commented out because Cargo implicitly adds this feature since |
| 40 |
# uuid-0_8 is also an optional dependency. |
| 41 |
# uuid-0_8 = [] |
| 42 |
# if enabled, include API for interfacing with uuid 1.x |
| 43 |
uuid-1 = [] |
| 44 |
# if enabled, include API for interfacing with time 0.3 |
| 45 |
time-0_3 = [] |
| 46 |
# if enabled, include serde_with interop. |
| 47 |
# should be used in conjunction with chrono-0_4 or uuid-0_8. |
| 48 |
# it's commented out here because Cargo implicitly adds a feature flag for |
| 49 |
# all optional dependencies. |
| 50 |
# serde_with |
| 51 |
|
| 52 |
[lib] |
| 53 |
name = "bson" |
| 54 |
|
| 55 |
[dependencies] |
| 56 |
ahash = "0.8.0" |
| 57 |
chrono = { version = "0.4.15", features = ["std"], default-features = false, optional = true } |
| 58 |
rand = "0.8" |
| 59 |
serde = { version = "1.0", features = ["derive"] } |
| 60 |
serde_json = { version = "1.0", features = ["preserve_order"] } |
| 61 |
indexmap = "2.1.0" |
| 62 |
hex = "0.4.2" |
| 63 |
base64 = "0.13.0" |
| 64 |
once_cell = "1.5.1" |
| 65 |
uuid-0_8 = { package = "uuid", version = "0.8.1", features = ["serde", "v4"], optional = true } |
| 66 |
uuid = { version = "1.1.2", features = ["serde", "v4"] } |
| 67 |
serde_bytes = "0.11.5" |
| 68 |
serde_with = { version = "1.3.1", optional = true } |
| 69 |
serde_with-3 = { package = "serde_with", version = "3.1.0", optional = true } |
| 70 |
time = { version = "0.3.9", features = ["formatting", "parsing", "macros", "large-dates"] } |
| 71 |
bitvec = "1.0.1" |
| 72 |
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] |
| 73 |
js-sys = "0.3" |
| 74 |
|
| 75 |
[dev-dependencies] |
| 76 |
assert_matches = "1.2" |
| 77 |
criterion = "0.3.0" |
| 78 |
pretty_assertions = "0.6.1" |
| 79 |
proptest = "1.0.0" |
| 80 |
serde_bytes = "0.11" |
| 81 |
chrono = { version = "0.4", features = ["serde", "clock", "std"], default-features = false } |
| 82 |
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] |
| 83 |
getrandom = { version = "0.2", features = ["js"] } |
| 84 |
|
| 85 |
[package.metadata.docs.rs] |
| 86 |
all-features = true |
| 87 |
rustdoc-args = ["--cfg", "docsrs"] |