diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index f1987b05a..8086df85c 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -18,8 +18,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest outputs: - indexer-service-rs: ${{ steps.release-please.outputs.service--tag_name }} - indexer-tap-agent: ${{ steps.release-please.outputs.tap-agent--tag_name }} + indexer-service-rs: ${{ steps.release-please.outputs.['crates/service--tag_name'] }} + indexer-tap-agent: ${{ steps.release-please.outputs.['crates/tap-agent--tag_name'] }} steps: - name: Release please id: release-please diff --git a/.github/workflows/license_headers_check.yml b/.github/workflows/license_headers_check.yml index c4bd83636..6583135ab 100644 --- a/.github/workflows/license_headers_check.yml +++ b/.github/workflows/license_headers_check.yml @@ -28,5 +28,5 @@ jobs: -ignore '.github/*.yml' \ -ignore '.github/workflows/*.yaml' \ -ignore '.github/*.yaml' \ - -ignore 'migrations/*.sql' \ + -ignore 'crates/migrations/*.sql' \ . diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 041007c8e..99b60a9ee 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,7 +53,7 @@ jobs: - name: Install sqlx run: cargo install sqlx-cli --no-default-features --features postgres - name: Run the test sqlx migrations - run: cargo sqlx migrate run + run: cargo sqlx migrate run --source crates/migrations - name: Check that the sqlx prepared query metadata is up-to-date run: cargo sqlx prepare --workspace --check -- --all-targets --all-features @@ -124,7 +124,7 @@ jobs: - name: Install sqlx run: cargo install sqlx-cli --no-default-features --features postgres - name: Run the test sqlx migrations - run: cargo sqlx migrate run + run: cargo sqlx migrate run --source crates/migrations - name: Run tests and generate coverage report run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info - name: Upload coverage to Coveralls @@ -172,6 +172,6 @@ jobs: - name: Install sqlx run: cargo install sqlx-cli --no-default-features --features postgres - name: Run the test sqlx migrations - run: cargo sqlx migrate run + run: cargo sqlx migrate run --source crates/migrations - name: Test documentation code snippets run: cargo test --doc --all-features --workspace diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 49e7758b0..0adc892aa 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,6 +1,6 @@ { - "tap-agent": "1.7.2", - "common": "1.4.0", - "config": "1.2.1", - "service": "1.3.2" + "crates/tap-agent": "1.7.2", + "crates/common": "1.4.0", + "crates/config": "1.2.1", + "crates/service": "1.3.2" } diff --git a/Cargo.toml b/Cargo.toml index d3a30a7d3..b224cd770 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,11 @@ [workspace] -members = ["common", "config", "dips", "service", "tap-agent"] +members = [ + "crates/common", + "crates/config", + "crates/dips", + "crates/service", + "crates/tap-agent", +] resolver = "2" [profile.dev.package."*"] @@ -7,14 +13,14 @@ opt-level = 3 [workspace.dependencies] alloy = { version = "=0.5.4", features = [ - "kzg", - "signer-mnemonic", - "dyn-abi", - "sol-types", - "signer-local", - "eip712", - "rlp", - "signers", + "kzg", + "signer-mnemonic", + "dyn-abi", + "sol-types", + "signer-local", + "eip712", + "rlp", + "signers", ], default-features = false } clap = "4.4.3" lazy_static = "1.4.0" @@ -27,21 +33,21 @@ async-trait = "0.1.72" eventuals = "0.6.7" base64 = "0.22.1" reqwest = { version = "0.12", features = [ - "charset", - "h2", + "charset", + "h2", ], default-features = false } serde = { version = "1.0.206", default-features = false } serde_json = "1.0.124" sqlx = { version = "0.8.2", features = [ - "bigdecimal", - "chrono", - "json", - "macros", - "migrate", - "postgres", - "runtime-tokio", - "rust_decimal", - "uuid", + "bigdecimal", + "chrono", + "json", + "macros", + "migrate", + "postgres", + "runtime-tokio", + "rust_decimal", + "uuid", ], default-features = false } uuid = { version = "1.11.0", features = ["v7"] } tracing = { version = "0.1.40", default-features = false } @@ -50,12 +56,12 @@ build-info = "0.0.39" tap_core = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "61b47b3", default-features = false } tap_aggregator = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "61b47b3", default-features = false } tracing-subscriber = { version = "0.3", features = [ - "json", - "env-filter", - "ansi", + "json", + "env-filter", + "ansi", ], default-features = false } thegraph-core = { git = "https://github.com/edgeandnode/toolshed", rev = "1663534fc1738e2db1b11cb54b5bb478ee970d40", features = [ - "subgraph-client", + "subgraph-client", ] } thegraph-graphql-http = "0.2.0" graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] } diff --git a/common/CHANGELOG.md b/crates/common/CHANGELOG.md similarity index 100% rename from common/CHANGELOG.md rename to crates/common/CHANGELOG.md diff --git a/common/Cargo.toml b/crates/common/Cargo.toml similarity index 100% rename from common/Cargo.toml rename to crates/common/Cargo.toml diff --git a/common/src/address.rs b/crates/common/src/address.rs similarity index 100% rename from common/src/address.rs rename to crates/common/src/address.rs diff --git a/common/src/allocations/mod.rs b/crates/common/src/allocations/mod.rs similarity index 100% rename from common/src/allocations/mod.rs rename to crates/common/src/allocations/mod.rs diff --git a/common/src/allocations/monitor.rs b/crates/common/src/allocations/monitor.rs similarity index 100% rename from common/src/allocations/monitor.rs rename to crates/common/src/allocations/monitor.rs diff --git a/common/src/attestations/dispute_manager.rs b/crates/common/src/attestations/dispute_manager.rs similarity index 100% rename from common/src/attestations/dispute_manager.rs rename to crates/common/src/attestations/dispute_manager.rs diff --git a/common/src/attestations/mod.rs b/crates/common/src/attestations/mod.rs similarity index 100% rename from common/src/attestations/mod.rs rename to crates/common/src/attestations/mod.rs diff --git a/common/src/attestations/signer.rs b/crates/common/src/attestations/signer.rs similarity index 100% rename from common/src/attestations/signer.rs rename to crates/common/src/attestations/signer.rs diff --git a/common/src/attestations/signers.rs b/crates/common/src/attestations/signers.rs similarity index 100% rename from common/src/attestations/signers.rs rename to crates/common/src/attestations/signers.rs diff --git a/common/src/cost_model.rs b/crates/common/src/cost_model.rs similarity index 100% rename from common/src/cost_model.rs rename to crates/common/src/cost_model.rs diff --git a/common/src/escrow_accounts.rs b/crates/common/src/escrow_accounts.rs similarity index 100% rename from common/src/escrow_accounts.rs rename to crates/common/src/escrow_accounts.rs diff --git a/common/src/graphql.rs b/crates/common/src/graphql.rs similarity index 100% rename from common/src/graphql.rs rename to crates/common/src/graphql.rs diff --git a/common/src/indexer_service/http/health.rs b/crates/common/src/indexer_service/http/health.rs similarity index 100% rename from common/src/indexer_service/http/health.rs rename to crates/common/src/indexer_service/http/health.rs diff --git a/common/src/indexer_service/http/indexer_service.rs b/crates/common/src/indexer_service/http/indexer_service.rs similarity index 100% rename from common/src/indexer_service/http/indexer_service.rs rename to crates/common/src/indexer_service/http/indexer_service.rs diff --git a/common/src/indexer_service/http/mod.rs b/crates/common/src/indexer_service/http/mod.rs similarity index 100% rename from common/src/indexer_service/http/mod.rs rename to crates/common/src/indexer_service/http/mod.rs diff --git a/common/src/indexer_service/http/request_handler.rs b/crates/common/src/indexer_service/http/request_handler.rs similarity index 100% rename from common/src/indexer_service/http/request_handler.rs rename to crates/common/src/indexer_service/http/request_handler.rs diff --git a/common/src/indexer_service/http/static_subgraph.rs b/crates/common/src/indexer_service/http/static_subgraph.rs similarity index 100% rename from common/src/indexer_service/http/static_subgraph.rs rename to crates/common/src/indexer_service/http/static_subgraph.rs diff --git a/common/src/indexer_service/http/tap_receipt_header.rs b/crates/common/src/indexer_service/http/tap_receipt_header.rs similarity index 100% rename from common/src/indexer_service/http/tap_receipt_header.rs rename to crates/common/src/indexer_service/http/tap_receipt_header.rs diff --git a/common/src/indexer_service/mod.rs b/crates/common/src/indexer_service/mod.rs similarity index 100% rename from common/src/indexer_service/mod.rs rename to crates/common/src/indexer_service/mod.rs diff --git a/common/src/lib.rs b/crates/common/src/lib.rs similarity index 100% rename from common/src/lib.rs rename to crates/common/src/lib.rs diff --git a/common/src/subgraph_client/client.rs b/crates/common/src/subgraph_client/client.rs similarity index 100% rename from common/src/subgraph_client/client.rs rename to crates/common/src/subgraph_client/client.rs diff --git a/common/src/subgraph_client/mod.rs b/crates/common/src/subgraph_client/mod.rs similarity index 100% rename from common/src/subgraph_client/mod.rs rename to crates/common/src/subgraph_client/mod.rs diff --git a/common/src/subgraph_client/monitor.rs b/crates/common/src/subgraph_client/monitor.rs similarity index 100% rename from common/src/subgraph_client/monitor.rs rename to crates/common/src/subgraph_client/monitor.rs diff --git a/common/src/tap.rs b/crates/common/src/tap.rs similarity index 100% rename from common/src/tap.rs rename to crates/common/src/tap.rs diff --git a/common/src/tap/checks.rs b/crates/common/src/tap/checks.rs similarity index 100% rename from common/src/tap/checks.rs rename to crates/common/src/tap/checks.rs diff --git a/common/src/tap/checks/allocation_eligible.rs b/crates/common/src/tap/checks/allocation_eligible.rs similarity index 100% rename from common/src/tap/checks/allocation_eligible.rs rename to crates/common/src/tap/checks/allocation_eligible.rs diff --git a/common/src/tap/checks/deny_list_check.rs b/crates/common/src/tap/checks/deny_list_check.rs similarity index 100% rename from common/src/tap/checks/deny_list_check.rs rename to crates/common/src/tap/checks/deny_list_check.rs diff --git a/common/src/tap/checks/receipt_max_val_check.rs b/crates/common/src/tap/checks/receipt_max_val_check.rs similarity index 100% rename from common/src/tap/checks/receipt_max_val_check.rs rename to crates/common/src/tap/checks/receipt_max_val_check.rs diff --git a/common/src/tap/checks/sender_balance_check.rs b/crates/common/src/tap/checks/sender_balance_check.rs similarity index 100% rename from common/src/tap/checks/sender_balance_check.rs rename to crates/common/src/tap/checks/sender_balance_check.rs diff --git a/common/src/tap/checks/timestamp_check.rs b/crates/common/src/tap/checks/timestamp_check.rs similarity index 100% rename from common/src/tap/checks/timestamp_check.rs rename to crates/common/src/tap/checks/timestamp_check.rs diff --git a/common/src/tap/checks/value_check.rs b/crates/common/src/tap/checks/value_check.rs similarity index 100% rename from common/src/tap/checks/value_check.rs rename to crates/common/src/tap/checks/value_check.rs diff --git a/common/src/tap/receipt_store.rs b/crates/common/src/tap/receipt_store.rs similarity index 100% rename from common/src/tap/receipt_store.rs rename to crates/common/src/tap/receipt_store.rs diff --git a/common/src/test_vectors.rs b/crates/common/src/test_vectors.rs similarity index 100% rename from common/src/test_vectors.rs rename to crates/common/src/test_vectors.rs diff --git a/common/src/watcher.rs b/crates/common/src/watcher.rs similarity index 100% rename from common/src/watcher.rs rename to crates/common/src/watcher.rs diff --git a/config/CHANGELOG.md b/crates/config/CHANGELOG.md similarity index 100% rename from config/CHANGELOG.md rename to crates/config/CHANGELOG.md diff --git a/config/Cargo.toml b/crates/config/Cargo.toml similarity index 100% rename from config/Cargo.toml rename to crates/config/Cargo.toml diff --git a/config/default_values.toml b/crates/config/default_values.toml similarity index 100% rename from config/default_values.toml rename to crates/config/default_values.toml diff --git a/config/maximal-config-example.toml b/crates/config/maximal-config-example.toml similarity index 100% rename from config/maximal-config-example.toml rename to crates/config/maximal-config-example.toml diff --git a/config/minimal-config-example.toml b/crates/config/minimal-config-example.toml similarity index 100% rename from config/minimal-config-example.toml rename to crates/config/minimal-config-example.toml diff --git a/config/src/config.rs b/crates/config/src/config.rs similarity index 100% rename from config/src/config.rs rename to crates/config/src/config.rs diff --git a/config/src/grt.rs b/crates/config/src/grt.rs similarity index 100% rename from config/src/grt.rs rename to crates/config/src/grt.rs diff --git a/config/src/lib.rs b/crates/config/src/lib.rs similarity index 100% rename from config/src/lib.rs rename to crates/config/src/lib.rs diff --git a/dips/Cargo.toml b/crates/dips/Cargo.toml similarity index 100% rename from dips/Cargo.toml rename to crates/dips/Cargo.toml diff --git a/dips/src/lib.rs b/crates/dips/src/lib.rs similarity index 100% rename from dips/src/lib.rs rename to crates/dips/src/lib.rs diff --git a/graphql/allocations.query.graphql b/crates/graphql/allocations.query.graphql similarity index 100% rename from graphql/allocations.query.graphql rename to crates/graphql/allocations.query.graphql diff --git a/graphql/closed_allocations.query.graphql b/crates/graphql/closed_allocations.query.graphql similarity index 100% rename from graphql/closed_allocations.query.graphql rename to crates/graphql/closed_allocations.query.graphql diff --git a/graphql/dispute.query.graphql b/crates/graphql/dispute.query.graphql similarity index 100% rename from graphql/dispute.query.graphql rename to crates/graphql/dispute.query.graphql diff --git a/graphql/epoch.query.graphql b/crates/graphql/epoch.query.graphql similarity index 100% rename from graphql/epoch.query.graphql rename to crates/graphql/epoch.query.graphql diff --git a/graphql/escrow_account.query.graphql b/crates/graphql/escrow_account.query.graphql similarity index 100% rename from graphql/escrow_account.query.graphql rename to crates/graphql/escrow_account.query.graphql diff --git a/graphql/indexing_status.schema.graphql b/crates/graphql/indexing_status.schema.graphql similarity index 100% rename from graphql/indexing_status.schema.graphql rename to crates/graphql/indexing_status.schema.graphql diff --git a/graphql/network.schema.graphql b/crates/graphql/network.schema.graphql similarity index 100% rename from graphql/network.schema.graphql rename to crates/graphql/network.schema.graphql diff --git a/graphql/subgraph_health.query.graphql b/crates/graphql/subgraph_health.query.graphql similarity index 100% rename from graphql/subgraph_health.query.graphql rename to crates/graphql/subgraph_health.query.graphql diff --git a/graphql/tap.schema.graphql b/crates/graphql/tap.schema.graphql similarity index 100% rename from graphql/tap.schema.graphql rename to crates/graphql/tap.schema.graphql diff --git a/graphql/test.schema.graphql b/crates/graphql/test.schema.graphql similarity index 100% rename from graphql/test.schema.graphql rename to crates/graphql/test.schema.graphql diff --git a/graphql/transactions.query.graphql b/crates/graphql/transactions.query.graphql similarity index 100% rename from graphql/transactions.query.graphql rename to crates/graphql/transactions.query.graphql diff --git a/graphql/unfinalized_tx.query.graphql b/crates/graphql/unfinalized_tx.query.graphql similarity index 100% rename from graphql/unfinalized_tx.query.graphql rename to crates/graphql/unfinalized_tx.query.graphql diff --git a/graphql/user.query.graphql b/crates/graphql/user.query.graphql similarity index 100% rename from graphql/user.query.graphql rename to crates/graphql/user.query.graphql diff --git a/migrations/20230901142040_cost_models.down.sql b/crates/migrations/20230901142040_cost_models.down.sql similarity index 100% rename from migrations/20230901142040_cost_models.down.sql rename to crates/migrations/20230901142040_cost_models.down.sql diff --git a/migrations/20230901142040_cost_models.up.sql b/crates/migrations/20230901142040_cost_models.up.sql similarity index 100% rename from migrations/20230901142040_cost_models.up.sql rename to crates/migrations/20230901142040_cost_models.up.sql diff --git a/migrations/20230912220523_tap_receipts.down.sql b/crates/migrations/20230912220523_tap_receipts.down.sql similarity index 100% rename from migrations/20230912220523_tap_receipts.down.sql rename to crates/migrations/20230912220523_tap_receipts.down.sql diff --git a/migrations/20230912220523_tap_receipts.up.sql b/crates/migrations/20230912220523_tap_receipts.up.sql similarity index 100% rename from migrations/20230912220523_tap_receipts.up.sql rename to crates/migrations/20230912220523_tap_receipts.up.sql diff --git a/migrations/20230915230734_tap_ravs.down.sql b/crates/migrations/20230915230734_tap_ravs.down.sql similarity index 100% rename from migrations/20230915230734_tap_ravs.down.sql rename to crates/migrations/20230915230734_tap_ravs.down.sql diff --git a/migrations/20230915230734_tap_ravs.up.sql b/crates/migrations/20230915230734_tap_ravs.up.sql similarity index 100% rename from migrations/20230915230734_tap_ravs.up.sql rename to crates/migrations/20230915230734_tap_ravs.up.sql diff --git a/migrations/20231118024433_tap_denylist.down.sql b/crates/migrations/20231118024433_tap_denylist.down.sql similarity index 100% rename from migrations/20231118024433_tap_denylist.down.sql rename to crates/migrations/20231118024433_tap_denylist.down.sql diff --git a/migrations/20231118024433_tap_denylist.up.sql b/crates/migrations/20231118024433_tap_denylist.up.sql similarity index 100% rename from migrations/20231118024433_tap_denylist.up.sql rename to crates/migrations/20231118024433_tap_denylist.up.sql diff --git a/migrations/20241024191258_add_cost_model_notification.down.sql b/crates/migrations/20241024191258_add_cost_model_notification.down.sql similarity index 100% rename from migrations/20241024191258_add_cost_model_notification.down.sql rename to crates/migrations/20241024191258_add_cost_model_notification.down.sql diff --git a/migrations/20241024191258_add_cost_model_notification.up.sql b/crates/migrations/20241024191258_add_cost_model_notification.up.sql similarity index 100% rename from migrations/20241024191258_add_cost_model_notification.up.sql rename to crates/migrations/20241024191258_add_cost_model_notification.up.sql diff --git a/migrations/20241030141929_dips.down.sql b/crates/migrations/20241030141929_dips.down.sql similarity index 100% rename from migrations/20241030141929_dips.down.sql rename to crates/migrations/20241030141929_dips.down.sql diff --git a/migrations/20241030141929_dips.up.sql b/crates/migrations/20241030141929_dips.up.sql similarity index 100% rename from migrations/20241030141929_dips.up.sql rename to crates/migrations/20241030141929_dips.up.sql diff --git a/migrations/README.md b/crates/migrations/README.md similarity index 100% rename from migrations/README.md rename to crates/migrations/README.md diff --git a/service/CHANGELOG.md b/crates/service/CHANGELOG.md similarity index 100% rename from service/CHANGELOG.md rename to crates/service/CHANGELOG.md diff --git a/service/Cargo.toml b/crates/service/Cargo.toml similarity index 100% rename from service/Cargo.toml rename to crates/service/Cargo.toml diff --git a/service/build.rs b/crates/service/build.rs similarity index 100% rename from service/build.rs rename to crates/service/build.rs diff --git a/service/src/cli.rs b/crates/service/src/cli.rs similarity index 100% rename from service/src/cli.rs rename to crates/service/src/cli.rs diff --git a/service/src/database/dips.rs b/crates/service/src/database/dips.rs similarity index 100% rename from service/src/database/dips.rs rename to crates/service/src/database/dips.rs diff --git a/service/src/database/mod.rs b/crates/service/src/database/mod.rs similarity index 100% rename from service/src/database/mod.rs rename to crates/service/src/database/mod.rs diff --git a/service/src/error.rs b/crates/service/src/error.rs similarity index 100% rename from service/src/error.rs rename to crates/service/src/error.rs diff --git a/service/src/lib.rs b/crates/service/src/lib.rs similarity index 100% rename from service/src/lib.rs rename to crates/service/src/lib.rs diff --git a/service/src/main.rs b/crates/service/src/main.rs similarity index 100% rename from service/src/main.rs rename to crates/service/src/main.rs diff --git a/service/src/routes/cost.rs b/crates/service/src/routes/cost.rs similarity index 100% rename from service/src/routes/cost.rs rename to crates/service/src/routes/cost.rs diff --git a/service/src/routes/dips.rs b/crates/service/src/routes/dips.rs similarity index 100% rename from service/src/routes/dips.rs rename to crates/service/src/routes/dips.rs diff --git a/service/src/routes/mod.rs b/crates/service/src/routes/mod.rs similarity index 100% rename from service/src/routes/mod.rs rename to crates/service/src/routes/mod.rs diff --git a/service/src/routes/status.rs b/crates/service/src/routes/status.rs similarity index 100% rename from service/src/routes/status.rs rename to crates/service/src/routes/status.rs diff --git a/service/src/service.rs b/crates/service/src/service.rs similarity index 100% rename from service/src/service.rs rename to crates/service/src/service.rs diff --git a/tap-agent/CHANGELOG.md b/crates/tap-agent/CHANGELOG.md similarity index 100% rename from tap-agent/CHANGELOG.md rename to crates/tap-agent/CHANGELOG.md diff --git a/tap-agent/Cargo.toml b/crates/tap-agent/Cargo.toml similarity index 100% rename from tap-agent/Cargo.toml rename to crates/tap-agent/Cargo.toml diff --git a/tap-agent/src/adaptative_concurrency.rs b/crates/tap-agent/src/adaptative_concurrency.rs similarity index 100% rename from tap-agent/src/adaptative_concurrency.rs rename to crates/tap-agent/src/adaptative_concurrency.rs diff --git a/tap-agent/src/agent.rs b/crates/tap-agent/src/agent.rs similarity index 100% rename from tap-agent/src/agent.rs rename to crates/tap-agent/src/agent.rs diff --git a/tap-agent/src/agent/sender_account.rs b/crates/tap-agent/src/agent/sender_account.rs similarity index 100% rename from tap-agent/src/agent/sender_account.rs rename to crates/tap-agent/src/agent/sender_account.rs diff --git a/tap-agent/src/agent/sender_accounts_manager.rs b/crates/tap-agent/src/agent/sender_accounts_manager.rs similarity index 100% rename from tap-agent/src/agent/sender_accounts_manager.rs rename to crates/tap-agent/src/agent/sender_accounts_manager.rs diff --git a/tap-agent/src/agent/sender_allocation.rs b/crates/tap-agent/src/agent/sender_allocation.rs similarity index 100% rename from tap-agent/src/agent/sender_allocation.rs rename to crates/tap-agent/src/agent/sender_allocation.rs diff --git a/tap-agent/src/agent/unaggregated_receipts.rs b/crates/tap-agent/src/agent/unaggregated_receipts.rs similarity index 100% rename from tap-agent/src/agent/unaggregated_receipts.rs rename to crates/tap-agent/src/agent/unaggregated_receipts.rs diff --git a/tap-agent/src/backoff.rs b/crates/tap-agent/src/backoff.rs similarity index 100% rename from tap-agent/src/backoff.rs rename to crates/tap-agent/src/backoff.rs diff --git a/tap-agent/src/cli.rs b/crates/tap-agent/src/cli.rs similarity index 100% rename from tap-agent/src/cli.rs rename to crates/tap-agent/src/cli.rs diff --git a/tap-agent/src/database.rs b/crates/tap-agent/src/database.rs similarity index 100% rename from tap-agent/src/database.rs rename to crates/tap-agent/src/database.rs diff --git a/tap-agent/src/lib.rs b/crates/tap-agent/src/lib.rs similarity index 100% rename from tap-agent/src/lib.rs rename to crates/tap-agent/src/lib.rs diff --git a/tap-agent/src/main.rs b/crates/tap-agent/src/main.rs similarity index 100% rename from tap-agent/src/main.rs rename to crates/tap-agent/src/main.rs diff --git a/tap-agent/src/metrics.rs b/crates/tap-agent/src/metrics.rs similarity index 100% rename from tap-agent/src/metrics.rs rename to crates/tap-agent/src/metrics.rs diff --git a/tap-agent/src/tap/context.rs b/crates/tap-agent/src/tap/context.rs similarity index 100% rename from tap-agent/src/tap/context.rs rename to crates/tap-agent/src/tap/context.rs diff --git a/tap-agent/src/tap/context/checks.rs b/crates/tap-agent/src/tap/context/checks.rs similarity index 100% rename from tap-agent/src/tap/context/checks.rs rename to crates/tap-agent/src/tap/context/checks.rs diff --git a/tap-agent/src/tap/context/checks/allocation_id.rs b/crates/tap-agent/src/tap/context/checks/allocation_id.rs similarity index 100% rename from tap-agent/src/tap/context/checks/allocation_id.rs rename to crates/tap-agent/src/tap/context/checks/allocation_id.rs diff --git a/tap-agent/src/tap/context/checks/signature.rs b/crates/tap-agent/src/tap/context/checks/signature.rs similarity index 100% rename from tap-agent/src/tap/context/checks/signature.rs rename to crates/tap-agent/src/tap/context/checks/signature.rs diff --git a/tap-agent/src/tap/context/checks/value.rs b/crates/tap-agent/src/tap/context/checks/value.rs similarity index 100% rename from tap-agent/src/tap/context/checks/value.rs rename to crates/tap-agent/src/tap/context/checks/value.rs diff --git a/tap-agent/src/tap/context/error.rs b/crates/tap-agent/src/tap/context/error.rs similarity index 100% rename from tap-agent/src/tap/context/error.rs rename to crates/tap-agent/src/tap/context/error.rs diff --git a/tap-agent/src/tap/context/escrow.rs b/crates/tap-agent/src/tap/context/escrow.rs similarity index 100% rename from tap-agent/src/tap/context/escrow.rs rename to crates/tap-agent/src/tap/context/escrow.rs diff --git a/tap-agent/src/tap/context/rav.rs b/crates/tap-agent/src/tap/context/rav.rs similarity index 100% rename from tap-agent/src/tap/context/rav.rs rename to crates/tap-agent/src/tap/context/rav.rs diff --git a/tap-agent/src/tap/context/receipt.rs b/crates/tap-agent/src/tap/context/receipt.rs similarity index 100% rename from tap-agent/src/tap/context/receipt.rs rename to crates/tap-agent/src/tap/context/receipt.rs diff --git a/tap-agent/src/tap/escrow_adapter.rs b/crates/tap-agent/src/tap/escrow_adapter.rs similarity index 100% rename from tap-agent/src/tap/escrow_adapter.rs rename to crates/tap-agent/src/tap/escrow_adapter.rs diff --git a/tap-agent/src/tap/mod.rs b/crates/tap-agent/src/tap/mod.rs similarity index 100% rename from tap-agent/src/tap/mod.rs rename to crates/tap-agent/src/tap/mod.rs diff --git a/tap-agent/src/tap/test_utils.rs b/crates/tap-agent/src/tap/test_utils.rs similarity index 100% rename from tap-agent/src/tap/test_utils.rs rename to crates/tap-agent/src/tap/test_utils.rs diff --git a/tap-agent/src/tracker.rs b/crates/tap-agent/src/tracker.rs similarity index 100% rename from tap-agent/src/tracker.rs rename to crates/tap-agent/src/tracker.rs diff --git a/tap-agent/src/tracker/extra_data.rs b/crates/tap-agent/src/tracker/extra_data.rs similarity index 100% rename from tap-agent/src/tracker/extra_data.rs rename to crates/tap-agent/src/tracker/extra_data.rs diff --git a/tap-agent/src/tracker/generic_tracker.rs b/crates/tap-agent/src/tracker/generic_tracker.rs similarity index 100% rename from tap-agent/src/tracker/generic_tracker.rs rename to crates/tap-agent/src/tracker/generic_tracker.rs diff --git a/tap-agent/src/tracker/global_tracker.rs b/crates/tap-agent/src/tracker/global_tracker.rs similarity index 100% rename from tap-agent/src/tracker/global_tracker.rs rename to crates/tap-agent/src/tracker/global_tracker.rs diff --git a/tap-agent/src/tracker/sender_fee_stats.rs b/crates/tap-agent/src/tracker/sender_fee_stats.rs similarity index 100% rename from tap-agent/src/tracker/sender_fee_stats.rs rename to crates/tap-agent/src/tracker/sender_fee_stats.rs diff --git a/tap-agent/src/tracker/tracker_tests.rs b/crates/tap-agent/src/tracker/tracker_tests.rs similarity index 100% rename from tap-agent/src/tracker/tracker_tests.rs rename to crates/tap-agent/src/tracker/tracker_tests.rs diff --git a/release-please-config.json b/release-please-config.json index da3bb08f8..684352a64 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -4,9 +4,9 @@ "release-type": "rust", "plugins": ["cargo-workspace"], "packages": { - "common": {}, - "config": {}, - "service": {}, - "tap-agent": {} + "crates/common": {}, + "crates/config": {}, + "crates/service": {}, + "crates/tap-agent": {} } }