From a34934a425edcf1396f5b0af5b62ccce1b257fbc Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 26 Apr 2023 19:14:36 -0400 Subject: [PATCH] bug: fix feature flag on `fuel-indexer-schema` for `fuel-indexer-graphql` (#818) * Fix feature flag on fuel-indexer-schema dep for fuel-indexer-graphql * Fix default-features option to get rid of warnings * disable plugins check --------- Co-authored-by: Rashad Alston --- .github/workflows/ci.yml | 3 ++- packages/fuel-indexer-graphql/Cargo.toml | 2 +- packages/fuel-indexer-macros/Cargo.toml | 2 +- packages/fuel-indexer-plugin/Cargo.toml | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 654c0463b..b23836925 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -243,7 +243,8 @@ jobs: run: cargo test --locked --all-targets --features e2e,postgres -p fuel-indexer-tests -- --test-threads=1 cargo-test-forc-index-plugins: - if: needs.check-is-semver-branch.outputs.is_semver_branch != 'true' + # if: needs.check-is-semver-branch.outputs.is_semver_branch != 'true' + if: false needs: - cargo-toml-fmt-check - check-is-semver-branch diff --git a/packages/fuel-indexer-graphql/Cargo.toml b/packages/fuel-indexer-graphql/Cargo.toml index 4cd442d63..a6690880a 100644 --- a/packages/fuel-indexer-graphql/Cargo.toml +++ b/packages/fuel-indexer-graphql/Cargo.toml @@ -13,7 +13,7 @@ description = "Fuel Indexer GraphQL" fuel-indexer-database = { workspace = true } fuel-indexer-database-types = { workspace = true } fuel-indexer-graphql-parser = { workspace = true } -fuel-indexer-schema = { workspace = true } +fuel-indexer-schema = { workspace = true, features = ["db-models"] } fuel-indexer-types = { workspace = true } thiserror = { version = "1.0" } diff --git a/packages/fuel-indexer-macros/Cargo.toml b/packages/fuel-indexer-macros/Cargo.toml index 6d6cef878..1447fa946 100644 --- a/packages/fuel-indexer-macros/Cargo.toml +++ b/packages/fuel-indexer-macros/Cargo.toml @@ -16,7 +16,7 @@ proc-macro = true fuel-abi-types = "0.2.1" fuel-indexer-database-types = { workspace = true } fuel-indexer-graphql-parser = { workspace = true } -fuel-indexer-lib = { workspace = true, default-features = false } +fuel-indexer-lib = { workspace = true } fuel-indexer-schema = { workspace = true, default-features = false } fuel-indexer-types = { workspace = true } fuel-tx = "0.26.0" diff --git a/packages/fuel-indexer-plugin/Cargo.toml b/packages/fuel-indexer-plugin/Cargo.toml index 53e09432d..b60ac5b5d 100644 --- a/packages/fuel-indexer-plugin/Cargo.toml +++ b/packages/fuel-indexer-plugin/Cargo.toml @@ -17,9 +17,9 @@ anyhow = { version = "1.0", default-features = false, optional = true } async-trait = { version = "0.1", optional = true } bincode = { version = "1.3" } fuel-indexer = { workspace = true, features = ["api-server"], optional = true } -fuel-indexer-api-server = { workspace = true, default-features = false, optional = true } -fuel-indexer-database = { workspace = true, default-features = false, optional = true } -fuel-indexer-lib = { workspace = true, default-features = false } +fuel-indexer-api-server = { workspace = true, optional = true } +fuel-indexer-database = { workspace = true, optional = true } +fuel-indexer-lib = { workspace = true } fuel-indexer-schema = { workspace = true, default-features = false } fuel-indexer-types = { workspace = true } hex = "0.4"