These are chat archives for rust-lang/rust

Dec 2018
David O'Connor
Dec 22 2018 02:33
Clone it. fname: self.fname.clone()
Michal 'vorner' Vaner
Dec 22 2018 09:11
What is the proper 2018 way of writing a procedural macro crate? It seems to insist on extern crate proc_macro (as it is compiler-provided crate, not a dependency) and doesn't seem to work with use proc_macro :-(
Michal 'vorner' Vaner
Dec 22 2018 09:48
Some time ago I've seen a crate to help writing procedural derives correctly ‒ handling all the things like extracting generics, lifetimes, etc, etc. But I can't find it now :-(. Does anyone remember the name?
Dec 22 2018 11:46
@vorner check if some well-known crates with derive macro uses it
Michal 'vorner' Vaner
Dec 22 2018 15:58
Found it. But it seems not to be production ready :-(
At least a good thing to look into
Sean Perry
Dec 22 2018 22:05
Is there a tool to read in a crate's imports? I want to order them by frequency. Like, out of these X .rs files this is the list of imports sorted most imported to least.