Skip to content

Commit

Permalink
fix: Only install netsuite binary if cli feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsvante committed Oct 31, 2021
1 parent 282b063 commit 6e14ced
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ tiny_http = { version = "0.9.0" }

[features]
cli = ["clap", "tiny_http"]

[[bin]]
name = "netsuite"
required-features = ["cli"]
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
fn main() {
#[cfg(feature = "cli")]
match netsuite::cli::run() {
Ok(()) => {}
Err(err) => {
Expand Down

0 comments on commit 6e14ced

Please sign in to comment.