diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e7bc7532de..c9eac7317c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,6 +129,8 @@ jobs: args: -p fuel-core-client --target wasm32-unknown-unknown --no-default-features - command: check args: -p fuel-core-chain-config --target wasm32-unknown-unknown --no-default-features + - command: check + args: -p fuel-core-executor --target wasm32-unknown-unknown --no-default-features # disallow any job that takes longer than 45 minutes timeout-minutes: 45 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eaa7af66c9..d62eeafbfc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ Description of the upcoming release here. - [#1515](https://github.com/FuelLabs/fuel-core/pull/1515): Added support of `--version` command for `fuel-core-keygen` binary. - [#1504](https://github.com/FuelLabs/fuel-core/pull/1504): A `Success` or `Failure` variant of `TransactionStatus` returned by a query now contains the associated receipts generated by transaction execution. +#### Breaking +- [#1531](https://github.com/FuelLabs/fuel-core/pull/1531): Make `fuel-core-executor` `no_std` compatible. It affects the `fuel-core` crate because it uses the `fuel-core-executor` crate. The change is breaking because of moved types. + ### Changed - [#1517](https://github.com/FuelLabs/fuel-core/pull/1517): Changed default gossip heartbeat interval to 500ms. diff --git a/Cargo.toml b/Cargo.toml index 064dabd2cb5..2938071d4f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ fuel-core-client-bin = { version = "0.21.0", path = "./bin/client" } fuel-core-bin = { version = "0.21.0", path = "./bin/fuel-core" } fuel-core-keygen = { version = "0.21.0", path = "./crates/keygen" } fuel-core-keygen-bin = { version = "0.21.0", path = "./bin/keygen" } -fuel-core-chain-config = { version = "0.21.0", path = "./crates/chain-config" } +fuel-core-chain-config = { version = "0.21.0", path = "./crates/chain-config", default-features = false } fuel-core-client = { version = "0.21.0", path = "./crates/client" } fuel-core-database = { version = "0.21.0", path = "./crates/database" } fuel-core-metrics = { version = "0.21.0", path = "./crates/metrics" } diff --git a/bin/fuel-core/Cargo.toml b/bin/fuel-core/Cargo.toml index 08ecf0e76c9..f9f7c500622 100644 --- a/bin/fuel-core/Cargo.toml +++ b/bin/fuel-core/Cargo.toml @@ -22,7 +22,7 @@ const_format = { version = "0.2", optional = true } dirs = "4.0" dotenvy = { version = "0.15", optional = true } fuel-core = { workspace = true } -fuel-core-chain-config = { workspace = true } +fuel-core-chain-config = { workspace = true, default-features = true } fuel-core-types = { workspace = true } hex = "0.4" humantime = "2.1" diff --git a/ci_checks.sh b/ci_checks.sh index 80918231537..d1ffaa75e0f 100755 --- a/ci_checks.sh +++ b/ci_checks.sh @@ -17,6 +17,7 @@ cargo check -p fuel-core-types --target wasm32-unknown-unknown --no-default-feat cargo check -p fuel-core-storage --target wasm32-unknown-unknown --no-default-features && cargo check -p fuel-core-client --target wasm32-unknown-unknown --no-default-features && cargo check -p fuel-core-chain-config --target wasm32-unknown-unknown --no-default-features && +cargo check -p fuel-core-executor --target wasm32-unknown-unknown --no-default-features && cargo test --all-features --workspace && cargo test -p fuel-core --no-default-features && cargo test -p fuel-core-client --no-default-features && diff --git a/crates/chain-config/Cargo.toml b/crates/chain-config/Cargo.toml index 2f1ba39147c..4fc9d777c18 100644 --- a/crates/chain-config/Cargo.toml +++ b/crates/chain-config/Cargo.toml @@ -31,6 +31,6 @@ rand = { workspace = true } serde_json = { version = "1.0", features = ["raw_value"] } [features] -default = ["std"] +default = ["std", "fuel-core-types/std"] random = ["dep:rand", "fuel-core-types/random"] std = ["dep:serde_json", "fuel-core-types/std", "anyhow/std"] diff --git a/crates/fuel-core/Cargo.toml b/crates/fuel-core/Cargo.toml index cadbcbb82d9..db8c5902570 100644 --- a/crates/fuel-core/Cargo.toml +++ b/crates/fuel-core/Cargo.toml @@ -23,7 +23,7 @@ enum-iterator = "1.2" fuel-core-chain-config = { workspace = true } fuel-core-consensus-module = { workspace = true } fuel-core-database = { workspace = true } -fuel-core-executor = { workspace = true } +fuel-core-executor = { workspace = true, features = ["std"] } fuel-core-importer = { workspace = true } fuel-core-metrics = { workspace = true } fuel-core-p2p = { workspace = true, optional = true } @@ -61,7 +61,7 @@ uuid = { version = "1.1", features = ["v4"] } [dev-dependencies] assert_matches = "1.5" -fuel-core-executor = { workspace = true, features = ["test-helpers"] } +fuel-core-executor = { workspace = true, features = ["std", "test-helpers"] } fuel-core-services = { path = "./../services", features = ["test-helpers"] } fuel-core-storage = { path = "./../storage", features = ["test-helpers"] } fuel-core-trace = { path = "./../trace" } diff --git a/crates/services/executor/Cargo.toml b/crates/services/executor/Cargo.toml index e388fe15813..595826ceca6 100644 --- a/crates/services/executor/Cargo.toml +++ b/crates/services/executor/Cargo.toml @@ -11,17 +11,21 @@ description = "Fuel Block Executor" [dependencies] anyhow = { workspace = true } -fuel-core-chain-config = { workspace = true } -fuel-core-storage = { workspace = true, features = ["test-helpers"] } -fuel-core-types = { workspace = true, features = ["test-helpers"] } +fuel-core-chain-config = { workspace = true, default-features = false } +fuel-core-storage = { workspace = true } +fuel-core-types = { workspace = true, default-features = false } hex = { version = "0.4", features = ["serde"] } parking_lot = { workspace = true } tracing = { workspace = true } [dev-dependencies] +fuel-core-storage = { workspace = true, features = ["test-helpers"] } fuel-core-trace = { path = "../../trace" } +fuel-core-types = { workspace = true, features = ["test-helpers"] } [features] +default = ["std"] +std = ["fuel-core-chain-config/default", "fuel-core-types/default"] test-helpers = [ "fuel-core-types/test-helpers", "fuel-core-storage/test-helpers"