Cargo Features

uniswap-v3-sdk has no features set by default.

[dependencies]
uniswap-v3-sdk = { version = "2.9.1", features = ["std", "extensions"] }
std

Enables std of optional alloy, thiserror, optional uniswap-lens, and uniswap-sdk-core

thiserror:

Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.

#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}

Without std, this would need to be written #[error("... {}", path.display())].

extensions = alloy, anyhow, base64, regex, serde_json, uniswap-lens

Affects uniswap-v3-sdk::extensions

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.

alloy extensions?
anyhow extensions?
base64 extensions?
regex extensions?
serde_json extensions?
uniswap-lens extensions?