Skip to main content

All Questions

0 votes
0 answers
37 views

How to specify crates to rustc in command-line? [duplicate]

I'm trying to use rand::random function in Rust: use rand::random; fn main(){ println!("{}",rand::random::<f64>()); } It didn't work, the rand crate was not installed by default. So I ...
Dan D's user avatar
  • 8,681
2 votes
3 answers
974 views

Is there a way to make clap treat -? the same way as -h?

The clap crate implements built-in behaviour for the -h option, but it doesn't seem to do the same for -?. Is there a way to tell it to do so?
Kağan Kayal's user avatar
  • 2,473