I am new to rust and cargo, and I am trying to do something very simple!
I have something like this (in build.rs):
use std::process::Command;
fn main() {
Command::new("echo 123");
}
And I want to see the output of the command echo 123
. I want 123
to get printed to the build output (this is mostly to debug what I am doing) and wont be part of the final project.
I have tried cargo build --verbose
- this does not work.
I can't extrapolate an answer from there posts (and some others like it):
I feel this must be simple to do - but I have been stuck for hours looking on the web and not finding the answer.
> test.out
- and notest.out
file was generated. I also tried with state and output... any clues? – Cuneate