Refactor into library and add argument parsing
This commit is contained in:
parent
58ffa5baac
commit
058772edb4
15
Cargo.toml
15
Cargo.toml
@ -10,9 +10,22 @@ repository = "https://github.com/connorskees/grass"
|
|||||||
authors = ["ConnorSkees <39542938+ConnorSkees@users.noreply.github.com>"]
|
authors = ["ConnorSkees <39542938+ConnorSkees@users.noreply.github.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
[[bin]]
|
||||||
|
name = "grass"
|
||||||
|
path = "src/main.rs"
|
||||||
|
required-features = ["commandline"]
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "grass"
|
||||||
|
path = "src/lib.rs"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
clap = { version = "2.33.0", optional = true }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["commandline"]
|
||||||
|
commandline = ["clap"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
# test imports
|
# test imports
|
||||||
|
1217
src/lib.rs
Normal file
1217
src/lib.rs
Normal file
File diff suppressed because it is too large
Load Diff
1286
src/main.rs
1286
src/main.rs
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user