2 releases
Uses new Rust 2024
| 0.1.1 | Jun 27, 2025 |
|---|---|
| 0.1.0 | Jun 27, 2025 |
#2359 in Procedural macros
32 downloads per month
4KB
Crate that export the Path type, necessary for the generated code by crate-paths-cli.
This type implements the ToTokens trait. so you can use it like this:
use std_crate_paths::sync::Arc;
let tokens = quote! {
let a = #Arc::new("b");
};
which will expand to:
let a = std::sync::Arc::new("b");
Optionally, exposes macros from crate-paths-macro
When the macro feature is enabled
[features]
default = []
macro = ["dep:crate-paths-macro"]
Dependencies
~275–800KB
~18K SLoC