Cargo Features
[dependencies]
cardano-serialization-lib = { version = "13.1.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 whenevercardano-serialization-lib
is added without
somewhere in the dependency tree.default-features = false - 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