Cargo Features

[dependencies]
heed-types = { version = "0.20.0", default-features = false, features = ["serde-bincode", "serde-json", "serde-rmp", "preserve_order", "arbitrary_precision", "raw_value", "unbounded_depth"] }
default = serde-bincode, serde-json

These default features are set whenever heed-types is added without default-features = false somewhere in the dependency tree.

serde-bincode default = bincode, serde
serde-json default = serde, serde_json
serde-rmp = rmp-serde, serde
preserve_order

serde_json features

Enables preserve_order of serde_json

arbitrary_precision

Enables arbitrary_precision of serde_json

serde_json:

Use an arbitrary precision number representation for serde_json::Number. This allows JSON numbers of arbitrary size/precision to be read into a Number and written back to a JSON string without loss of precision.

Unlike float_roundtrip, this feature makes JSON -> serde_json::Number -> JSON produce output identical to the input.

raw_value

Enables raw_value of serde_json

serde_json:

Provide a RawValue type that can hold unprocessed JSON during deserialization.

unbounded_depth

Enables unbounded_depth of serde_json

serde_json:

Provide a method disable_recursion_limit to parse arbitrarily deep JSON structures without any consideration for overflowing the stack. When using this feature, you will want to provide some other way to protect against stack overflows, such as by wrapping your Deserializer in the dynamically growing stack adapter provided by the serde_stacker crate. Additionally you will need to be careful around other recursive operations on the parsed result which may overflow the stack after deserialization has completed, including, but not limited to, Display and Debug and Drop impls.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

bincode serde-bincode
serde serde-bincode serde-json serde-rmp?
serde_json arbitrary_precision? preserve_order? raw_value? serde-json unbounded_depth?
rmp-serde serde-rmp?