[go: up one dir, main page]

bson 1.1.0

Encoding and decoding support for BSON in Rust
Documentation
[package]
name = "bson"
version = "1.1.0"
authors = [
    "Y. T. Chung <zonyitoo@gmail.com>",
    "Kevin Yeh <kevinyeah@utexas.edu>",
    "Saghm Rossi <saghmrossi@gmail.com>"
]
description = "Encoding and decoding support for BSON in Rust"
license = "MIT"
readme = "README.md"
homepage = "https://github.com/mongodb/bson-rust"
documentation = "https://docs.rs/crate/bson"
edition = "2018"

# By default cargo include everything git include
# cargo diet can help to manage what's not useful.
exclude = [
    "etc/**",
    "examples/**",
    "fuzz/**",
    "serde-tests/**",
    "src/tests/**",
    "rustfmt.toml",
    ".travis.yml",
    ".evergreen/**",
    ".gitignore"
]

[features]
# no features by default
default = []
# attempt to encode unsigned types in signed types
u2i = []
# Decimal128 in BSON 1.1
decimal128 = ["decimal"]

[lib]
name = "bson"

[dependencies]
chrono = "0.4"
rand = "0.7"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
linked-hash-map = "0.5.3"
hex = "0.4.2"
decimal = { version = "2.0.4", default_features = false, optional = true }
base64 = "0.12.1"
lazy_static = "1.4.0"

[dev-dependencies]
assert_matches = "1.2"
serde_bytes = "0.11"
pretty_assertions = "0.6.1"

[package.metadata.docs.rs]
features = ["decimal128"]