Skip to content

Commit

Permalink
Cargo.toml: add 'log' feature.
Browse files Browse the repository at this point in the history
The layout crate has a few calls to `log::info!()` guarded by a
`#[cfg(feature = "log")]` conditional. This commit declares the
`log` feature so that users of the crate can enable such debug
messages.
  • Loading branch information
lucasvr authored and nadavrot committed Feb 28, 2024
1 parent 08f2327 commit cd3570f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layout/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ repository = "https://github.com/nadavrot/layout"
[lib]
name = "layout"

[features]
log = ["dep:log"]

[dependencies]
log = { version = "0.4.17", optional = true }

0 comments on commit cd3570f

Please sign in to comment.