Extract CLI logic to a child project
This commit is contained in:
parent
2df0f8d077
commit
7a56dabd39
11 changed files with 26 additions and 23 deletions
18
Cargo.lock
generated
18
Cargo.lock
generated
|
@ -176,15 +176,6 @@ name = "fake-simd"
|
|||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "ffsend"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap 2.31.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ffsend-api 0.1.0",
|
||||
"open 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ffsend-api"
|
||||
version = "0.1.0"
|
||||
|
@ -203,6 +194,15 @@ dependencies = [
|
|||
"url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ffsend-cli"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap 2.31.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ffsend-api 0.1.0",
|
||||
"open 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "foreign-types"
|
||||
version = "0.3.2"
|
||||
|
|
18
Cargo.toml
18
Cargo.toml
|
@ -1,15 +1,5 @@
|
|||
[package]
|
||||
name = "ffsend"
|
||||
version = "0.1.0"
|
||||
authors = ["timvisee <timvisee@gmail.com>"]
|
||||
|
||||
[[bin]]
|
||||
name = "ffsend"
|
||||
|
||||
[workspace]
|
||||
members = ["api"]
|
||||
|
||||
[dependencies]
|
||||
clap = "2.31"
|
||||
ffsend-api = { version = "*", path = "api" }
|
||||
open = "1"
|
||||
members = [
|
||||
"api",
|
||||
"cli",
|
||||
]
|
||||
|
|
13
cli/Cargo.toml
Normal file
13
cli/Cargo.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
[package]
|
||||
name = "ffsend-cli"
|
||||
version = "0.1.0"
|
||||
authors = ["timvisee <timvisee@gmail.com>"]
|
||||
|
||||
[[bin]]
|
||||
path = "src/main.rs"
|
||||
name = "ffsend"
|
||||
|
||||
[dependencies]
|
||||
clap = "2.31"
|
||||
ffsend-api = { version = "*", path = "../api" }
|
||||
open = "1"
|
Loading…
Reference in a new issue