mirror of
https://github.com/rust-lang/cargo
synced 2024-09-13 21:11:44 +00:00
29a6f2fab2
Use thiserror for credential provider errors ### What does this PR try to resolve? Errors from credential providers currently must a single string. This leads to a lot of `.map_err(|e|cargo_credential::Error::Other(e.to_string())`, which loses the `source()` of these errors. This changes the `cargo_credential::Error` to use `thiserror` and adds a custom serialization for `std::error::Error` that preserves the source error chain across serialization / deserialization. A unit test is added to verify serialization / deserialization. |
||
---|---|---|
.. | ||
build-std | ||
testsuite |