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:
parent
64e94d7d30
commit
47179dab79
7 changed files with 466 additions and 369 deletions
|
@ -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" }
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue