From 7b5cbb0ef1531cb13cc487079e179a983934ae76 Mon Sep 17 00:00:00 2001 From: Martin Samuelsson Date: Sat, 27 May 2023 13:14:25 +0200 Subject: Make bitflags a default feature 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. --- libsyslog/Cargo.toml | 3 ++- 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; -- cgit v1.2.3