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

feat: Support no_std and WASM compilation for fuel-core crates #1411

Merged
merged 47 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
6a76d6d
WIP
bvrooman Oct 10, 2023
df43d9c
Update Cargo.toml
bvrooman Oct 10, 2023
619d4cb
Add wasm32 target
bvrooman Oct 10, 2023
2295561
Update
bvrooman Oct 11, 2023
1bddc4b
SOme improvments
xgreenx Oct 11, 2023
f4e3d2e
Something else
xgreenx Oct 11, 2023
dd4a46d
Use fuel-vm with alloc in fuel-types
bvrooman Oct 11, 2023
7ab3542
Update types cargo
bvrooman Oct 11, 2023
c9b0008
Merge branch 'master' into bvrooman/chore/compile-wasm-fuel-core-types
Oct 12, 2023
2976977
Update errors
bvrooman Oct 12, 2023
c8e6a4d
Merge branch 'bvrooman/chore/compile-wasm-fuel-core-types' of https:/…
bvrooman Oct 12, 2023
a749873
Changelog
bvrooman Oct 12, 2023
bd25633
Update Cargo.toml
bvrooman Oct 12, 2023
e43f9e3
WIP
bvrooman Oct 12, 2023
9cc9623
Add wasm compat checks
bvrooman Oct 12, 2023
9e1dcaf
Temporary crate patch
bvrooman Oct 12, 2023
f207405
Update ci.yml
bvrooman Oct 12, 2023
a1991fb
WIP
bvrooman Oct 12, 2023
39bb9bc
Update fuel-core with manual anyhow error after removing std from errors
bvrooman Oct 12, 2023
de7a137
Use std in fuel-core-types dev-dependencies
bvrooman Oct 12, 2023
1a66cba
manually map non-std errors to anyhow error
bvrooman Oct 12, 2023
d5377fc
Reinstate check fuel-core-client with wasm target
bvrooman Oct 12, 2023
2bd4a96
clippyssiah
bvrooman Oct 12, 2023
fe4809d
Update sub_services.rs
bvrooman Oct 13, 2023
aef3222
Update blockchain benches
bvrooman Oct 13, 2023
0a72217
Add derive_more to errors and use implicit conversions
bvrooman Oct 13, 2023
046ff68
Impl From<Error>
bvrooman Oct 13, 2023
37bdbfc
Clean up
bvrooman Oct 13, 2023
662812c
Add comment for default consensus key
bvrooman Oct 13, 2023
e83a116
Clean up
bvrooman Oct 13, 2023
eeb02a1
Add random feature to chain-config
bvrooman Oct 13, 2023
79ad7f4
chain-config features
bvrooman Oct 13, 2023
c1ccde3
Revert
bvrooman Oct 13, 2023
0efa024
Clean up
bvrooman Oct 13, 2023
4c75045
Clean up
bvrooman Oct 13, 2023
cf8d174
Clean up
bvrooman Oct 13, 2023
da57a31
Simplification of client.rs
bvrooman Oct 13, 2023
2b5eb8e
Update
bvrooman Oct 13, 2023
9e8a648
Update Cargo.toml
bvrooman Oct 13, 2023
afd2815
Update Cargo.lock
bvrooman Oct 13, 2023
3a512d0
no_std support for fuel-core-chain-config
bvrooman Oct 13, 2023
016b5aa
Fix toml
bvrooman Oct 13, 2023
a98d209
Fix test compilation
bvrooman Oct 13, 2023
675dab1
Fix compilation
bvrooman Oct 13, 2023
ae36669
Update Cargo.toml
bvrooman Oct 13, 2023
e618d64
Minimize changes
xgreenx Oct 17, 2023
00c8d7c
Merge branch 'master' into bvrooman/chore/compile-wasm-fuel-core-types
xgreenx Oct 17, 2023
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
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ jobs:
args: --manifest-path version-compatibility/Cargo.toml --workspace
- command: build
args: -p fuel-core-bin --no-default-features --features production

# WASM compatibility checks
- command: check
args: -p fuel-core-types --target wasm32-unknown-unknown --no-default-features

# disallow any job that takes longer than 45 minutes
timeout-minutes: 45
continue-on-error: ${{ matrix.skip-error || false }}
Expand All @@ -127,6 +132,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
targets: "wasm32-unknown-unknown"
components: "clippy"
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
Expand Down
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ version = { workspace = true }
anyhow = { workspace = true }
derive_more = { version = "0.99" }
fuel-vm-private = { workspace = true }
getrandom = { version = "0.2", features = ["js"] }
bvrooman marked this conversation as resolved.
Show resolved Hide resolved
secrecy = "0.8"
serde = { workspace = true, features = ["derive"], optional = true }
tai64 = { version = "4.0", features = ["serde"] }
Expand Down
1 change: 1 addition & 0 deletions crates/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub mod blockchain;
pub mod entities;
pub mod services;

use getrandom as _;
/// Re-export of some fuel-vm types
pub mod fuel_vm {
#[doc(no_inline)]
Expand Down
Loading