Extract cli into a subproject.
The cli binary pulls in more dependencies via clap and is not strictly necessary in a crate-only context.
This commit is contained in:
parent
5791c6f7ca
commit
9afc4bc2ac
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
target
|
||||
/Cargo.lock
|
||||
|
20
Cargo.lock
generated
20
Cargo.lock
generated
@ -2,7 +2,6 @@
|
||||
name = "names"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap 1.4.0 (git+https://github.com/kbknapp/clap-rs?rev=40104af)",
|
||||
"rand 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
@ -15,20 +14,6 @@ dependencies = [
|
||||
"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ansi_term"
|
||||
version = "0.6.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "clap"
|
||||
version = "1.4.0"
|
||||
source = "git+https://github.com/kbknapp/clap-rs?rev=40104af#40104afe9d124b658569656ca643dc0a9d813216"
|
||||
dependencies = [
|
||||
"ansi_term 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"strsim 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.1.10"
|
||||
@ -44,11 +29,6 @@ dependencies = [
|
||||
"winapi 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "strsim"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.2.4"
|
||||
|
@ -7,11 +7,5 @@ authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
|
||||
name = "names"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "names"
|
||||
doc = false
|
||||
|
||||
[dependencies]
|
||||
# pending a release which includes https://github.com/kbknapp/clap-rs/pull/257
|
||||
clap = { git = "https://github.com/kbknapp/clap-rs", rev = "40104af" }
|
||||
rand = "0.3.0"
|
||||
|
68
cli/Cargo.lock
generated
Normal file
68
cli/Cargo.lock
generated
Normal file
@ -0,0 +1,68 @@
|
||||
[root]
|
||||
name = "names-cli"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap 1.4.0 (git+https://github.com/kbknapp/clap-rs?rev=40104af)",
|
||||
"names 0.1.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "advapi32-sys"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"winapi 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ansi_term"
|
||||
version = "0.6.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "clap"
|
||||
version = "1.4.0"
|
||||
source = "git+https://github.com/kbknapp/clap-rs?rev=40104af#40104afe9d124b658569656ca643dc0a9d813216"
|
||||
dependencies = [
|
||||
"ansi_term 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"strsim 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libc"
|
||||
version = "0.1.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "names"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"rand 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rand"
|
||||
version = "0.3.11"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"libc 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"winapi 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "strsim"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "winapi"
|
||||
version = "0.2.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
||||
[[package]]
|
||||
name = "winapi-build"
|
||||
version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
|
12
cli/Cargo.toml
Normal file
12
cli/Cargo.toml
Normal file
@ -0,0 +1,12 @@
|
||||
[package]
|
||||
name = "names-cli"
|
||||
version = "0.1.0"
|
||||
authors = ["Fletcher Nichol <fnichol@nichol.ca>"]
|
||||
|
||||
[[bin]]
|
||||
name = "names"
|
||||
|
||||
[dependencies]
|
||||
# pending a release which includes https://github.com/kbknapp/clap-rs/pull/257
|
||||
clap = { git = "https://github.com/kbknapp/clap-rs", rev = "40104af" }
|
||||
names = { path = ".." }
|
Loading…
Reference in New Issue
Block a user