diff --git a/Cargo.toml b/Cargo.toml index ab26909..55a7214 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,6 @@ authors = [ "Domenic Quirl ", "Aleksey Kladov ", ] -description = "Library for generic lossless syntax trees" license = "MIT OR Apache-2.0" repository = "https://github.com/domenicquirl/cstree" readme = "README.md" diff --git a/cstree-derive/Cargo.toml b/cstree-derive/Cargo.toml index 67f094d..25238a2 100644 --- a/cstree-derive/Cargo.toml +++ b/cstree-derive/Cargo.toml @@ -1,5 +1,7 @@ [package] name = "cstree_derive" +description = "Macro implementation of `#[derive(Syntax)]`" +keywords = ["cstree", "derive"] edition.workspace = true version.workspace = true authors.workspace = true diff --git a/cstree/Cargo.toml b/cstree/Cargo.toml index 106c8fc..158a323 100644 --- a/cstree/Cargo.toml +++ b/cstree/Cargo.toml @@ -1,5 +1,8 @@ [package] name = "cstree" +description = "Library for generic lossless syntax trees" +categories = ["parsing", "data-structures"] +keywords = ["cstree", "parser", "parsing", "cst"] edition.workspace = true version.workspace = true authors.workspace = true @@ -26,15 +29,15 @@ version = "0.12.0-rc.0" # must match the `cstree` version in the virtual w optional = true [dependencies.lasso] -version = "0.6" +version = "0.7" features = ["inline-more"] optional = true -[dependencies.salsa] -git = "https://github.com/salsa-rs/salsa/" -version = "0.1" -optional = true -package = "salsa-2022" +# [dependencies.salsa] +# git = "https://github.com/salsa-rs/salsa/" +# version = "0.1" +# optional = true +# package = "salsa-2022" [dependencies.serde] version = "1.0" @@ -69,7 +72,15 @@ 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"] +# salsa_2022_compat = ["salsa"] + +[[example]] +name = "math" +required-features = ["derive"] + +[[example]] +name = "s_expressions" +required-features = ["derive"] [[example]] name = "salsa" diff --git a/cstree/src/interning.rs b/cstree/src/interning.rs index a38e055..96d4fc1 100644 --- a/cstree/src/interning.rs +++ b/cstree/src/interning.rs @@ -53,12 +53,12 @@ //! implementation to make `lasso`'s interners work with `cstree` (as well as a re-export of the matching version of //! `lasso` here). If enabled, `cstree`'s built-in interning functionality is replaced with `lasso`'s more efficient one //! transparently, so you'll now be returned a `lasso` interner from [`new_interner`]. -//! -//! ### `salsa` -//! If you are using the "2022" version of the `salsa` incremental query framework, it is possible to use its interning -//! capabilities with `cstree` as well. Support for this is experimental, and you have to opt in via the -//! `salsa_2022_compat` feature. For instructions on how to do this, and whether you actually want to, please refer to -//! [the `salsa_compat` module documentation]. +// +// ### `salsa` +// If you are using the "2022" version of the `salsa` incremental query framework, it is possible to use its interning +// capabilities with `cstree` as well. Support for this is experimental, and you have to opt in via the +// `salsa_2022_compat` feature. For instructions on how to do this, and whether you actually want to, please refer to +// [the `salsa_compat` module documentation]. #![cfg_attr( feature = "multi_threaded_interning", doc = r###" @@ -104,7 +104,7 @@ of the `GreenNodeBuilder` appropriately. //! [`NodeCache::into_interner`]: crate::build::NodeCache::into_interner //! [`SyntaxNode::new_root_with_resolver`]: crate::syntax::SyntaxNode::new_root_with_resolver //! [`lasso`]: lasso -//! [the `salsa_compat` module documentation]: salsa_compat +// [the `salsa_compat` module documentation]: salsa_compat mod traits; pub use self::traits::*;