forked from able/libwasm
Merge pull request 'fix dependency issues' (#2) from theoddgarlic/libwasm:master into master
Reviewed-on: https://git.ablecorp.us:443/able/libwasm/pulls/2
This commit is contained in:
commit
a3716d7cfc
|
@ -6,7 +6,7 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
once_cell = { version = "1.10.0", default-features = false, features = ["std"], optional = true }
|
once_cell = { version = "1.10.0", default-features = false, optional = true }
|
||||||
rand_core = { version = "0.6", default-features = false, optional = true }
|
rand_core = { version = "0.6", default-features = false, optional = true }
|
||||||
rand_pcg = { version = "0.3.1", default-features = false, optional = true }
|
rand_pcg = { version = "0.3.1", default-features = false, optional = true }
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ rand_core = { version = "0.6", default-features = false, optional = true, featur
|
||||||
[features]
|
[features]
|
||||||
default = ["rng", "pcg_rng", "io"]
|
default = ["rng", "pcg_rng", "io"]
|
||||||
# Controls availability of the `rand` module, which provides seeding for `rand` (the crate) RNGs.
|
# Controls availability of the `rand` module, which provides seeding for `rand` (the crate) RNGs.
|
||||||
rng = ["dep:rand_core"]
|
rng = ["rand_core"]
|
||||||
# Controls the availability of `obtain_rng`, which internally uses `rand_pcg`.
|
# Controls the availability of `obtain_rng`, which internally uses `rand_pcg`.
|
||||||
pcg_rng = ["rng", "dep:rand_pcg"]
|
pcg_rng = ["rng", "rand_pcg"]
|
||||||
# Controls the availability of the cross platform `io` module.
|
# Controls the availability of the cross platform `io` module.
|
||||||
io = ["dep:once_cell"]
|
io = ["once_cell"]
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
//! ```text
|
//! ```text
|
||||||
//! RUSTFLAGS='--cfg=ableOS' cargo build --target=wasm32-unknown-unknown
|
//! RUSTFLAGS='--cfg=ableOS' cargo build --target=wasm32-unknown-unknown
|
||||||
//! ```
|
//! ```
|
||||||
|
#![no_std]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
pub mod logger;
|
pub mod logger;
|
||||||
|
|
Loading…
Reference in a new issue