Cargo Features

[dependencies]
jsonrpc-core = { version = "18.0.0", default-features = false, features = ["arbitrary_precision", "futures", "futures-executor"] }
default = futures, futures-executor

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

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.

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.

futures default

Enables futures

FIXME: Currently a lot of jsonrpc-* crates depend on entire futures being re-exported but it's not strictly required for this crate. Either adapt the remaining crates or settle for this re-export to be a single, common dependency

futures-executor default