Skip to content

Commit

Permalink
Disable logging in release
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Jan 4, 2020
1 parent 047bb30 commit c537911
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ default-features = false
features = ["rt-core", "io-driver", "macros"]
optional = true

[dependencies.log]
version = "0.4"
# It is supposed to be compile time elimination, but actually it is not :(
# Though likely these ifs will be constexpr
features = ["release_max_level_off"]
optional = true

[dependencies]
memmap = "0.7"

Expand All @@ -47,7 +54,7 @@ dirs = { version = "2", optional = true }
futures-util = { version = "0.3" }

[features]
cli = ["structopt", "toml", "dirs", "tokio"]
cli = ["structopt", "toml", "dirs", "tokio", "log"]

[[bin]]
name = "fie"
Expand Down

0 comments on commit c537911

Please sign in to comment.