From 0e687cc3ffd0142cca0a15b8df1047e569d37a8c Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 12 Nov 2024 21:03:21 -0500 Subject: [PATCH] fix `unused_crate_dependencies` --- storage/database/Cargo.toml | 4 ++-- storage/database/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/storage/database/Cargo.toml b/storage/database/Cargo.toml index 91b2904..817577f 100644 --- a/storage/database/Cargo.toml +++ b/storage/database/Cargo.toml @@ -12,12 +12,12 @@ keywords = ["cuprate", "database"] default = ["heed"] # default = ["redb"] # default = ["redb-memory"] -heed = ["dep:cuprate-helper"] +heed = [] redb = ["dep:redb"] redb-memory = ["redb"] [dependencies] -cuprate-helper = { workspace = true, features = ["cast"], optional = true } +cuprate-helper = { workspace = true, features = ["cast"] } bytemuck = { version = "1.18.0", features = ["must_cast", "derive", "min_const_generics", "extern_crate_alloc"] } bytes = { workspace = true } diff --git a/storage/database/src/lib.rs b/storage/database/src/lib.rs index 45bfc53..2f5bd96 100644 --- a/storage/database/src/lib.rs +++ b/storage/database/src/lib.rs @@ -71,5 +71,6 @@ cfg_if::cfg_if! { use redb as _; } else { use heed as _; + use cuprate_helper as _; } }