Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The wasm_bindgen support of fuel-asm and fuel-types #499

Merged
merged 8 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
args: --target thumbv6m-none-eabi -p fuel-asm -p fuel-storage -p fuel-merkle --no-default-features
- command: check
args: --target wasm32-unknown-unknown -p fuel-crypto --no-default-features
- command: rustc
args: --target wasm32-unknown-unknown -p fuel-types --features typescript --crate-type=cdylib
- command: rustc
args: --target wasm32-unknown-unknown -p fuel-asm --features typescript --crate-type=cdylib
- command: make
args: check
- command: test
Expand Down
10 changes: 6 additions & 4 deletions fuel-asm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ description = "Atomic types of the FuelVM."
[dependencies]
arbitrary = { version = "1.1", features = ["derive"], optional = true }
bitflags = "1.3"
fuel-types = { workspace = true, default-features = false }
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
strum = { version = "0.24", default-features = false, features = ["derive"] }
wasm-bindgen = { version = "0.2.87", optional = true }
wee_alloc = { version = "0.4.5", optional = true }

[dev-dependencies]
bincode = { workspace = true }
fuel-asm = { path = ".", features = ["serde"] }
rstest = "0.16"

[features]
default = ["fuel-types/default", "std"]
std = ["fuel-types/std", "serde?/default"]
serde = ["dep:serde", "fuel-types/serde"]
default = ["std"]
typescript = ["wasm-bindgen", "wee_alloc"]
std = ["serde?/default"]
serde = ["dep:serde"]

# docs.rs-specific configuration
# preview with `RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --open`
Expand Down
Loading