diff --git a/Cargo.toml b/Cargo.toml index 430ab82..c309130 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,33 +1,5 @@ -[package] -name = "instant-distance" -version = "0.2.0" -license = "MIT OR Apache-2.0" -authors = ["Dirkjan Ochtman "] -edition = "2018" -description = "Fast minimal implementation of HNSW maps for approximate nearest neighbors searches" -homepage = "https://github.com/InstantDomainSearch/instant-distance" -repository = "https://github.com/InstantDomainSearch/instant-distance" -documentation = "https://docs.rs/instant-distance" - -[features] -with-serde = ["serde", "serde-big-array"] - -[dependencies] -indicatif = { version = "0.15", optional = true } -num_cpus = "1.13" -ordered-float = "2.0" -parking_lot = "0.11" -rand = { version = "0.8", features = ["small_rng"] } -rayon = "1.5" -serde = { version = "1.0.118", features = ["derive"], optional = true } -serde-big-array = { version = "0.3.1", optional = true } - -[dev-dependencies] -bencher = "0.1.5" - -[[bench]] -name = "all" -harness = false +[workspace] +members = ["instant-distance"] [profile.bench] debug = true diff --git a/instant-distance/Cargo.toml b/instant-distance/Cargo.toml new file mode 100644 index 0000000..0720ac0 --- /dev/null +++ b/instant-distance/Cargo.toml @@ -0,0 +1,32 @@ +[package] +name = "instant-distance" +version = "0.2.0" +license = "MIT OR Apache-2.0" +authors = ["Dirkjan Ochtman "] +edition = "2018" +description = "Fast minimal implementation of HNSW maps for approximate nearest neighbors searches" +homepage = "https://github.com/InstantDomainSearch/instant-distance" +repository = "https://github.com/InstantDomainSearch/instant-distance" +documentation = "https://docs.rs/instant-distance" +workspace = ".." +readme = "../README.md" + +[features] +with-serde = ["serde", "serde-big-array"] + +[dependencies] +indicatif = { version = "0.15", optional = true } +num_cpus = "1.13" +ordered-float = "2.0" +parking_lot = "0.11" +rand = { version = "0.8", features = ["small_rng"] } +rayon = "1.5" +serde = { version = "1.0.118", features = ["derive"], optional = true } +serde-big-array = { version = "0.3.1", optional = true } + +[dev-dependencies] +bencher = "0.1.5" + +[[bench]] +name = "all" +harness = false diff --git a/benches/all.rs b/instant-distance/benches/all.rs similarity index 100% rename from benches/all.rs rename to instant-distance/benches/all.rs diff --git a/src/lib.rs b/instant-distance/src/lib.rs similarity index 100% rename from src/lib.rs rename to instant-distance/src/lib.rs diff --git a/src/types.rs b/instant-distance/src/types.rs similarity index 100% rename from src/types.rs rename to instant-distance/src/types.rs diff --git a/tests/all.rs b/instant-distance/tests/all.rs similarity index 100% rename from tests/all.rs rename to instant-distance/tests/all.rs