Cargo Features

[dependencies]
xrpl-rust = { version = "0.3.0", default-features = false, features = ["std", "models", "transaction-models", "request-models", "result-models", "ledger-models", "helpers", "account-helpers", "ledger-helpers", "wallet-helpers", "transaction-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 default-features = false somewhere in the dependency tree.

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 ^0.29.0, 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 = ledger-models, request-models, result-models, transaction-models
transaction-models models transaction-helpers? = core

Affects models::transactions, xrpl-rust::models

request-models account-helpers? json-rpc ledger-helpers? models result-models? transaction-helpers? wallet-helpers? websocket

Affects models::requests, xrpl-rust::models

result-models account-helpers? json-rpc ledger-helpers? models transaction-helpers? wallet-helpers? websocket = ledger-models, request-models

Affects models::results, xrpl-rust::models

ledger-models models result-models? transaction-helpers?

Affects models::ledger, xrpl-rust::models

helpers default = account-helpers, ledger-helpers, transaction-helpers, wallet-helpers
account-helpers helpers transaction-helpers? = core, request-models, result-models

Affects xrpl-rust::account, asynch::account, xrpl-rust::asynch

ledger-helpers helpers transaction-helpers? = request-models, result-models

Affects xrpl-rust::ledger, asynch::ledger, xrpl-rust::asynch

wallet-helpers helpers = request-models, result-models, wallet

Affects asynch::wallet, xrpl-rust::asynch

transaction-helpers helpers = account-helpers, ledger-helpers, ledger-models, request-models, result-models, transaction-models, wallet

Affects xrpl-rust::transaction, asynch::transaction, xrpl-rust::asynch

wallet default transaction-helpers? wallet-helpers? = core

Affects xrpl-rust::wallet

json-rpc default = embedded-nal-async, request-models, reqwless, result-models

Affects clients::json_rpc, asynch::clients, clients::json_rpc, xrpl-rust::clients, asynch::account, asynch::ledger, asynch::transaction, asynch::wallet, xrpl-rust::asynch

websocket default = embedded-io-async, embedded-websocket-embedded-io, futures, request-models, result-models

Affects clients::websocket, asynch::clients, clients::websocket, xrpl-rust::clients, asynch::account, asynch::ledger, asynch::transaction, asynch::wallet, xrpl-rust::asynch

core default account-helpers? transaction-models? wallet = utils

Affects xrpl-rust::core

utils default core

Affects xrpl-rust::utils

tokio-rt default

runtimes

Enables time of tokio

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 websocket
futures std websocket
tokio std tokio-rt
embedded-websocket-embedded-io std websocket
reqwless json-rpc

Enables reqwless ^0.12.1

reqwest std
tokio-tungstenite std

Enables tokio-tungstenite ^0.23.1

embedded-nal-async json-rpc

Enables embedded-nal-async ^0.7.1

futures-executor implicit feature

Enables futures-executor

futures-executor:

Executors for asynchronous tasks based on the futures-rs library