I was going through the build script documentation and was wondering if I can pass any argument to the script in build.rs
from the command line.
fn main() {
let args: Vec<String> = env::args().collect();
let var = &args[1];
}
Would something like this work in the build script? And how could I specify the arguments from command line?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…