-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependency on rand for no_std compatibility
- Loading branch information
1 parent
6e07fd7
commit 23c249e
Showing
10 changed files
with
72 additions
and
111 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "graphlib" | ||
version = "0.6.3" | ||
authors = ["Octavian Oncescu <[email protected]>"] | ||
edition = "2018" | ||
edition = "2021" | ||
repository = "https://github.com/purpleprotocol/graphlib" | ||
keywords = ["graph", "data-structures", "mutable", "graph-algorithm", "no-std"] | ||
categories = ["data-structures", "no-std"] | ||
|
@@ -14,22 +14,28 @@ readme = "README.md" | |
travis-ci = { repository = "purpleprotocol/graphlib", branch = "master" } | ||
|
||
[dependencies] | ||
rand = { version = "0.7.3", default-features = false } | ||
rand_core = { version = "0.5.1", default-features = false } | ||
rand_isaac = { version = "0.2.0", default-features = false } | ||
hex = { version = "0.4.0", default-features = false } | ||
hex = { version = "0.4.3", default-features = false, features = ["alloc"] } | ||
hashbrown = { version = "0.6.3", default-features = false, features = ["inline-more", "ahash"] } | ||
dot = { version = "0.1.4", optional = true } | ||
dot = { version = "0.1.4", default-features = false, optional = true } | ||
|
||
[dev-dependencies] | ||
criterion = "0.3.0" | ||
|
||
[lib] | ||
name = "graphlib" | ||
path = "src/lib.rs" | ||
crate-type = [ | ||
"lib", | ||
] | ||
|
||
[[bench]] | ||
name = "benchmark" | ||
harness = false | ||
|
||
[features] | ||
default = ["hashbrown/nightly"] | ||
# std needs to be a default feature or else you get the following error: | ||
# ink! only supports compilation as `std` or `no_std` + `wasm32-unknown`" | ||
default = ["hashbrown/nightly", "std"] | ||
# use `cargo bench --features sbench` only if you want benchmarks with 10 million | ||
# iterations (may fail on some systems) | ||
sbench = [] | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[toolchain] | ||
channel = "nightly-2022-09-08" | ||
components = [ "rustfmt" ] | ||
targets = [ "wasm32-unknown-unknown" ] |
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
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
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
Oops, something went wrong.