mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-22 21:05:11 +00:00
feat: Prune unnecessary dependencies
Only AtomicCell is used from crossbeam and SmallRng from rand so we can easily disable the default features
This commit is contained in:
parent
5078c9b22d
commit
380306930b
2 changed files with 5 additions and 4 deletions
|
@ -9,21 +9,22 @@ description = "A generic framework for on-demand, incrementalized computation (e
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crossbeam = "0.7.1"
|
crossbeam-utils = { version = "0.7.1", default-features = false }
|
||||||
indexmap = "1.0.1"
|
indexmap = "1.0.1"
|
||||||
lock_api = "0.4"
|
lock_api = "0.4"
|
||||||
log = "0.4.5"
|
log = "0.4.5"
|
||||||
parking_lot = "0.11.0"
|
parking_lot = "0.11.0"
|
||||||
rustc-hash = "1.0"
|
rustc-hash = "1.0"
|
||||||
smallvec = "1.0.0"
|
smallvec = "1.0.0"
|
||||||
rand = { version = "0.7", features = [ "small_rng" ] }
|
rand = { version = "0.7", features = [ "small_rng" ], default-features = false }
|
||||||
|
|
||||||
salsa-macros = { version = "0.14.1", path = "components/salsa-macros" }
|
salsa-macros = { version = "0.14.1", path = "components/salsa-macros" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand_distr = "0.2.1"
|
|
||||||
diff = "0.1.0"
|
diff = "0.1.0"
|
||||||
env_logger = "0.7"
|
env_logger = "0.7"
|
||||||
linked-hash-map = "0.5.2"
|
linked-hash-map = "0.5.2"
|
||||||
|
rand = "0.7"
|
||||||
|
rand_distr = "0.2.1"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
|
|
|
@ -8,7 +8,7 @@ use crate::plumbing::QueryStorageOps;
|
||||||
use crate::revision::Revision;
|
use crate::revision::Revision;
|
||||||
use crate::Query;
|
use crate::Query;
|
||||||
use crate::{CycleError, Database, DiscardIf, SweepStrategy};
|
use crate::{CycleError, Database, DiscardIf, SweepStrategy};
|
||||||
use crossbeam::atomic::AtomicCell;
|
use crossbeam_utils::atomic::AtomicCell;
|
||||||
use parking_lot::RwLock;
|
use parking_lot::RwLock;
|
||||||
use rustc_hash::FxHashMap;
|
use rustc_hash::FxHashMap;
|
||||||
use std::collections::hash_map::Entry;
|
use std::collections::hash_map::Entry;
|
||||||
|
|
Loading…
Reference in a new issue