diff --git a/Cargo.toml b/Cargo.toml index 01e187c..8a78122 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,13 @@ +[workspace.package] +version = "0.1.0" +repository = "https://github.com/arkedge/kble" +license = "MIT" +edition = "2021" +readme = "README.md" + [workspace] +resolver = "2" + members = [ "kble", "kble-serialport", @@ -12,7 +21,13 @@ anyhow = "1" futures = "0.3" futures-util = { version = "0.3", features = ["sink"] } pin-project-lite = { version = "0.2" } +bytes = "1.4.0" tokio = "1" +tokio-util = { version = "0.7", features = ["codec"] } tokio-tungstenite = { version = "0.18" } axum = { version = "0.6", default-features = false } -bytes = "1.4.0" +clap = { version = "4", features = ["derive"] } +serde = { version = "1", features = ["derive"]} +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } +kble-socket = "0.1.0" diff --git a/kble-c2a/Cargo.toml b/kble-c2a/Cargo.toml index c8aa6d9..cf6ab21 100644 --- a/kble-c2a/Cargo.toml +++ b/kble-c2a/Cargo.toml @@ -1,20 +1,21 @@ [package] name = "kble-c2a" -version = "0.1.0" -edition = "2021" -license = "MIT" description = "Virtual Harness Toolkit" -repository = "https://github.com/arkedge/kble" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +readme.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = "1" -futures = "0.3" -tokio = { version = "1", features = ["full"] } -kble-socket = { version = "0.1.0", features = ["stdio", "tungstenite"] } -tokio-util = { version = "0.7", features = ["codec"] } -bytes = { version = "1" } -tracing = "0.1" -tracing-subscriber = { version = "0.3", features = ["env-filter"] } -clap = { version = "4", features = ["derive"] } +anyhow.workspace = true +futures.workspace = true +tokio = { workspace = true, features = ["full"] } +kble-socket = { workspace = true, features = ["stdio", "tungstenite"] } +tokio-util.workspace = true +bytes.workspace = true +tracing.workspace = true +tracing-subscriber.workspace = true +clap.workspace = true diff --git a/kble-eb90/Cargo.toml b/kble-eb90/Cargo.toml index f78a6e6..fead076 100644 --- a/kble-eb90/Cargo.toml +++ b/kble-eb90/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "kble-eb90" -version = "0.1.0" -edition = "2021" -license = "MIT" description = "Virtual Harness Toolkit" -repository = "https://github.com/arkedge/kble" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +readme.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -12,10 +13,10 @@ repository = "https://github.com/arkedge/kble" anyhow.workspace = true futures.workspace = true tokio = { workspace = true, features = ["full"] } -kble-socket = { version = "0.1.0", features = ["stdio", "tungstenite"] } -tokio-util = { version = "0.7", features = ["codec"] } +kble-socket = { workspace = true, features = ["stdio", "tungstenite"] } +tokio-util.workspace = true bytes.workspace = true -tracing = "0.1" -tracing-subscriber = { version = "0.3", features = ["env-filter"] } -clap = { version = "4", features = ["derive"] } +tracing.workspace = true +tracing-subscriber.workspace = true +clap.workspace = true eb90 = "0.1.1" diff --git a/kble-serialport/Cargo.toml b/kble-serialport/Cargo.toml index bd8fa56..4041e1e 100644 --- a/kble-serialport/Cargo.toml +++ b/kble-serialport/Cargo.toml @@ -1,22 +1,23 @@ [package] name = "kble-serialport" -version = "0.1.0" -edition = "2021" -license = "MIT" description = "Virtual Harness Toolkit" -repository = "https://github.com/arkedge/kble" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +readme.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = { workspace = true } -clap = { version = "4", features = ["derive", "env"] } -futures = { workspace = true } +anyhow.workspace = true +clap = { workspace = true, features = ["derive", "env"] } +futures.workspace = true tokio = { workspace = true, features = ["full"] } -kble-socket = { version = "0.1.0", features = ["axum"] } -tracing = "0.1" -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +kble-socket = { workspace = true, features = ["axum"] } +tracing.workspace = true +tracing-subscriber.workspace = true axum = { workspace = true, default-features = false, features = ["tokio", "tower-log", "http1", "ws", "query"] } tokio-serial = "5.4" -serde = { version = "1", features = ["derive"] } -bytes = { workspace = true } +serde.workspace = true +bytes.workspace = true diff --git a/kble-socket/Cargo.toml b/kble-socket/Cargo.toml index e430322..541b8ab 100644 --- a/kble-socket/Cargo.toml +++ b/kble-socket/Cargo.toml @@ -1,21 +1,22 @@ [package] name = "kble-socket" -version = "0.1.0" -edition = "2021" -license = "MIT" description = "Virtual Harness Toolkit" -repository = "https://github.com/arkedge/kble" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +readme.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = { workspace = true } -futures-util = { workspace = true } +anyhow.workspace = true +futures-util.workspace = true pin-project-lite = { workspace = true, optional = true } -tokio = { workspace = true } +tokio.workspace = true tokio-tungstenite = { workspace = true, optional = true } -axum = { workspace = true } -bytes = { workspace = true } +axum.workspace = true +bytes.workspace = true [features] stdio = ["tokio/io-std", "dep:pin-project-lite"] diff --git a/kble/Cargo.toml b/kble/Cargo.toml index 2eab4a9..6c086a1 100644 --- a/kble/Cargo.toml +++ b/kble/Cargo.toml @@ -1,22 +1,23 @@ [package] name = "kble" -version = "0.1.0" -edition = "2021" -license = "MIT" description = "Virtual Harness Toolkit" -repository = "https://github.com/arkedge/kble" +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +readme.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = { workspace = true } -futures = { workspace = true } +anyhow.workspace = true +futures.workspace = true pin-project = "1" tokio = { workspace = true, features = ["full"] } async-trait = "0.1" url = { version = "2", features = ["serde"] } -tokio-tungstenite = { workspace = true } -clap = { version = "4", features = ["derive"] } -serde = { version = "1", features = ["derive"]} +tokio-tungstenite.workspace = true +clap.workspace = true +serde.workspace = true serde_yaml = "0.9" serde_with = "3.0"