Cargo Features
[dependencies]
stellar-xdr = { version = "22.0.0", default-features = false, features = ["std", "alloc", "curr", "next", "base64", "serde", "serde_json", "schemars", "hex", "arbitrary", "cli"] }
- default = curr, std
-
These default features are set whenever
stellar-xdr
is added without
somewhere in the dependency tree.default-features = false - std default arbitrary? base64? cli? serde_json? = alloc
-
Affects
generated::Limits
,generated::Limited
,generated::ReadXdrIter
,generated::ReadXdr.read_xdr
,generated::ReadXdr.read_xdr_to_end
,generated::ReadXdr.read_xdr_into
,generated::ReadXdr.read_xdr_into_to_end
,generated::ReadXdr.read_xdr_iter
,generated::ReadXdr.from_xdr
,generated::WriteXdr.write_xdr
,generated::WriteXdr.to_xdr
,generated::Limits
,generated::Limited
,generated::ReadXdrIter
,generated::ReadXdr.read_xdr
,generated::ReadXdr.read_xdr_to_end
… - alloc schemars? serde? std
-
Enables hex and stellar-strkey ^0.0.9, alloc of escape-bytes
Affects
generated::VecM
,generated::BytesM
,generated::StringM
,generated::VecM
,generated::BytesM
,generated::StringM
… - curr default cli?
-
Affects
stellar-xdr::curr
… - next cli?
-
Affects
stellar-xdr::next
… - base64 cli? = std
-
Features dependent on optional dependencies.
Enables base64 ^0.13.0
Affects
generated::ReadXdr.read_xdr_base64
,generated::ReadXdr.read_xdr_base64_to_end
,generated::ReadXdr.read_xdr_base64_iter
,generated::ReadXdr.from_xdr_base64
,generated::WriteXdr.to_xdr_base64
,generated::ReadXdr.read_xdr_base64
,generated::ReadXdr.read_xdr_base64_to_end
,generated::ReadXdr.read_xdr_base64_iter
,generated::ReadXdr.from_xdr_base64
,generated::WriteXdr.to_xdr_base64
… - serde cli? schemars? serde_json? = alloc
-
Enables serde and serde_with, serde of hex
- serde_json cli? schemars? = serde, std
-
Enables serde_json
- schemars cli? = alloc, serde, serde_json
-
Enables schemars
- hex serde?
- arbitrary = std
-
Enables arbitrary
- cli = base64, curr, next, schemars, serde, serde_json, std
-
Features for the CLI.
Enables clap and thiserror ^1.0.37
Affects
stellar-xdr::cli
…Required by the binary