Cargo Features
[dependencies]
xrpl-rust = { version = "0.4.0", default-features = false, features = ["std", "models", "helpers", "wallet", "json-rpc", "websocket", "core", "utils", "tokio-rt", "embassy-rt", "actix-rt", "async-std-rt", "futures-rt", "smol-rt", "futures-executor"] }
- default = core, helpers, json-rpc, models, std, tokio-rt, utils, wallet, websocket
-
These default features are set whenever
xrpl-rust
is added without
somewhere in the dependency tree.default-features = false - std default = reqwest, tokio, tokio-tungstenite
-
Enables std and std_rng of rand, std of bs58, chrono, embedded-websocket-embedded-io, futures, hex, and indexmap and std of regex, rust_decimal, secp256k1, and serde
regex:
ECOSYSTEM FEATURES
The 'std' feature permits the regex crate to use the standard library. This is intended to support future use cases where the regex crate may be able to compile without std, and instead just rely on 'core' and 'alloc' (for example). Currently, this isn't supported, and removing the 'std' feature will prevent regex from compiling.Affects
client::XRPLClient.get_random_id
,clients::json_rpc
,clients::websocket
… - models default helpers json-rpc websocket = core
-
Affects
xrpl-rust::models
,models::ledger
,models::requests
,models::results
,models::transactions
… - helpers default = core, models, wallet
-
Affects
clients::XRPLFaucet
,asynch::account
,asynch::ledger
,asynch::transaction
,asynch::wallet
,xrpl-rust::account
,xrpl-rust::ledger
,xrpl-rust::transaction
,wallet::faucet_generation
,xrpl-rust::asynch
… - wallet default helpers = core
-
Affects
xrpl-rust::wallet
… - json-rpc default = embedded-io-async, embedded-nal-async, models, reqwless
-
Affects
clients::json_rpc
,asynch::clients
,clients::json_rpc
,xrpl-rust::clients
,xrpl-rust::asynch
… - websocket default = embedded-io-async, embedded-websocket-embedded-io, futures, models
-
Affects
clients::websocket
,asynch::clients
,clients::websocket
,xrpl-rust::clients
,xrpl-rust::asynch
… - core default helpers models wallet = utils
-
Affects
xrpl-rust::core
… - utils default core
-
Affects
xrpl-rust::utils
… - tokio-rt default
-
runtimes
- embassy-rt
-
Enables embassy-time
- actix-rt
-
Enables actix-rt
- async-std-rt
-
Enables async-std
- futures-rt
-
Enables futures-timer
- smol-rt
-
Enables smol
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.
- embedded-io-async json-rpc websocket
- futures std websocket
- tokio std tokio-rt
- embedded-websocket-embedded-io std websocket
- reqwless json-rpc
- reqwest std
- tokio-tungstenite std
- embedded-nal-async json-rpc
- futures-executor implicit feature
-
Enables futures-executor
futures-executor:
Executors for asynchronous tasks based on the futures-rs library