Cargo Features
uniswap-v4-sdk has no features set by default.
[dependencies]
uniswap-v4-sdk = { version = "0.1.1", features = ["std"] }
- std
-
Enables std of thiserror, uniswap-sdk-core, 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())].
uniswap-v4-sdk has 1 feature without comment.