I’m writing a wee command-line application and using Cargo as a build tool. I put my argument parser (using clap) in another file, args.rs. I’d like to use the
crate_version! macro there, but
rustc tells me the macro is undefined there. But if I use the same macro from main.rs, it works fine.
Is there a way to use that macro from that file?