-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pulled CLI tools into a single crate and consolidated.
Moved the CLI tools into a single crate to reduce dependencies overall. Also exploded status into a cmdline tool that can address functionality individually from the cmdline. This is now a swiss army knife to talking to terminals. The update should be eventually incorporated into this one, but I ran out of time for this today.
- Loading branch information
Showing
15 changed files
with
726 additions
and
336 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ resolver = "2" | |
members = [ | ||
"zvt", | ||
"zvt_builder", | ||
"zvt_cli", | ||
"zvt_derive", | ||
] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test") | ||
load("@crate_index//:defs.bzl", "all_crate_deps") | ||
|
||
rust_binary( | ||
name = "zvt_cli", | ||
srcs = glob(["src/main.rs"]), | ||
edition = "2021", | ||
deps = all_crate_deps() + ["//zvt"], | ||
) | ||
|
||
rust_binary( | ||
name = "feig_update", | ||
srcs = glob(["src/bin/feig_update/main.rs"]), | ||
edition = "2021", | ||
deps = all_crate_deps() + ["//zvt"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "zvt_cli" | ||
edition = "2021" | ||
authors.workspace = true | ||
categories.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
version.workspace = true | ||
description = """ | ||
A crate to interact with payment terminals (ECRs) that use the ZVT protocol, including stand alone commandline tools to interact with the devices. | ||
""" | ||
|
||
[dependencies] | ||
anyhow = "1.0.70" | ||
argh = "0.1.12" | ||
env_logger = "0.10.0" | ||
log = "0.4.19" | ||
serde = { version = "1.0.185", features = ["derive"] } | ||
serde_json = "1.0.105" | ||
tokio = { version = "1.29.1", features = ["net", "io-util", "rt-multi-thread", "macros"] } | ||
tokio-stream = "0.1.14" | ||
zvt = { version = "0.1.0", path = "../zvt" } |
Oops, something went wrong.