Registry / utility / syntex-syntax

syntex-syntax

JSON →
library0.59.1rscratesunverified

Backport of libsyntax for use with syntex, providing Rust syntax parsing capabilities.

# Cargo.toml [dependencies] syntex_syntax = "0.59.1"
INSTALL
IMPORT
SIG · SYNTEX-SYNTAX
S
syntex-syntax
utilityrustv0.59.1
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_crate_from_file
✓ use syntex_syntax::parse::parse_crate_from_file;

Parse a Rust source file into a syntax crate.

use syntex_syntax::parse::parse_crate_from_file; use syntex_syntax::codemap::CodeMap; fn main() { let codemap = CodeMap::new(); let krate = parse_crate_from_file("src/lib.rs", &[], &codemap).unwrap(); println!("Parsed crate: {:?}", krate); }
Debug
Known issues
gotchaThis crate is a backport and may not be actively maintained; consider using syn or proc_macro2 for modern parsing.
fix
Migrate to syn and proc_macro2 for better compatibility with current Rust editions.
affects: >=0.59.0
Upgrade
Version history
0.59.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
syntex-syntax — cargo add syntex-syntax · libregistry