From be7e5b546efb485f68e2fa451e81254bdcacdc0f Mon Sep 17 00:00:00 2001 From: Evgeny Petrov Date: Sat, 25 Nov 2023 07:18:02 +0000 Subject: [PATCH 1/4] Make examles binaries --- zvt/Cargo.toml | 10 +--------- .../feig_update.rs => src/bin/feig_update/main.rs} | 0 zvt/{examples/status.rs => src/bin/status/main.rs} | 0 3 files changed, 1 insertion(+), 9 deletions(-) rename zvt/{examples/feig_update.rs => src/bin/feig_update/main.rs} (100%) rename zvt/{examples/status.rs => src/bin/status/main.rs} (100%) diff --git a/zvt/Cargo.toml b/zvt/Cargo.toml index e9e0d74..1a605ec 100644 --- a/zvt/Cargo.toml +++ b/zvt/Cargo.toml @@ -22,17 +22,9 @@ zvt_builder = { version = "0.1.0", path = "../zvt_builder" } log = "0.4.19" env_logger = "0.10.0" tokio-stream = "0.1.14" -tokio = { version = "1.29.1", features = ["net", "io-util"] } +tokio = { version = "1.29.1", features = ["net", "io-util", "rt-multi-thread", "macros"] } async-stream = "0.3.5" serde = { version = "1.0.185", features = ["derive"] } serde_json = "1.0.105" futures = "0.3.28" -[dev-dependencies] -tokio = { version = "1.29.1", features = ["rt-multi-thread", "macros"] } - -[[example]] -name = "feig_update" - -[[example]] -name = "status" diff --git a/zvt/examples/feig_update.rs b/zvt/src/bin/feig_update/main.rs similarity index 100% rename from zvt/examples/feig_update.rs rename to zvt/src/bin/feig_update/main.rs diff --git a/zvt/examples/status.rs b/zvt/src/bin/status/main.rs similarity index 100% rename from zvt/examples/status.rs rename to zvt/src/bin/status/main.rs From 6265e09bd84ac7e67fc829b7d6f19a84366a27b3 Mon Sep 17 00:00:00 2001 From: Evgeny Petrov Date: Sat, 25 Nov 2023 07:31:48 +0000 Subject: [PATCH 2/4] Bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 826bf25..35e8b82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ members = [ ] [workspace.package] -version = "0.1.0" +version = "0.1.1" authors = ["Qwello GmbH "] license = "MIT OR Apache-2.0" readme = "README.md" From 413b60e58fd12c57444da1d3e438ce8d03522387 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 27 Nov 2023 09:10:55 +0100 Subject: [PATCH 3/4] Update cargo.lock. --- Cargo.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c280ac7..6acf5ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -914,7 +914,7 @@ dependencies = [ [[package]] name = "zvt" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "async-stream", @@ -935,7 +935,7 @@ dependencies = [ [[package]] name = "zvt_builder" -version = "0.1.0" +version = "0.1.1" dependencies = [ "chrono", "hex", @@ -947,7 +947,7 @@ dependencies = [ [[package]] name = "zvt_derive" -version = "0.1.0" +version = "0.1.1" dependencies = [ "proc-macro2", "quote", From ce632e4e3439cef14723a4e2635e55e3227f76e0 Mon Sep 17 00:00:00 2001 From: Evgeny Petrov Date: Mon, 27 Nov 2023 13:33:05 +0100 Subject: [PATCH 4/4] Fix bazel build. --- zvt/BUILD.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zvt/BUILD.bazel b/zvt/BUILD.bazel index db20264..4296f5c 100644 --- a/zvt/BUILD.bazel +++ b/zvt/BUILD.bazel @@ -16,14 +16,14 @@ rust_library( rust_binary( name = "status", - srcs = glob(["examples/status.rs"]), + srcs = glob(["src/bin/status/main.rs"]), edition = "2021", deps = all_crate_deps() + [":zvt"], ) rust_binary( name = "feig_update", - srcs = glob(["examples/feig_update.rs"]), + srcs = glob(["src/bin/feig_update/main.rs"]), edition = "2021", deps = all_crate_deps() + [":zvt"], )