diff --git a/Cargo.lock b/Cargo.lock index 0e69f4638..1b558a7af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -524,7 +524,6 @@ dependencies = [ name = "brk" version = "0.1.0-alpha.1" dependencies = [ - "brk_bencher", "brk_binder", "brk_bundler", "brk_computer", diff --git a/crates/brk/Cargo.toml b/crates/brk/Cargo.toml index 9dccca879..044bacd47 100644 --- a/crates/brk/Cargo.toml +++ b/crates/brk/Cargo.toml @@ -10,7 +10,6 @@ build = "build.rs" [features] full = [ - "bencher", "binder", "bundler", "computer", @@ -30,7 +29,6 @@ full = [ "traversable", "types", ] -bencher = ["brk_bencher"] binder = ["brk_binder"] bundler = ["brk_bundler"] computer = ["brk_computer"] @@ -51,7 +49,6 @@ traversable = ["brk_traversable"] types = ["brk_types"] [dependencies] -brk_bencher = { workspace = true, optional = true } brk_binder = { workspace = true, optional = true } brk_bundler = { workspace = true, optional = true } brk_computer = { workspace = true, optional = true } diff --git a/crates/brk/README.md b/crates/brk/README.md index 336240bd9..bac83841a 100644 --- a/crates/brk/README.md +++ b/crates/brk/README.md @@ -22,7 +22,6 @@ use brk::types::Height; | Feature | Crate | Description | |---------|-------|-------------| -| `bencher` | `brk_bencher` | Resource monitoring | | `binder` | `brk_binder` | Client code generation | | `bundler` | `brk_bundler` | JS bundling | | `computer` | `brk_computer` | Metric computation | diff --git a/crates/brk/src/lib.rs b/crates/brk/src/lib.rs index 23d724a3c..fc70f120e 100644 --- a/crates/brk/src/lib.rs +++ b/crates/brk/src/lib.rs @@ -1,9 +1,5 @@ #![doc = include_str!("../README.md")] -#[cfg(feature = "bencher")] -#[doc(inline)] -pub use brk_bencher as bencher; - #[cfg(feature = "binder")] #[doc(inline)] pub use brk_binder as binder; diff --git a/crates/brk_computer/Cargo.toml b/crates/brk_computer/Cargo.toml index fcf080206..a70f5f5dd 100644 --- a/crates/brk_computer/Cargo.toml +++ b/crates/brk_computer/Cargo.toml @@ -10,7 +10,6 @@ build = "build.rs" [dependencies] bitcoin = { workspace = true } -brk_bencher = { workspace = true } brk_error = { workspace = true } brk_fetcher = { workspace = true } brk_grouper = { workspace = true } @@ -33,5 +32,6 @@ smallvec = { workspace = true } vecdb = { workspace = true } [dev-dependencies] +brk_bencher = { workspace = true } color-eyre = { workspace = true } mimalloc = { workspace = true } diff --git a/crates/brk_indexer/Cargo.toml b/crates/brk_indexer/Cargo.toml index 6e4e89d8d..6c5bb54cd 100644 --- a/crates/brk_indexer/Cargo.toml +++ b/crates/brk_indexer/Cargo.toml @@ -10,7 +10,6 @@ build = "build.rs" [dependencies] bitcoin = { workspace = true } -brk_bencher = { workspace = true } brk_error = { workspace = true } brk_grouper = { workspace = true } brk_iterator = { workspace = true } @@ -28,5 +27,6 @@ rustc-hash = { workspace = true } vecdb = { workspace = true } [dev-dependencies] +brk_bencher = { workspace = true } color-eyre = { workspace = true } mimalloc = { workspace = true } diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 000000000..7e778f753 --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,47 @@ +#!/bin/bash +set -e + +# BRK crates publish script +# Order determined by topological sort of dependency graph + +CRATES=( + brk_bundler + brk_error + brk_logger + brk_traversable_derive + brk_types + brk_fetcher + brk_rpc + brk_mempool + brk_reader + brk_iterator + brk_store + brk_traversable + brk_grouper + brk_indexer + brk_computer + brk_query + brk_binder + brk_mcp + brk_server + brk + brk_cli +) + +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +CRATES_DIR="$SCRIPT_DIR/../crates" + +cd "$CRATES_DIR" || { echo "Failed to cd to crates directory"; exit 1; } +echo "Working from: $(pwd)" + +for crate in "${CRATES[@]}"; do + echo "=== Publishing $crate ===" + cd "$crate" + cargo publish + cd .. + echo "" + # Give crates.io time to index (required for dependencies) + sleep 1 +done + +echo "Done!"