Cargo Features

[dependencies]
cardano-serialization-lib = { version = "13.2.0", default-features = false, features = ["arbitrary-precision-json", "property-test-api", "with-bench"] }
default = arbitrary-precision-json

The arbitrary-precision-json feature is set by default whenever cardano-serialization-lib is added without default-features = false somewhere in the dependency tree.

arbitrary-precision-json default

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.

property-test-api

TODO: need to review the features and delete legacy ones. List is defined to avoid warnings.

Affects property::testing

generic-serialization with-bench