Create workspace at the top level

This commit is contained in:
Dirkjan Ochtman 2021-03-16 14:54:16 +01:00
parent b787d09b9d
commit 1f6f7b6c75
6 changed files with 34 additions and 30 deletions

View File

@ -1,33 +1,5 @@
[package]
name = "instant-distance"
version = "0.2.0"
license = "MIT OR Apache-2.0"
authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"]
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

View File

@ -0,0 +1,32 @@
[package]
name = "instant-distance"
version = "0.2.0"
license = "MIT OR Apache-2.0"
authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"]
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