Skip to content

Commit

Permalink
refactor(repo): Change services to a specific folder (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck authored Jan 27, 2025
1 parent c7ebb3a commit 176be19
Show file tree
Hide file tree
Showing 181 changed files with 33 additions and 138 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
fuel-streams-store
fuel-streams-types
fuel-streams-test
fuel-web-utils
sv-webserver
sv-publisher
sv-consumer
Expand Down
33 changes: 19 additions & 14 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,27 @@ You can check the [./scripts/setup.sh](./scripts/setup.sh) file to see what is b
Here's an overview of the project's directory structure:

- `crates/`: Contains the main Rust crates for the project
- `fuel-data-parser/`: Utility library for encoding/decoding data
- `fuel-message-broker/`: Message broker implementation
- `data-parser/`: Utility library for encoding/decoding data
- `message-broker/`: Message broker implementation
- `fuel-streams/`: Main fuel-streams package
- `fuel-streams-core/`: Core components for working with streams
- `fuel-streams-domains/`: Domain-specific implementations
- `fuel-streams-macros/`: Macro utilities for the project
- `fuel-streams-store/`: Storage implementations
- `fuel-streams-types/`: Common types and traits
- `fuel-streams-test/`: Testing utilities
- `sv-publisher/`: Publisher service implementation
- `sv-consumer/`: Consumer service implementation
- `sv-webserver/`: WebSocket server implementation
- `core/`: Core components for working with streams
- `domains/`: Domain-specific implementations
- `macros/`: Macro utilities for the project
- `store/`: Storage implementations
- `types/`: Common types and traits
- `web-utils/`: Web utilities
- `test/`: Testing utilities
- `services/`: Contains the services for the project
- `publisher/`: Publisher service implementation
- `consumer/`: Consumer service implementation
- `webserver/`: WebSocket server implementation
- `benches/`: Benchmarking code
- `tests/`: Integration and end-to-end tests
- `examples/`: Example code and usage demonstrations
- `cluster/`: Kubernetes cluster configuration and deployment files
- `scripts/`: Utility scripts for setup, deployment, and maintenance
- `generate-api-keys/`: Script for generating API keys
- `subjects-schema/`: Script for generating subjects schema

## 🧪 Running Tests

Expand Down Expand Up @@ -321,15 +325,16 @@ The scope field is mandatory and must be one of the following:

**Service Packages:**

- `sv-publisher`: Publisher service
- `sv-consumer`: Consumer service
- `sv-webserver`: WebSocket server
- `publisher`: Publisher service
- `consumer`: Consumer service
- `webserver`: WebSocket server

**Support Packages:**

- `fuel-data-parser`: Data parser utilities
- `fuel-message-broker`: Message broker implementation
- `fuel-streams-test`: Testing utilities
- `fuel-web-utils`: Web utilities

**Repository:**

Expand Down
111 changes: 0 additions & 111 deletions Cargo.lock

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

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default-members = ["crates/fuel-streams"]
members = [
"benches/*",
"crates/*",
"crates/fuel-streams-macros/subject-derive",
"crates/macros/subject-derive",
"examples",
"scripts/generate-api-keys",
"scripts/subjects-schema",
Expand Down Expand Up @@ -98,17 +98,17 @@ fuel-tx = { version = "0.58.2" }
fuel-vm = { version = "0.58.2" }

# Internal dependencies
fuel-data-parser = { version = "0.0.22", path = "crates/fuel-data-parser" }
fuel-message-broker = { version = "0.0.22", path = "crates/fuel-message-broker" }
fuel-data-parser = { version = "0.0.22", path = "crates/data-parser" }
fuel-message-broker = { version = "0.0.22", path = "crates/message-broker" }
fuel-streams = { version = "0.0.22", path = "crates/fuel-streams" }
fuel-streams-core = { version = "0.0.22", path = "crates/fuel-streams-core" }
fuel-streams-domains = { version = "0.0.22", path = "crates/fuel-streams-domains" }
fuel-streams-macros = { version = "0.0.22", path = "crates/fuel-streams-macros" }
fuel-streams-store = { version = "0.0.22", path = "crates/fuel-streams-store" }
fuel-streams-test = { version = "0.0.22", path = "crates/fuel-streams-test" }
fuel-streams-types = { version = "0.0.22", path = "crates/fuel-streams-types" }
fuel-web-utils = { version = "0.0.22", path = "crates/fuel-web-utils" }
subject-derive = { version = "0.0.22", path = "crates/fuel-streams-macros/subject-derive" }
fuel-streams-core = { version = "0.0.22", path = "crates/core" }
fuel-streams-domains = { version = "0.0.22", path = "crates/domains" }
fuel-streams-macros = { version = "0.0.22", path = "crates/macros" }
fuel-streams-store = { version = "0.0.22", path = "crates/store" }
fuel-streams-test = { version = "0.0.22", path = "crates/test" }
fuel-streams-types = { version = "0.0.22", path = "crates/types" }
fuel-web-utils = { version = "0.0.22", path = "crates/web-utils" }
subject-derive = { version = "0.0.22", path = "crates/macros/subject-derive" }

# Workspace projects
[workspace.metadata.cargo-machete]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ reset-nats: clean-nats start-nats

setup-db:
@echo "Setting up database..."
@cargo sqlx migrate run --source crates/fuel-streams-store/migrations
@cargo sqlx migrate run --source crates/store/migrations
@cargo run --package generate-api-keys -- --nkeys 10
# I removed this for now because it was not working on CI
# @cargo sqlx prepare --workspace -- --all-features
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fuel-web-utils = { workspace = true, features = ["test-helpers"] }
futures.workspace = true
rand.workspace = true
serde_json.workspace = true
sv-consumer = { path = "../crates/sv-consumer", features = ["test-helpers"] }
sv-consumer = { path = "../services/consumer", features = ["test-helpers"] }
tokio = { workspace = true, features = [
"macros",
"rt-multi-thread",
Expand Down

0 comments on commit 176be19

Please sign in to comment.