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

Prepare release candidate for publishing (#57)

This commit is contained in:
DQ 2023-04-25 20:30:18 +02:00 committed by GitHub
parent f3ad677de8
commit 39c8cd125e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 15 deletions

View file

@ -12,7 +12,6 @@ authors = [
"Domenic Quirl <DomenicQuirl@pm.me>", "Domenic Quirl <DomenicQuirl@pm.me>",
"Aleksey Kladov <aleksey.kladov@gmail.com>", "Aleksey Kladov <aleksey.kladov@gmail.com>",
] ]
description = "Library for generic lossless syntax trees"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
repository = "https://github.com/domenicquirl/cstree" repository = "https://github.com/domenicquirl/cstree"
readme = "README.md" readme = "README.md"

View file

@ -1,5 +1,7 @@
[package] [package]
name = "cstree_derive" name = "cstree_derive"
description = "Macro implementation of `#[derive(Syntax)]`"
keywords = ["cstree", "derive"]
edition.workspace = true edition.workspace = true
version.workspace = true version.workspace = true
authors.workspace = true authors.workspace = true

View file

@ -1,5 +1,8 @@
[package] [package]
name = "cstree" name = "cstree"
description = "Library for generic lossless syntax trees"
categories = ["parsing", "data-structures"]
keywords = ["cstree", "parser", "parsing", "cst"]
edition.workspace = true edition.workspace = true
version.workspace = true version.workspace = true
authors.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 optional = true
[dependencies.lasso] [dependencies.lasso]
version = "0.6" version = "0.7"
features = ["inline-more"] features = ["inline-more"]
optional = true optional = true
[dependencies.salsa] # [dependencies.salsa]
git = "https://github.com/salsa-rs/salsa/" # git = "https://github.com/salsa-rs/salsa/"
version = "0.1" # version = "0.1"
optional = true # optional = true
package = "salsa-2022" # package = "salsa-2022"
[dependencies.serde] [dependencies.serde]
version = "1.0" version = "1.0"
@ -69,7 +72,15 @@ multi_threaded_interning = ["lasso_compat", "lasso/multi-threaded"]
# Interoperability with the `salsa` framework for incremental computation. # Interoperability with the `salsa` framework for incremental computation.
# Use this feature for "Salsa 2022". # Use this feature for "Salsa 2022".
# WARNING: This feature is considered unstable! # 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]] [[example]]
name = "salsa" name = "salsa"

View file

@ -53,12 +53,12 @@
//! implementation to make `lasso`'s interners work with `cstree` (as well as a re-export of the matching version of //! 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 //! `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`]. //! transparently, so you'll now be returned a `lasso` interner from [`new_interner`].
//! //
//! ### `salsa` // ### `salsa`
//! If you are using the "2022" version of the `salsa` incremental query framework, it is possible to use its interning // 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 // 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 // `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]. // [the `salsa_compat` module documentation].
#![cfg_attr( #![cfg_attr(
feature = "multi_threaded_interning", feature = "multi_threaded_interning",
doc = r###" doc = r###"
@ -104,7 +104,7 @@ of the `GreenNodeBuilder` appropriately.
//! [`NodeCache::into_interner`]: crate::build::NodeCache::into_interner //! [`NodeCache::into_interner`]: crate::build::NodeCache::into_interner
//! [`SyntaxNode::new_root_with_resolver`]: crate::syntax::SyntaxNode::new_root_with_resolver //! [`SyntaxNode::new_root_with_resolver`]: crate::syntax::SyntaxNode::new_root_with_resolver
//! [`lasso`]: lasso //! [`lasso`]: lasso
//! [the `salsa_compat` module documentation]: salsa_compat // [the `salsa_compat` module documentation]: salsa_compat
mod traits; mod traits;
pub use self::traits::*; pub use self::traits::*;