mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
Make the project be a workspace
This commit is contained in:
parent
3476939b7e
commit
62a0aefe44
46
Cargo.toml
46
Cargo.toml
@ -1,41 +1,7 @@
|
|||||||
[package]
|
[workspace]
|
||||||
name = "new-meilidb"
|
members = [
|
||||||
version = "0.1.0"
|
"meilidb-core",
|
||||||
authors = ["Clément Renault <clement@meilisearch.com>"]
|
]
|
||||||
edition = "2018"
|
|
||||||
|
|
||||||
[dependencies]
|
[profile.release]
|
||||||
bincode = "1.1.4"
|
debug = true
|
||||||
byteorder = "1.3.2"
|
|
||||||
deunicode = "1.0.0"
|
|
||||||
hashbrown = { version = "0.6.0", features = ["serde"] }
|
|
||||||
once_cell = "1.2.0"
|
|
||||||
ordered-float = { version = "1.0.2", features = ["serde"] }
|
|
||||||
rkv = "0.10.2"
|
|
||||||
sdset = "0.3.2"
|
|
||||||
serde = { version = "1.0.99", features = ["derive"] }
|
|
||||||
serde_json = "1.0.40"
|
|
||||||
siphasher = "0.3.0"
|
|
||||||
slice-group-by = "0.2.6"
|
|
||||||
zerocopy = "0.2.8"
|
|
||||||
|
|
||||||
meilidb-schema = { path = "../MeiliDB/meilidb-schema", version = "0.1.0" }
|
|
||||||
meilidb-tokenizer = { path = "../MeiliDB/meilidb-tokenizer", version = "0.1.0" }
|
|
||||||
|
|
||||||
[dependencies.rmp-serde]
|
|
||||||
git = "https://github.com/3Hren/msgpack-rust.git"
|
|
||||||
rev = "40b3d48"
|
|
||||||
|
|
||||||
[dependencies.rmpv]
|
|
||||||
git = "https://github.com/3Hren/msgpack-rust.git"
|
|
||||||
rev = "40b3d48"
|
|
||||||
features = ["with-serde"]
|
|
||||||
|
|
||||||
[dependencies.levenshtein_automata]
|
|
||||||
git = "https://github.com/Kerollmops/levenshtein-automata.git"
|
|
||||||
branch = "arc-byte-slice"
|
|
||||||
features = ["fst_automaton"]
|
|
||||||
|
|
||||||
[dependencies.fst]
|
|
||||||
git = "https://github.com/Kerollmops/fst.git"
|
|
||||||
branch = "arc-byte-slice"
|
|
||||||
|
41
meilidb-core/Cargo.toml
Normal file
41
meilidb-core/Cargo.toml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
[package]
|
||||||
|
name = "meilidb-core"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Clément Renault <clement@meilisearch.com>"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
bincode = "1.1.4"
|
||||||
|
byteorder = "1.3.2"
|
||||||
|
deunicode = "1.0.0"
|
||||||
|
hashbrown = { version = "0.6.0", features = ["serde"] }
|
||||||
|
once_cell = "1.2.0"
|
||||||
|
ordered-float = { version = "1.0.2", features = ["serde"] }
|
||||||
|
rkv = "0.10.2"
|
||||||
|
sdset = "0.3.2"
|
||||||
|
serde = { version = "1.0.99", features = ["derive"] }
|
||||||
|
serde_json = "1.0.40"
|
||||||
|
siphasher = "0.3.0"
|
||||||
|
slice-group-by = "0.2.6"
|
||||||
|
zerocopy = "0.2.8"
|
||||||
|
|
||||||
|
meilidb-schema = { path = "../../MeiliDB/meilidb-schema", version = "0.1.0" }
|
||||||
|
meilidb-tokenizer = { path = "../../MeiliDB/meilidb-tokenizer", version = "0.1.0" }
|
||||||
|
|
||||||
|
[dependencies.rmp-serde]
|
||||||
|
git = "https://github.com/3Hren/msgpack-rust.git"
|
||||||
|
rev = "40b3d48"
|
||||||
|
|
||||||
|
[dependencies.rmpv]
|
||||||
|
git = "https://github.com/3Hren/msgpack-rust.git"
|
||||||
|
rev = "40b3d48"
|
||||||
|
features = ["with-serde"]
|
||||||
|
|
||||||
|
[dependencies.levenshtein_automata]
|
||||||
|
git = "https://github.com/Kerollmops/levenshtein-automata.git"
|
||||||
|
branch = "arc-byte-slice"
|
||||||
|
features = ["fst_automaton"]
|
||||||
|
|
||||||
|
[dependencies.fst]
|
||||||
|
git = "https://github.com/Kerollmops/fst.git"
|
||||||
|
branch = "arc-byte-slice"
|
@ -2,8 +2,8 @@ use rkv::{Manager, Rkv, SingleStore, Value, StoreOptions};
|
|||||||
use std::{fs, path::Path};
|
use std::{fs, path::Path};
|
||||||
|
|
||||||
use meilidb_schema::SchemaAttr;
|
use meilidb_schema::SchemaAttr;
|
||||||
use new_meilidb::{store, QueryBuilder, DocumentId};
|
use meilidb_core::{store, QueryBuilder, DocumentId};
|
||||||
use new_meilidb::raw_indexer::{RawIndexer, Indexed};
|
use meilidb_core::raw_indexer::{RawIndexer, Indexed};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let path = Path::new("test.rkv");
|
let path = Path::new("test.rkv");
|
Loading…
x
Reference in New Issue
Block a user