diff options
-rw-r--r-- | libsyslog/CHANGELOG.md | 5 | ||||
-rw-r--r-- | libsyslog/Cargo.toml | 3 | ||||
-rw-r--r-- | libsyslog/src/lib.rs | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/libsyslog/CHANGELOG.md b/libsyslog/CHANGELOG.md index 0a0e2e7..e5525b8 100644 --- a/libsyslog/CHANGELOG.md +++ b/libsyslog/CHANGELOG.md @@ -12,6 +12,11 @@ adheres to [Semantic Versioning][semver]. - Stop insecurely passing untrusted data syslog(). +### Changed + + - Switch bitflags to being a default feature, thus exposing the Logopt struct + SyslogBuilder::logopt() method by default. + ## 0.1.0 - 2023-02-24 Initial release. 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; |