Registry / utility / cpp-syn

cpp-syn

JSON →
library0.12.0rscratesunverified

Internal rust-cpp nom parser for Rust source code.

# Cargo.toml [dependencies] cpp_syn = "0.12.0"
INSTALL
IMPORT
SIG · CPP-SYN
C
cpp-syn
utilityrustv0.12.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 cpp_syn::parse;

Parses a Rust source string into an AST using the cpp_syn parser.

use cpp_syn::parse; fn main() { let input = "fn main() {}"; match parse(input) { Ok(ast) => println!("Parsed: {:?}", ast), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cpp-syn — cargo add cpp-syn · libregistry