-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
thiserror
an optional dependency
The `thiserror` crate has been made an optional dependency in order to support both `std` and `no_std` environments. This change is reflected in the `Cargo.toml` and related Rust files. The SDK version has been updated as a result.
- Loading branch information
Showing
5 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "uniswap-sdk-core" | ||
version = "0.25.0" | ||
version = "0.26.0" | ||
edition = "2021" | ||
authors = ["malik <[email protected]>", "Shuhui Luo <twitter.com/aureliano_law>"] | ||
description = "The Uniswap SDK Core in Rust provides essential functionality for interacting with the Uniswap decentralized exchange" | ||
|
@@ -16,9 +16,10 @@ num-integer = "0.1" | |
num-traits = "0.2" | ||
regex = { version = "1.10", optional = true } | ||
rustc-hash = "2.0" | ||
thiserror = "1.0" | ||
thiserror = { version = "1.0", optional = true } | ||
|
||
[features] | ||
std = ["thiserror"] | ||
validate_parse_address = ["eth_checksum", "regex"] | ||
|
||
[lib] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
///token example | ||
pub mod token_example; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters