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