mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-13 00:40:22 +00:00
206af35e2b
- major refactoring to the database APIs for safer parallel processing (#78, #82): - To set an input, you now write `db.query_mut(Query).set(...)`, and you must declare your database as `mut`. - To fork a thread, you now write `db.snapshot()`, which acquires a read-lock that is only released when the snapshot is dropped (note that this read-lock blocks `set` from occuring on the main thread). - Therefore, there can only be one mutable handle to the database; all other handles are snapshots. This eliminates a variety of complex and error-prone usage patterns. - introduced the `salsa_event` callback that can be used for logging and introspection (#63)
23 lines
523 B
TOML
23 lines
523 B
TOML
[package]
|
|
name = "salsa"
|
|
version = "0.8.0"
|
|
authors = ["Niko Matsakis <niko@alum.mit.edu>"]
|
|
edition = "2018"
|
|
license = "Apache-2.0 OR MIT"
|
|
repository = "https://github.com/salsa-rs/salsa"
|
|
description = "A generic framework for on-demand, incrementalized computation (experimental)"
|
|
readme = "README.md"
|
|
|
|
[dependencies]
|
|
derive-new = "0.5.5"
|
|
rustc-hash = "1.0"
|
|
parking_lot = "0.6.4"
|
|
lock_api = "0.1.4"
|
|
indexmap = "1.0.1"
|
|
log = "0.4.5"
|
|
smallvec = "0.6.5"
|
|
|
|
[dev-dependencies]
|
|
diff = "0.1.0"
|
|
env_logger = "0.5.13"
|
|
rand = "0.5.5"
|