other: disable logging when building with default features (#1133)
* other: disable logging when building with default features * update docs
This commit is contained in:
parent
bb94355cfc
commit
440e10c34d
|
@ -66,11 +66,14 @@ nvidia = ["nvml-wrapper"]
|
||||||
zfs = []
|
zfs = []
|
||||||
|
|
||||||
# The features we use by default.
|
# The features we use by default.
|
||||||
default = ["fern", "log", "battery", "gpu", "zfs"]
|
default = ["deploy"]
|
||||||
|
|
||||||
# The features we use on deploy. Logging is not included as that is primarily (for now) just for debugging locally.
|
# The features we use on deploy. Logging is not included as that is primarily (for now) just for debugging locally.
|
||||||
deploy = ["battery", "gpu", "zfs"]
|
deploy = ["battery", "gpu", "zfs"]
|
||||||
|
|
||||||
|
# Including logging for debugging purposes.
|
||||||
|
logging = ["fern", "log"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.71"
|
anyhow = "1.0.71"
|
||||||
backtrace = "0.3.67"
|
backtrace = "0.3.67"
|
||||||
|
@ -131,7 +134,9 @@ filedescriptor = "0.8.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
assert_cmd = "2.0.11"
|
assert_cmd = "2.0.11"
|
||||||
cargo-husky = { version = "1.5.0", default-features = false, features = ["user-hooks"] }
|
cargo-husky = { version = "1.5.0", default-features = false, features = [
|
||||||
|
"user-hooks",
|
||||||
|
] }
|
||||||
predicates = "3.0.3"
|
predicates = "3.0.3"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
|
|
@ -28,7 +28,7 @@ Binaries are built currently for various targets. Note that not all of these are
|
||||||
- Enable cache.
|
- Enable cache.
|
||||||
- Build a release build with:
|
- Build a release build with:
|
||||||
|
|
||||||
- `--features deploy`, which disables unneeded dev features in bottom.
|
- `--features deploy`, which enables only crates needed for release builds.
|
||||||
- `--locked` to lock the dependency versions.
|
- `--locked` to lock the dependency versions.
|
||||||
- The following env variables set:
|
- The following env variables set:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue