Browse Source

Refactor into cargo workspace

checkpoints
Aditya Kulkarni 5 years ago
parent
commit
be2eaad443
  1. 7
      .github/workflows/rust.yml
  2. 23
      Cargo.toml
  3. 18
      cli/Cargo.toml
  4. 0
      cli/src/main.rs
  5. 3
      lib/Cargo.toml

7
.github/workflows/rust.yml

@ -24,5 +24,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --release --all
args: --verbose --release --all --tests
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --release --all

23
Cargo.toml

@ -1,21 +1,8 @@
[package]
name = "zecwallet-cli"
version = "1.1.0"
edition = "2018"
[dependencies]
rustyline = "5.0.2"
clap = "2.33"
log = "0.4"
log4rs = "0.8.3"
shellwords = "1.0.0"
json = "0.12.0"
http = "0.1"
byteorder = "1"
tiny-bip39 = "0.6.2"
zecwalletlitelib = { path = "./lib/" }
[workspace]
members = [
"lib",
"cli",
]
[profile.release]
debug = false

18
cli/Cargo.toml

@ -0,0 +1,18 @@
[package]
name = "zecwallet-cli"
version = "1.1.0"
edition = "2018"
[dependencies]
rustyline = "5.0.2"
clap = "2.33"
log = "0.4"
log4rs = "0.8.3"
shellwords = "1.0.0"
json = "0.12.0"
http = "0.1"
byteorder = "1"
tiny-bip39 = "0.6.2"
zecwalletlitelib = { path = "../lib/" }

0
src/main.rs → cli/src/main.rs

3
lib/Cargo.toml

@ -72,6 +72,3 @@ tower-grpc-build = { git = "https://github.com/tower-rs/tower-grpc", features =
[dev-dependencies]
tempdir = "0.3.7"
[profile.release]
debug = false
Loading…
Cancel
Save