From 1f6f7b6c75a8c5876f922c9f43bea5e5bb0e7aac Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 16 Mar 2021 14:54:16 +0100 Subject: [PATCH] Create workspace at the top level --- Cargo.toml | 32 ++------------------ instant-distance/Cargo.toml | 32 ++++++++++++++++++++ {benches => instant-distance/benches}/all.rs | 0 {src => instant-distance/src}/lib.rs | 0 {src => instant-distance/src}/types.rs | 0 {tests => instant-distance/tests}/all.rs | 0 6 files changed, 34 insertions(+), 30 deletions(-) create mode 100644 instant-distance/Cargo.toml rename {benches => instant-distance/benches}/all.rs (100%) rename {src => instant-distance/src}/lib.rs (100%) rename {src => instant-distance/src}/types.rs (100%) rename {tests => instant-distance/tests}/all.rs (100%) 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