Cargo Features

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

[dependencies]
uniswap-sdk-core = { version = "3.1.0", features = ["std", "validate_parse_address"] }
std

Enables std of thiserror

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())].

validate_parse_address = eth_checksum, regex

Affects utils::validate_and_parse_address

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.

eth_checksum validate_parse_address?
regex validate_parse_address?