Hey there,
first of all, I really appreciate you taking over maintaining paste(y). I use this crate all the time and the raw identifier feature has already saved me some headaches.
So now to my "issue". This is more of a feature request / recommendation. I am currently writing a pair of crates where I would be very useful to be able to get the crate name as variable. I know that it is possible to get that with env!("CARGO_CRATE_NAME"). However, I mostly need the name to generate doc strings like #[doc = "Some text: " env!("CARGO_CRATE_NAME") " ...", but using a macro there isn't possible.
So my idea would be to have the $crate variable expand to the crate name, so that I could replace the above macro with the variable and even have the modifier like :upper and such work on.
Hey there,
first of all, I really appreciate you taking over maintaining paste(y). I use this crate all the time and the raw identifier feature has already saved me some headaches.
So now to my "issue". This is more of a feature request / recommendation. I am currently writing a pair of crates where I would be very useful to be able to get the crate name as variable. I know that it is possible to get that with
env!("CARGO_CRATE_NAME"). However, I mostly need the name to generate doc strings like#[doc = "Some text: " env!("CARGO_CRATE_NAME") " ...", but using a macro there isn't possible.So my idea would be to have the
$cratevariable expand to the crate name, so that I could replace the above macro with the variable and even have the modifier like:upperand such work on.