When building with cargo build --example whatever, cargo places the resulting binary into target/release/examples/whatever. The find command's argument, maxdepth is set at 1, which excluded the examples directory. Changing this to 2 lets find look into the example directory.
When building with
cargo build --example whatever
, cargo places the resulting binary intotarget/release/examples/whatever
. Thefind
command's argument, maxdepth is set at 1, which excluded the examples directory. Changing this to 2 letsfind
look into theexample
directory.