Cargo Features

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

[dependencies]
uniswap-v4-sdk = { version = "0.5.0", features = ["std", "extensions"] }
std

Enables std of thiserror, uniswap-sdk-core ^4.0.1, and uniswap-v3-sdk

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

Enables extensions of uniswap-v3-sdk

uniswap-v4-sdk has 2 features without comments.