Skip to content

Commit

Permalink
build(repo): adjust fuel dependencies features
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Dec 16, 2024
1 parent 96c8df6 commit ec5b37c
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 45 deletions.
24 changes: 0 additions & 24 deletions Cargo.lock

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

18 changes: 13 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,21 @@ clap = { version = "4.5", features = ["derive", "env"] }
dotenvy = "0.15"
displaydoc = "0.2"
futures = "0.3"
fuel-core-bin = { version = "0.40.2", features = ["p2p", "relayer", "rocksdb"] }
fuel-core = { version = "0.40.2", features = ["p2p", "relayer", "rocksdb"] }
fuel-core-client = { version = "0.40.2" }
fuel-core-bin = { version = "0.40.2", default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
] }
fuel-core = { version = "0.40.2", default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
] }
fuel-core-client = { version = "0.40.2", default-features = false, features = ["std"] }
fuel-core-importer = { version = "0.40.2" }
fuel-core-storage = { version = "0.40.2" }
fuel-core-types = { version = "0.40.2", features = ["test-helpers", "serde"] }
fuel-core-services = { version = "0.40.2" }
fuel-core-types = { version = "0.40.2", default-features = false, features = ["std", "serde"] }
fuel-core-services = { version = "0.40.2", default-features = false, features = ["test-helpers"] }
futures-util = "0.3"
itertools = "0.13"
mockall = "0.13"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ test: PROFILE="dev"
test:
@echo "Running tests for package $(PACKAGE) with profile $(PROFILE)"
@if [ "$(PACKAGE)" = "all" ] || [ -z "$(PACKAGE)" ]; then \
cargo nextest run --cargo-profile $(PROFILE) --workspace --color always --locked --no-tests=pass --all-features && \
cargo nextest run --cargo-profile $(PROFILE) --workspace --color always --no-tests=pass --all-features && \
cargo test --profile $(PROFILE) --doc --workspace --all-features; \
else \
cargo nextest run --cargo-profile $(PROFILE) -p $(PACKAGE) --color always --locked --no-tests=pass --all-features && \
cargo nextest run --cargo-profile $(PROFILE) -p $(PACKAGE) --color always --no-tests=pass --all-features && \
cargo test --profile $(PROFILE) --doc -p $(PACKAGE) --all-features; \
fi

Expand Down
19 changes: 14 additions & 5 deletions crates/fuel-streams-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@ chrono = { workspace = true }
clap = { workspace = true }
displaydoc = { workspace = true }
dotenvy = { workspace = true }
fuel-core = { workspace = true }
fuel-core-bin = { workspace = true }
fuel-core-client = { workspace = true }
fuel-core = { workspace = true, default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
"test-helpers",
] }
fuel-core-bin = { workspace = true, default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
] }
fuel-core-client = { workspace = true, default-features = false, features = ["std"] }
fuel-core-importer = { workspace = true }
fuel-core-services = { workspace = true }
fuel-core-services = { workspace = true, default-features = false, features = ["test-helpers"] }
fuel-core-storage = { workspace = true }
fuel-core-types = { workspace = true }
fuel-core-types = { workspace = true, default-features = false, features = ["std", "serde"] }
fuel-data-parser = { workspace = true }
fuel-streams-macros = { workspace = true }
futures = { workspace = true }
Expand Down
15 changes: 12 additions & 3 deletions crates/fuel-streams-publisher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ derive_more = { version = "1.0", features = ["full"] }
displaydoc = { workspace = true }
dotenvy = { workspace = true }
elasticsearch = "8.15.0-alpha.1"
fuel-core = { workspace = true }
fuel-core-bin = { workspace = true }
fuel-core-services = { workspace = true }
fuel-core = { workspace = true, default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
"test-helpers",
] }
fuel-core-bin = { workspace = true, default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
] }
fuel-core-services = { workspace = true, default-features = false, features = ["test-helpers"] }
fuel-streams-core = { workspace = true, features = ["test-helpers"] }
fuel-streams-executors = { workspace = true, features = ["test-helpers"] }
futures = { workspace = true }
Expand Down
3 changes: 1 addition & 2 deletions crates/fuel-streams-publisher/src/server/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,14 @@ pub fn create_web_server(
}

#[cfg(test)]
#[cfg(feature = "test-helpers")]
mod tests {
use std::time::Duration;

use actix_web::{http, test, web, App, HttpResponse};
use fuel_core::service::Config;
use fuel_core_bin::FuelService;
use fuel_core_services::State;
use fuel_streams_core::prelude::*;
use fuel_streams_core::fuel_core_like::FuelCore;

use crate::{
server::state::{HealthResponse, ServerState},
Expand Down
2 changes: 1 addition & 1 deletion crates/sv-consumer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/main.rs"
anyhow = { workspace = true }
async-nats = { workspace = true }
clap = { workspace = true }
fuel-core = { workspace = true }
fuel-core = { workspace = true, default-features = false, features = ["p2p", "relayer", "rocksdb"] }
fuel-streams-core = { workspace = true, features = ["test-helpers"] }
fuel-streams-executors = { workspace = true, features = ["test-helpers"] }
futures = { workspace = true }
Expand Down
10 changes: 7 additions & 3 deletions crates/sv-emitter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ path = "src/main.rs"
anyhow = { workspace = true }
async-nats = { workspace = true }
clap = { workspace = true }
fuel-core = { workspace = true }
fuel-core-bin = { workspace = true }
fuel-core-types = { workspace = true }
fuel-core = { workspace = true, default-features = false, features = ["p2p", "relayer", "rocksdb"] }
fuel-core-bin = { workspace = true, default-features = false, features = [
"p2p",
"relayer",
"rocksdb",
] }
fuel-core-types = { workspace = true, default-features = false, features = ["std", "serde"] }
fuel-streams-core = { workspace = true, features = ["test-helpers"] }
fuel-streams-executors = { workspace = true, features = ["test-helpers"] }
futures = { workspace = true }
Expand Down

0 comments on commit ec5b37c

Please sign in to comment.