From e2033fb6c195acdf87ed4690ba8606fd661f9343 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 3 Jul 2024 13:20:37 -0400 Subject: [PATCH] notify users to update their build scripts if using `rocksdb` or `sha256_media` Signed-off-by: strawberry --- src/core/Cargo.toml | 4 ++++ src/core/config/check.rs | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/core/Cargo.toml b/src/core/Cargo.toml index 0214762a..2c0fc47d 100644 --- a/src/core/Cargo.toml +++ b/src/core/Cargo.toml @@ -45,6 +45,10 @@ zstd_compression =[] perf_measurements = [] sentry_telemetry = [] +# these do nothing, these are purely for informing users to update their build scripts if they use one +rocksdb = [] +sha256_media = [] + [dependencies] argon2.workspace = true axum.workspace = true diff --git a/src/core/config/check.rs b/src/core/config/check.rs index 24a9ac9c..795f0c43 100644 --- a/src/core/config/check.rs +++ b/src/core/config/check.rs @@ -6,6 +6,17 @@ use tracing::{debug, error, info, warn}; use crate::{error::Error, Config}; pub fn check(config: &Config) -> Result<(), Error> { + #[cfg(feature = "rocksdb")] + warn!( + "Note the rocksdb feature was deleted from conduwuit, sqlite was deleted and RocksDB is the only supported \ + backend now. Please update your build script to remove this feature." + ); + #[cfg(feature = "sha256_media")] + warn!( + "Note the sha256_media feature was deleted from conduwuit, it is now fully integrated in a \ + forwards-compatible way. Please update your build script to remove this feature." + ); + config.warn_deprecated(); config.warn_unknown_key();