These are chat archives for rust-lang/rust

22nd
Dec 2018
David O'Connor
@David-OConnor
Dec 22 2018 02:33
Clone it. fname: self.fname.clone()
Michal 'vorner' Vaner
@vorner
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
@vorner
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?
Zakarum
@omni-viral
Dec 22 2018 11:46
@vorner check if some well-known crates with derive macro uses it
Michal 'vorner' Vaner
@vorner
Dec 22 2018 15:58
Found it. But it seems not to be production ready :-( https://crates.io/crates/reflect
At least a good thing to look into
Sean Perry
@shaleh
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.