From c4f71248178d92cc11df294caf8b1399de7d382b Mon Sep 17 00:00:00 2001 From: edouardparis Date: Tue, 14 Nov 2023 10:12:34 +0100 Subject: [PATCH] Use cargo workspace features --- Cargo.toml | 23 +++++++++++++++++------ cli/Cargo.toml | 16 ++++++++-------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c965b54..59fd03c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,27 @@ -[package] -name = "async-hwi" +[workspace] +members = ["cli"] + +[workspace.dependencies] +async-hwi = { version = "0.0.12", path = "." } + +[workspace.package] version = "0.0.12" edition = "2018" -description = "Async hardware wallet interface" authors = ["Edouard Paris "] license-file = "LICENSE" repository = "https://github.com/wizardsardine/async-hwi" keywords = ["bitcoin"] +[package] +name = "async-hwi" +readme = "README.md" +description = "Async hardware wallet interface" +version.workspace = true +license-file.workspace = true +edition.workspace = true +authors.workspace = true +repository.workspace = true + [features] default = ["ledger", "specter", "bitbox"] bitbox = ["tokio", "hidapi", "bitbox-api", "regex" ] @@ -41,6 +55,3 @@ tokio = { version = "1.21.0", features = ["net", "time", "io-util", "sync"], opt [dev-dependencies] tokio = { version = "1.21", features = ["macros", "net", "rt", "rt-multi-thread", "io-util", "sync"] } - -[workspace] -members = ["cli"] diff --git a/cli/Cargo.toml b/cli/Cargo.toml index b4c6c63..dc5539a 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "async-hwi-cli" -version = "0.0.1" -edition = "2021" -description = "CLI to communicate with Hardware Wallet Interface" -authors = ["Edouard Paris "] -license-file = "../LICENSE" -repository = "https://github.com/wizardsardine/async-hwi" -keywords = ["bitcoin", "hwi"] +readme = "README.md" +description = "HWI CLI" +version.workspace = true +license-file.workspace = true +edition.workspace = true +authors.workspace = true +repository.workspace = true [[bin]] name = "hwi" @@ -16,5 +16,5 @@ path = "src/bin/hwi.rs" clap = { version = "4.4.7", features = ["derive"] } bitcoin = "0.30.0" hex = "0.4" -async-hwi = { path = ".." } +async-hwi = { workspace = true } tokio = { version = "1", features = ["macros", "net", "rt", "rt-multi-thread", "io-util", "sync"] }