[go: up one dir, main page]

bson 1.2.4

Encoding and decoding support for BSON in Rust
Documentation
[package]
name = "bson"
version = "1.2.4"
authors = [
    "Y. T. Chung <zonyitoo@gmail.com>",
    "Kevin Yeh <kevinyeah@utexas.edu>",
    "Saghm Rossi <saghmrossi@gmail.com>",
    "Patrick Freed <patrick.freed@mongodb.com>",
    "Isabel Atkinson <isabel.atkinson@mongodb.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 = []
# Experimental / unstable Decimal128 support
# Note: this feature is deprecated and will be removed in 2.0.0.
# The feature is not recommended for use as it causes decimal128
# values to be serialized incorrectly to BSON.
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.13.0"
lazy_static = "1.4.0"
uuid = "0.8.1"

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

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