diff --git a/Cargo.toml b/Cargo.toml index 7bf15895..db5a5cf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ license = "MIT" homepage = "https://github.com/cashubtc/cdk" repository = "https://github.com/cashubtc/cdk.git" rust-version = "1.70.0" # MSRV +version = "0.3.0" [workspace.metadata] authors = ["CDK Developers"] @@ -26,15 +27,15 @@ anyhow = "1" axum = "0.7.5" bitcoin = { version = "0.30", default-features = false } # lightning-invoice uses v0.30 bip39 = "2.0" -cdk = { version = "0.2", path = "./crates/cdk", default-features = false } -cdk-rexie = { version = "0.2", path = "./crates/cdk-rexie", default-features = false } -cdk-sqlite = { version = "0.2", path = "./crates/cdk-sqlite", default-features = false } -cdk-redb = { version = "0.2", path = "./crates/cdk-redb", default-features = false } -cdk-cln = { version = "0.1", path = "./crates/cdk-cln", default-features = false } -cdk-axum = { version = "0.1", path = "./crates/cdk-axum", default-features = false } -cdk-fake-wallet = { version = "0.1", path = "./crates/cdk-fake-wallet", default-features = false } -cdk-strike = { version = "0.1", path = "./crates/cdk-strike", default-features = false } clap = { version = "4.4.8", features = ["derive", "env", "default"] } +cdk = { version = "0.3", path = "./crates/cdk", default-features = false } +cdk-rexie = { version = "0.3", path = "./crates/cdk-rexie", default-features = false } +cdk-sqlite = { version = "0.3", path = "./crates/cdk-sqlite", default-features = false } +cdk-redb = { version = "0.3", path = "./crates/cdk-redb", default-features = false } +cdk-cln = { version = "0.3", path = "./crates/cdk-cln", default-features = false } +cdk-axum = { version = "0.3", path = "./crates/cdk-axum", default-features = false } +cdk-fake-wallet = { version = "0.3", path = "./crates/cdk-fake-wallet", default-features = false } +cdk-strike = { version = "0.3", path = "./crates/cdk-strike", default-features = false } tokio = { version = "1", default-features = false } thiserror = "1" tracing = { version = "0.1", default-features = false, features = ["attributes", "log"] } diff --git a/bindings/cdk-js/Cargo.toml b/bindings/cdk-js/Cargo.toml index 416225ad..c38630e3 100644 --- a/bindings/cdk-js/Cargo.toml +++ b/bindings/cdk-js/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-js" -version = "0.2.0" +version = { workspace = true } edition = "2021" license.workspace = true homepage.workspace = true diff --git a/crates/cdk-axum/Cargo.toml b/crates/cdk-axum/Cargo.toml index cb1a4ce1..13fc34ce 100644 --- a/crates/cdk-axum/Cargo.toml +++ b/crates/cdk-axum/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-axum" -version = "0.1.0" +version = { workspace = true } edition = "2021" license.workspace = true homepage.workspace = true diff --git a/crates/cdk-cli/Cargo.toml b/crates/cdk-cli/Cargo.toml index 14d7fc77..2fe70c93 100644 --- a/crates/cdk-cli/Cargo.toml +++ b/crates/cdk-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-cli" -version = "0.2.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] description = "Cashu cli wallet built on CDK" diff --git a/crates/cdk-cln/Cargo.toml b/crates/cdk-cln/Cargo.toml index 2ef929cc..c8c97407 100644 --- a/crates/cdk-cln/Cargo.toml +++ b/crates/cdk-cln/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-cln" -version = "0.1.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] homepage.workspace = true diff --git a/crates/cdk-fake-wallet/Cargo.toml b/crates/cdk-fake-wallet/Cargo.toml index 64baf052..32fc0114 100644 --- a/crates/cdk-fake-wallet/Cargo.toml +++ b/crates/cdk-fake-wallet/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-fake-wallet" -version = "0.1.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] homepage.workspace = true diff --git a/crates/cdk-mintd/Cargo.toml b/crates/cdk-mintd/Cargo.toml index 278a81c0..c53e1d65 100644 --- a/crates/cdk-mintd/Cargo.toml +++ b/crates/cdk-mintd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-mintd" -version = "0.1.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] homepage.workspace = true diff --git a/crates/cdk-redb/Cargo.toml b/crates/cdk-redb/Cargo.toml index 053294d4..8f651e2e 100644 --- a/crates/cdk-redb/Cargo.toml +++ b/crates/cdk-redb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-redb" -version = "0.2.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] description = "Redb storage backend for CDK" diff --git a/crates/cdk-rexie/Cargo.toml b/crates/cdk-rexie/Cargo.toml index 33375fdf..b680b931 100644 --- a/crates/cdk-rexie/Cargo.toml +++ b/crates/cdk-rexie/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-rexie" -version = "0.2.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] description = "Indexdb storage backend for CDK in the browser" diff --git a/crates/cdk-sqlite/Cargo.toml b/crates/cdk-sqlite/Cargo.toml index 51c56c54..2fd94826 100644 --- a/crates/cdk-sqlite/Cargo.toml +++ b/crates/cdk-sqlite/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-sqlite" -version = "0.2.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] description = "Sqlite storage backend for CDK" diff --git a/crates/cdk-strike/Cargo.toml b/crates/cdk-strike/Cargo.toml index fa05b543..d245f9c0 100644 --- a/crates/cdk-strike/Cargo.toml +++ b/crates/cdk-strike/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk-strike" -version = "0.1.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] homepage.workspace = true diff --git a/crates/cdk/Cargo.toml b/crates/cdk/Cargo.toml index 9fabae3b..b25107c4 100644 --- a/crates/cdk/Cargo.toml +++ b/crates/cdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cdk" -version = "0.2.0" +version = { workspace = true } edition = "2021" authors = ["CDK Developers"] description = "Core Cashu Development Kit library implementing the Cashu protocol" diff --git a/misc/scripts/release.sh b/misc/scripts/release.sh new file mode 100644 index 00000000..e9792434 --- /dev/null +++ b/misc/scripts/release.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -euo pipefail + +args=( + "-p cdk" + "-p cdk-redb" + "-p cdk-sqlite" + "-p cdk-rexie" + "-p cdk-cln" + "-p cdk-fake-wallet" + "-p cdk-strike" + "-p cdk-cli" + "-p cdk-axum" + "-p cdk-mintd" +) + +for arg in "${args[@]}"; +do + echo "Publishing '$arg'" + cargo publish "$arg" + echo +done