| Crates.io | ptx-90-parser-span-derive |
| lib.rs | ptx-90-parser-span-derive |
| version | 0.1.0 |
| created_at | 2025-11-20 00:22:27.899337+00 |
| updated_at | 2025-11-20 00:22:27.899337+00 |
| description | Derive the Spanned helper trait used throughout ptx-90-parser AST types. |
| homepage | https://github.com/jialunzhang-psu/ptx-90-parser |
| repository | https://github.com/jialunzhang-psu/ptx-90-parser |
| max_upload_size | |
| id | 1940987 |
| size | 7,343 |
ptx-90-parser-span-derive (imported as ptx_90_parser_span_derive) is a small proc-macro crate that powers the ptx-90-parser project.
It generates Spanned trait implementations for structs and enums whose fields include a span value and mirrors the helper methods that the parser expects.
use ptx_90_parser_span_derive::Spanned;
#[derive(Spanned)]
pub struct Operand {
pub value: String,
pub span: Span,
}