https://github.com/rust-lang/cargo/issues/8603 It happened only on macOS executor. It seems that file `target/debug/deps/libserde_derive-797b01cb80d42716.dylib` restored from cache is corrupted.