Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
archeoss committed Nov 13, 2023
1 parent 5f1f8d3 commit dc58999
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 1,130 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ features = ["fs", "io-util", "sync", "time", "rt", "macros", "rt-multi-thread"]

[features]
# default = ["benchmark"]
default = ["runtime-rng"]
benchmark = ["clap"]

# Runtime random key generation using getrandom.
runtime-rng = ["getrandom"]

[lib]
name = "pearl"

Expand Down
21 changes: 0 additions & 21 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,6 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs");

// aHash build script
let os = std::env::var("CARGO_CFG_TARGET_OS").expect("CARGO_CFG_TARGET_OS was not set");
if os.eq_ignore_ascii_case("linux")
|| os.eq_ignore_ascii_case("android")
|| os.eq_ignore_ascii_case("windows")
|| os.eq_ignore_ascii_case("macos")
|| os.eq_ignore_ascii_case("ios")
|| os.eq_ignore_ascii_case("freebsd")
|| os.eq_ignore_ascii_case("openbsd")
|| os.eq_ignore_ascii_case("dragonfly")
|| os.eq_ignore_ascii_case("solaris")
|| os.eq_ignore_ascii_case("illumos")
|| os.eq_ignore_ascii_case("fuchsia")
|| os.eq_ignore_ascii_case("redox")
|| os.eq_ignore_ascii_case("cloudabi")
|| os.eq_ignore_ascii_case("haiku")
|| os.eq_ignore_ascii_case("vxworks")
|| os.eq_ignore_ascii_case("emscripten")
|| os.eq_ignore_ascii_case("wasi")
{
println!("cargo:rustc-cfg=feature=\"runtime-rng\"");
}
let arch = std::env::var("CARGO_CFG_TARGET_ARCH").expect("CARGO_CFG_TARGET_ARCH was not set");
if arch.eq_ignore_ascii_case("x86_64")
|| arch.eq_ignore_ascii_case("aarch64")
Expand Down
Loading

0 comments on commit dc58999

Please sign in to comment.