1
Fork 0
mirror of https://github.com/RGBCube/cstree synced 2025-07-29 18:17:44 +00:00

Set up a module structure (#44)

This commit is contained in:
DQ 2023-04-07 18:06:51 +02:00 committed by GitHub
parent baa0a9f2f0
commit 16f7a3bd80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 2291 additions and 454 deletions

View file

@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "cstree"
version = "0.11.1"
version = "0.12.0-rc.0" # when updating, also update `#![doc(html_root_url)]`
authors = [
"Domenic Quirl <DomenicQuirl@pm.me>",
"Aleksey Kladov <aleksey.kladov@gmail.com>",
@ -15,7 +15,6 @@ readme = "README.md"
debug = true
[dependencies]
lasso = { version = "0.6", features = ["inline-more", "multi-threaded"] }
text-size = "1.1.0"
fxhash = "0.2.1"
parking_lot = "0.11.2"
@ -24,6 +23,20 @@ parking_lot = "0.11.2"
triomphe = "0.1.7"
sptr = "0.3.2"
# Default Interner
indexmap = "1.9"
[dependencies.lasso]
version = "0.6"
features = ["inline-more"]
optional = true
[dependencies.salsa]
git = "https://github.com/salsa-rs/salsa/"
version = "0.1"
optional = true
package = "salsa-2022"
[dependencies.serde]
version = "1.0"
optional = true
@ -42,8 +55,25 @@ name = "main"
harness = false
[features]
default = []
serialize = ["serde", "lasso/serialize"]
default = []
# Implementations of `serde::{De,}Serialize` for CSTrees.
serialize = ["serde", "lasso?/serialize"]
# Interoperability with the `lasso` interning crate.
# When enabled, `cstree`'s default interners will use `lasso` internally, too.
lasso_compat = ["lasso"]
# Additionally provide threadsafe interner types.
# Where applicable (and if the corresponding features are selected), provide compatibility
# implementations for multi-thread interners from other crates.
multi_threaded_interning = ["lasso_compat", "lasso/multi-threaded"]
# Interoperability with the `salsa` framework for incremental computation.
# Use this feature for "Salsa 2022".
# WARNING: This feature is considered unstable!
salsa_2022_compat = ["salsa"]
[[example]]
name = "salsa"
required-features = ["salsa_2022_compat"]
[package.metadata.docs.rs]
features = ["serialize"]
all-features = true
rustdoc-args = ["--cfg", "doc_cfg"]