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

Prepare release candidate (#55)

This commit is contained in:
DQ 2023-04-19 21:48:09 +02:00 committed by GitHub
parent 64e94d7d30
commit 47179dab79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 466 additions and 369 deletions

View file

@ -16,3 +16,6 @@ proc-macro = true
proc-macro2 = "1.0.56"
quote = "1.0.26"
syn = { version = "2.0.14" }
[dev-dependencies]
cstree = { path = "../cstree" }

View file

@ -1,3 +1,18 @@
//! This crate provides `cstree`'s derive macro for `Syntax`.
//!
//! ```
//! # use cstree_derive::Syntax;
//! #
//! # #[derive(Debug, Copy, Clone, PartialEq, Eq)]
//! #[derive(Syntax)]
//! # #[repr(u32)]
//! # enum SyntaxKind { Root }
//! ```
//!
//! Please refer to [the `cstree` main crate] for how to set this up.
//!
//! [the `cstree` main crate]: https://docs.rs/cstree/
use errors::ErrorContext;
use parsing::SyntaxKindEnum;
use proc_macro2::TokenStream;