| Crates.io | alias_macros |
| lib.rs | alias_macros |
| version | 0.1.1 |
| created_at | 2025-07-21 17:49:36.302314+00 |
| updated_at | 2025-07-21 18:02:40.689537+00 |
| description | A alias macro for Rust - create alias for everything...! |
| homepage | https://github.com/shubhiscoding/alias_macros |
| repository | https://github.com/shubhiscoding/alias_macros |
| max_upload_size | |
| id | 1762355 |
| size | 5,413 |
This directory contains the procedural macro implementation for the alias_macros crate.
alias_macros is a Rust procedural macro crate that allows you to create custom aliases for types, keywords, and complex syntax patterns. Create TypeScript-like interfaces, alias primitive types with descriptive names, or build domain-specific syntax - all with zero runtime cost!
📚 For complete usage examples, features, and documentation, see the main README.
src/lib.rs - Contains the define! procedural macro implementationCargo.toml - Crate configuration with proc-macro dependenciesThe define! macro:
alias = replacementmacro_rules! macro with the alias name() - Expands to just the replacement($($tokens:tt)*) - Expands to replacement followed by the tokenssyn - For parsing Rust syntaxquote - For generating Rust codeproc_macro2 - For token stream manipulationcargo build
This crate is used as a dependency by the main project and provides the define! macro functionality.