diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-07 02:58:23 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-07 02:58:23 +0100 |
| commit | a93e0bf8db710ef9dcd40e1526ddd4b18a7288e9 (patch) | |
| tree | 96b40088f0922146a793405dc37e49d74e5af440 | |
| parent | d6287e2f54bd3ad22f970c0a3fe5230be00a592e (diff) | |
| download | jellything-a93e0bf8db710ef9dcd40e1526ddd4b18a7288e9.tar jellything-a93e0bf8db710ef9dcd40e1526ddd4b18a7288e9.tar.bz2 jellything-a93e0bf8db710ef9dcd40e1526ddd4b18a7288e9.tar.zst | |
move cache tools to kv crate
| -rw-r--r-- | Cargo.lock | 9 | ||||
| -rw-r--r-- | Cargo.toml | 1 | ||||
| -rw-r--r-- | cache/tools/Cargo.toml | 16 | ||||
| -rw-r--r-- | kv/Cargo.toml | 16 | ||||
| -rw-r--r-- | kv/src/bin/fs_to_rocksdb.rs (renamed from cache/tools/cache_fs_to_rocksdb.rs) | 0 | ||||
| -rw-r--r-- | kv/src/bin/rocksdb_remove_prefix.rs (renamed from cache/tools/cache_rocksdb_delete_prefix.rs) | 0 |
6 files changed, 17 insertions, 25 deletions
@@ -2011,6 +2011,7 @@ name = "jellykv" version = "0.1.0" dependencies = [ "anyhow", + "humansize", "rand 0.10.0", "redb", "rocksdb", @@ -4266,14 +4267,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" [[package]] -name = "tools" -version = "0.1.0" -dependencies = [ - "anyhow", - "rocksdb", -] - -[[package]] name = "tower" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -1,7 +1,6 @@ [workspace] members = [ "cache", - "cache/tools", "common", "common/object", "database", diff --git a/cache/tools/Cargo.toml b/cache/tools/Cargo.toml deleted file mode 100644 index bf0427d..0000000 --- a/cache/tools/Cargo.toml +++ /dev/null @@ -1,16 +0,0 @@ -[package] -name = "tools" -version = "0.1.0" -edition = "2024" - -[dependencies] -rocksdb = { version = "0.24.0", features = ["multi-threaded-cf"] } -anyhow = { workspace = true } - -[[bin]] -name = "cache_fs_to_rocksdb" -path = "cache_fs_to_rocksdb.rs" - -[[bin]] -name = "cache_rocksdb_delete_prefix" -path = "cache_rocksdb_delete_prefix.rs" diff --git a/kv/Cargo.toml b/kv/Cargo.toml index eafd496..ce29215 100644 --- a/kv/Cargo.toml +++ b/kv/Cargo.toml @@ -10,6 +10,22 @@ rocksdb = { version = "0.24.0", features = [ "multi-threaded-cf", ], optional = true } redb = { version = "3.1.0", optional = true } +humansize = "2.1.3" + +[[bin]] +name = "jellykv_rocksdb_remove_prefix" +path = "src/bin/rocksdb_remove_prefix.rs" +required-features = ["rocksdb"] + +[[bin]] +name = "jellykv_rocksdb_stats" +path = "src/bin/rocksdb_stats.rs" +required-features = ["rocksdb"] + +[[bin]] +name = "jellykv_fs_to_rocksdb" +path = "src/bin/fs_to_rocksdb.rs" +required-features = ["rocksdb"] [features] # default = ["rocksdb", "redb", "memory", "filesystem"] diff --git a/cache/tools/cache_fs_to_rocksdb.rs b/kv/src/bin/fs_to_rocksdb.rs index d283dcb..d283dcb 100644 --- a/cache/tools/cache_fs_to_rocksdb.rs +++ b/kv/src/bin/fs_to_rocksdb.rs diff --git a/cache/tools/cache_rocksdb_delete_prefix.rs b/kv/src/bin/rocksdb_remove_prefix.rs index e09ce61..e09ce61 100644 --- a/cache/tools/cache_rocksdb_delete_prefix.rs +++ b/kv/src/bin/rocksdb_remove_prefix.rs |