From d4d3660bac7dabdd5d6be91b8be2739f6a38afa5 Mon Sep 17 00:00:00 2001 From: despiegk Date: Sat, 23 Aug 2025 04:58:41 +0200 Subject: [PATCH] ... --- Cargo.toml | 37 +++++++++++++++---- herodb/README.md => README.md | 0 herodb/build.sh => build.sh | 0 {herodb/docs => docs}/age.md | 0 {herodb/docs => docs}/basics.md | 0 {herodb/docs => docs}/cmds.md | 0 {herodb/docs => docs}/search.md | 0 .../test_tantivy_integration.sh | 0 herodb/Cargo.toml | 30 --------------- herodb/run_tests.sh => run_tests.sh | 0 .../specs => specs}/backgroundinfo/encrypt.md | 0 .../specs => specs}/backgroundinfo/lance.md | 0 .../specs => specs}/backgroundinfo/lancedb.md | 0 .../specs => specs}/backgroundinfo/redb.md | 0 .../backgroundinfo/redis_basic_client.md | 0 .../backgroundinfo/redis_basics.md | 0 .../backgroundinfo/redis_hset_functions.md | 0 .../backgroundinfo/redis_lists.md | 0 .../specs => specs}/backgroundinfo/sled.md | 0 .../specs => specs}/backgroundinfo/tantivy.md | 0 .../specs => specs}/lance_implementation.md | 0 {herodb/src => src}/age.rs | 0 {herodb/src => src}/cmd.rs | 0 {herodb/src => src}/crypto.rs | 0 {herodb/src => src}/error.rs | 0 {herodb/src => src}/lib.rs | 0 {herodb/src => src}/main.rs | 0 {herodb/src => src}/options.rs | 0 {herodb/src => src}/protocol.rs | 0 {herodb/src => src}/search_cmd.rs | 0 {herodb/src => src}/server.rs | 0 {herodb/src => src}/storage/mod.rs | 0 {herodb/src => src}/storage/storage_basic.rs | 0 {herodb/src => src}/storage/storage_extra.rs | 0 {herodb/src => src}/storage/storage_hset.rs | 0 {herodb/src => src}/storage/storage_lists.rs | 0 {herodb/src => src}/storage_sled/mod.rs | 0 {herodb/src => src}/storage_trait.rs | 0 {herodb/src => src}/tantivy_search.rs | 0 herodb/test_herodb.sh => test_herodb.sh | 0 {herodb/tests => tests}/debug_hset.rs | 0 {herodb/tests => tests}/debug_hset_simple.rs | 0 {herodb/tests => tests}/debug_protocol.rs | 0 .../redis_integration_tests.rs | 0 {herodb/tests => tests}/redis_tests.rs | 0 .../simple_integration_test.rs | 0 {herodb/tests => tests}/simple_redis_test.rs | 0 {herodb/tests => tests}/usage_suite.rs | 0 48 files changed, 29 insertions(+), 38 deletions(-) rename herodb/README.md => README.md (100%) rename herodb/build.sh => build.sh (100%) rename {herodb/docs => docs}/age.md (100%) rename {herodb/docs => docs}/basics.md (100%) rename {herodb/docs => docs}/cmds.md (100%) rename {herodb/docs => docs}/search.md (100%) rename {herodb => examples}/test_tantivy_integration.sh (100%) delete mode 100644 herodb/Cargo.toml rename herodb/run_tests.sh => run_tests.sh (100%) rename {herodb/specs => specs}/backgroundinfo/encrypt.md (100%) rename {herodb/specs => specs}/backgroundinfo/lance.md (100%) rename {herodb/specs => specs}/backgroundinfo/lancedb.md (100%) rename {herodb/specs => specs}/backgroundinfo/redb.md (100%) rename {herodb/specs => specs}/backgroundinfo/redis_basic_client.md (100%) rename {herodb/specs => specs}/backgroundinfo/redis_basics.md (100%) rename {herodb/specs => specs}/backgroundinfo/redis_hset_functions.md (100%) rename {herodb/specs => specs}/backgroundinfo/redis_lists.md (100%) rename {herodb/specs => specs}/backgroundinfo/sled.md (100%) rename {herodb/specs => specs}/backgroundinfo/tantivy.md (100%) rename {herodb/specs => specs}/lance_implementation.md (100%) rename {herodb/src => src}/age.rs (100%) rename {herodb/src => src}/cmd.rs (100%) rename {herodb/src => src}/crypto.rs (100%) rename {herodb/src => src}/error.rs (100%) rename {herodb/src => src}/lib.rs (100%) rename {herodb/src => src}/main.rs (100%) rename {herodb/src => src}/options.rs (100%) rename {herodb/src => src}/protocol.rs (100%) rename {herodb/src => src}/search_cmd.rs (100%) rename {herodb/src => src}/server.rs (100%) rename {herodb/src => src}/storage/mod.rs (100%) rename {herodb/src => src}/storage/storage_basic.rs (100%) rename {herodb/src => src}/storage/storage_extra.rs (100%) rename {herodb/src => src}/storage/storage_hset.rs (100%) rename {herodb/src => src}/storage/storage_lists.rs (100%) rename {herodb/src => src}/storage_sled/mod.rs (100%) rename {herodb/src => src}/storage_trait.rs (100%) rename {herodb/src => src}/tantivy_search.rs (100%) rename herodb/test_herodb.sh => test_herodb.sh (100%) rename {herodb/tests => tests}/debug_hset.rs (100%) rename {herodb/tests => tests}/debug_hset_simple.rs (100%) rename {herodb/tests => tests}/debug_protocol.rs (100%) rename {herodb/tests => tests}/redis_integration_tests.rs (100%) rename {herodb/tests => tests}/redis_tests.rs (100%) rename {herodb/tests => tests}/simple_integration_test.rs (100%) rename {herodb/tests => tests}/simple_redis_test.rs (100%) rename {herodb/tests => tests}/usage_suite.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 2eedb5f..393da00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,30 @@ -[workspace] -members = ["herodb"] -resolver = "2" +[package] +name = "herodb" +version = "0.0.1" +authors = ["Pin Fang "] +edition = "2021" -# You can define shared profiles for all workspace members here -[profile.release] -lto = true -codegen-units = 1 -strip = true \ No newline at end of file +[dependencies] +anyhow = "1.0.59" +bytes = "1.3.0" +thiserror = "1.0.32" +tokio = { version = "1.23.0", features = ["full"] } +clap = { version = "4.5.20", features = ["derive"] } +byteorder = "1.4.3" +futures = "0.3" +sled = "0.34" +redb = "2.1.3" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +bincode = "1.3" +chacha20poly1305 = "0.10.1" +rand = "0.8" +sha2 = "0.10" +age = "0.10" +secrecy = "0.8" +ed25519-dalek = "2" +base64 = "0.22" +tantivy = "0.25.0" + +[dev-dependencies] +redis = { version = "0.24", features = ["aio", "tokio-comp"] } diff --git a/herodb/README.md b/README.md similarity index 100% rename from herodb/README.md rename to README.md diff --git a/herodb/build.sh b/build.sh similarity index 100% rename from herodb/build.sh rename to build.sh diff --git a/herodb/docs/age.md b/docs/age.md similarity index 100% rename from herodb/docs/age.md rename to docs/age.md diff --git a/herodb/docs/basics.md b/docs/basics.md similarity index 100% rename from herodb/docs/basics.md rename to docs/basics.md diff --git a/herodb/docs/cmds.md b/docs/cmds.md similarity index 100% rename from herodb/docs/cmds.md rename to docs/cmds.md diff --git a/herodb/docs/search.md b/docs/search.md similarity index 100% rename from herodb/docs/search.md rename to docs/search.md diff --git a/herodb/test_tantivy_integration.sh b/examples/test_tantivy_integration.sh similarity index 100% rename from herodb/test_tantivy_integration.sh rename to examples/test_tantivy_integration.sh diff --git a/herodb/Cargo.toml b/herodb/Cargo.toml deleted file mode 100644 index 393da00..0000000 --- a/herodb/Cargo.toml +++ /dev/null @@ -1,30 +0,0 @@ -[package] -name = "herodb" -version = "0.0.1" -authors = ["Pin Fang "] -edition = "2021" - -[dependencies] -anyhow = "1.0.59" -bytes = "1.3.0" -thiserror = "1.0.32" -tokio = { version = "1.23.0", features = ["full"] } -clap = { version = "4.5.20", features = ["derive"] } -byteorder = "1.4.3" -futures = "0.3" -sled = "0.34" -redb = "2.1.3" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -bincode = "1.3" -chacha20poly1305 = "0.10.1" -rand = "0.8" -sha2 = "0.10" -age = "0.10" -secrecy = "0.8" -ed25519-dalek = "2" -base64 = "0.22" -tantivy = "0.25.0" - -[dev-dependencies] -redis = { version = "0.24", features = ["aio", "tokio-comp"] } diff --git a/herodb/run_tests.sh b/run_tests.sh similarity index 100% rename from herodb/run_tests.sh rename to run_tests.sh diff --git a/herodb/specs/backgroundinfo/encrypt.md b/specs/backgroundinfo/encrypt.md similarity index 100% rename from herodb/specs/backgroundinfo/encrypt.md rename to specs/backgroundinfo/encrypt.md diff --git a/herodb/specs/backgroundinfo/lance.md b/specs/backgroundinfo/lance.md similarity index 100% rename from herodb/specs/backgroundinfo/lance.md rename to specs/backgroundinfo/lance.md diff --git a/herodb/specs/backgroundinfo/lancedb.md b/specs/backgroundinfo/lancedb.md similarity index 100% rename from herodb/specs/backgroundinfo/lancedb.md rename to specs/backgroundinfo/lancedb.md diff --git a/herodb/specs/backgroundinfo/redb.md b/specs/backgroundinfo/redb.md similarity index 100% rename from herodb/specs/backgroundinfo/redb.md rename to specs/backgroundinfo/redb.md diff --git a/herodb/specs/backgroundinfo/redis_basic_client.md b/specs/backgroundinfo/redis_basic_client.md similarity index 100% rename from herodb/specs/backgroundinfo/redis_basic_client.md rename to specs/backgroundinfo/redis_basic_client.md diff --git a/herodb/specs/backgroundinfo/redis_basics.md b/specs/backgroundinfo/redis_basics.md similarity index 100% rename from herodb/specs/backgroundinfo/redis_basics.md rename to specs/backgroundinfo/redis_basics.md diff --git a/herodb/specs/backgroundinfo/redis_hset_functions.md b/specs/backgroundinfo/redis_hset_functions.md similarity index 100% rename from herodb/specs/backgroundinfo/redis_hset_functions.md rename to specs/backgroundinfo/redis_hset_functions.md diff --git a/herodb/specs/backgroundinfo/redis_lists.md b/specs/backgroundinfo/redis_lists.md similarity index 100% rename from herodb/specs/backgroundinfo/redis_lists.md rename to specs/backgroundinfo/redis_lists.md diff --git a/herodb/specs/backgroundinfo/sled.md b/specs/backgroundinfo/sled.md similarity index 100% rename from herodb/specs/backgroundinfo/sled.md rename to specs/backgroundinfo/sled.md diff --git a/herodb/specs/backgroundinfo/tantivy.md b/specs/backgroundinfo/tantivy.md similarity index 100% rename from herodb/specs/backgroundinfo/tantivy.md rename to specs/backgroundinfo/tantivy.md diff --git a/herodb/specs/lance_implementation.md b/specs/lance_implementation.md similarity index 100% rename from herodb/specs/lance_implementation.md rename to specs/lance_implementation.md diff --git a/herodb/src/age.rs b/src/age.rs similarity index 100% rename from herodb/src/age.rs rename to src/age.rs diff --git a/herodb/src/cmd.rs b/src/cmd.rs similarity index 100% rename from herodb/src/cmd.rs rename to src/cmd.rs diff --git a/herodb/src/crypto.rs b/src/crypto.rs similarity index 100% rename from herodb/src/crypto.rs rename to src/crypto.rs diff --git a/herodb/src/error.rs b/src/error.rs similarity index 100% rename from herodb/src/error.rs rename to src/error.rs diff --git a/herodb/src/lib.rs b/src/lib.rs similarity index 100% rename from herodb/src/lib.rs rename to src/lib.rs diff --git a/herodb/src/main.rs b/src/main.rs similarity index 100% rename from herodb/src/main.rs rename to src/main.rs diff --git a/herodb/src/options.rs b/src/options.rs similarity index 100% rename from herodb/src/options.rs rename to src/options.rs diff --git a/herodb/src/protocol.rs b/src/protocol.rs similarity index 100% rename from herodb/src/protocol.rs rename to src/protocol.rs diff --git a/herodb/src/search_cmd.rs b/src/search_cmd.rs similarity index 100% rename from herodb/src/search_cmd.rs rename to src/search_cmd.rs diff --git a/herodb/src/server.rs b/src/server.rs similarity index 100% rename from herodb/src/server.rs rename to src/server.rs diff --git a/herodb/src/storage/mod.rs b/src/storage/mod.rs similarity index 100% rename from herodb/src/storage/mod.rs rename to src/storage/mod.rs diff --git a/herodb/src/storage/storage_basic.rs b/src/storage/storage_basic.rs similarity index 100% rename from herodb/src/storage/storage_basic.rs rename to src/storage/storage_basic.rs diff --git a/herodb/src/storage/storage_extra.rs b/src/storage/storage_extra.rs similarity index 100% rename from herodb/src/storage/storage_extra.rs rename to src/storage/storage_extra.rs diff --git a/herodb/src/storage/storage_hset.rs b/src/storage/storage_hset.rs similarity index 100% rename from herodb/src/storage/storage_hset.rs rename to src/storage/storage_hset.rs diff --git a/herodb/src/storage/storage_lists.rs b/src/storage/storage_lists.rs similarity index 100% rename from herodb/src/storage/storage_lists.rs rename to src/storage/storage_lists.rs diff --git a/herodb/src/storage_sled/mod.rs b/src/storage_sled/mod.rs similarity index 100% rename from herodb/src/storage_sled/mod.rs rename to src/storage_sled/mod.rs diff --git a/herodb/src/storage_trait.rs b/src/storage_trait.rs similarity index 100% rename from herodb/src/storage_trait.rs rename to src/storage_trait.rs diff --git a/herodb/src/tantivy_search.rs b/src/tantivy_search.rs similarity index 100% rename from herodb/src/tantivy_search.rs rename to src/tantivy_search.rs diff --git a/herodb/test_herodb.sh b/test_herodb.sh similarity index 100% rename from herodb/test_herodb.sh rename to test_herodb.sh diff --git a/herodb/tests/debug_hset.rs b/tests/debug_hset.rs similarity index 100% rename from herodb/tests/debug_hset.rs rename to tests/debug_hset.rs diff --git a/herodb/tests/debug_hset_simple.rs b/tests/debug_hset_simple.rs similarity index 100% rename from herodb/tests/debug_hset_simple.rs rename to tests/debug_hset_simple.rs diff --git a/herodb/tests/debug_protocol.rs b/tests/debug_protocol.rs similarity index 100% rename from herodb/tests/debug_protocol.rs rename to tests/debug_protocol.rs diff --git a/herodb/tests/redis_integration_tests.rs b/tests/redis_integration_tests.rs similarity index 100% rename from herodb/tests/redis_integration_tests.rs rename to tests/redis_integration_tests.rs diff --git a/herodb/tests/redis_tests.rs b/tests/redis_tests.rs similarity index 100% rename from herodb/tests/redis_tests.rs rename to tests/redis_tests.rs diff --git a/herodb/tests/simple_integration_test.rs b/tests/simple_integration_test.rs similarity index 100% rename from herodb/tests/simple_integration_test.rs rename to tests/simple_integration_test.rs diff --git a/herodb/tests/simple_redis_test.rs b/tests/simple_redis_test.rs similarity index 100% rename from herodb/tests/simple_redis_test.rs rename to tests/simple_redis_test.rs diff --git a/herodb/tests/usage_suite.rs b/tests/usage_suite.rs similarity index 100% rename from herodb/tests/usage_suite.rs rename to tests/usage_suite.rs