It appears that rustc/cargo can't find, resolve file dependencie properly. This has been reported upstream but they can't reproduce this issue https://github.com/rust-cli/anstyle/issues/110 . Reproducible: Always Steps to Reproduce: 1.git clone https://github.com/rust-cli/anstyle 2.pushd anstyle 3.cargo test Actual Results: . . . running 3 tests test state::definitions::tests::pack_state_action ... ok test state::definitions::tests::unpack_state_action ... ok test state::codegen::table ... FAILED failures: ---- state::codegen::table stdout ---- thread 'state::codegen::table' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', crates/anstyle-parse/src/state/codegen.rs:11:54 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: state::codegen::table test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Expected Results: All tests are built and passes Result are the same regardless if the tests are started via the top level workspace or directly in the anstyle-parse crate.
As I replied upstream, I think you just need to "dnf install rustfmt".