Registry / other / ra-ap-rustc-lexer

ra-ap-rustc-lexer

JSON →
library0.168.0rscratesunverified

Automatically published version of the rustc_lexer from the rust-lang/rust repository.

# Cargo.toml [dependencies] ra-ap-rustc_lexer = "0.168.0"
INSTALL
IMPORT
SIG · RA-AP-RUSTC-LEXER
R
ra-ap-rustc-lexer
otherrustv0.168.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.

Token
use ra_ap_rustc_lexer::Token;

Tokenize a Rust source string.

use ra_ap_rustc_lexer::Token; fn main() { let tokens = ra_ap_rustc_lexer::tokenize("fn main() {}"); for token in tokens { println!("{:?}", token); } }
Debug
Known issues
gotchaThis crate is auto-published from the Rust compiler repository and may not follow semver strictly.
fix
Pin to a specific version and test thoroughly before upgrading.
affects: >=0.0.0
Upgrade
Version history
0.168.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
ra-ap-rustc-lexer — cargo add ra-ap-rustc-lexer · libregistry