diff options
author | Martin Samuelsson <msamuelsson@storvix.eu> | 2023-05-27 13:14:25 +0200 |
---|---|---|
committer | cos <cos> | 2023-05-28 14:57:23 +0200 |
commit | 7b5cbb0ef1531cb13cc487079e179a983934ae76 (patch) | |
tree | 8c5554744d8c3954485e86b48f00fc00c2130fa2 | |
parent | c3e521e4ac4725daff075653c5c9163bfcb15526 (diff) | |
download | libsyslog-rs-7b5cbb0ef1531cb13cc487079e179a983934ae76.zip |
Make bitflags a default featuretopic/bitflags
This change is due to bitflags version 2.0 having been released.
Unlike what was mentioned in the source code comment, removed by this
commit, the feature is not getting deprecated. It makes some sense to
keep the feature around for those who do not need it. Every dependency
reduced is a win.
-rw-r--r-- | libsyslog/Cargo.toml | 3 | ||||
-rw-r--r-- | libsyslog/src/lib.rs | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsyslog/Cargo.toml b/libsyslog/Cargo.toml index 5d6e904..7128827 100644 --- a/libsyslog/Cargo.toml +++ b/libsyslog/Cargo.toml @@ -8,9 +8,10 @@ repository = "https://git.netizen.se/libsyslog-rs/" keywords = [ "logging", "syslog" ] [dependencies] -bitflags = { version = "2.0.0-rc.3", optional = true } +bitflags = { version = "2.0.2", optional = true } libsyslog-sys = { version = "0.1.0", path = "../libsyslog-sys" } log = { version = "0.4.17", features = [ "std" ] } [features] +default = ["bitflags"] bitflags = [ "dep:bitflags" ] diff --git a/libsyslog/src/lib.rs b/libsyslog/src/lib.rs index 7c253ae..904f3ea 100644 --- a/libsyslog/src/lib.rs +++ b/libsyslog/src/lib.rs @@ -52,7 +52,6 @@ compile_error!("AIX user, please help with the code comment above this error."); mod builder; mod facility; -// TODO Deprecate feature once the bitflags crate reaches 2.0.0. #[cfg(feature = "bitflags")] mod logopt; mod syslog; |