Registry / other / syn-derive

syn-derive

JSON →
library0.2.0rscratesunverified

Derive macros for `syn::Parse` and `quote::ToTokens` to simplify procedural macro development.

# Cargo.toml [dependencies] syn_derive = "0.2.0"
INSTALL
IMPORT
SIG · SYN-DERIVE
S
syn-derive
otherrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parse
use syn_derive::{Parse, ToTokens};

Derive syn::Parse and quote::ToTokens for custom AST nodes.

use syn_derive::{Parse, ToTokens}; use syn::parse_quote; #[derive(Parse, ToTokens)] struct MyStruct { ident: syn::Ident, } let my: MyStruct = parse_quote!(my_ident);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources