According to the Cargo docs (https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-replace-section), the replace section is deprecated in favor of the patches section. This also fixes errors like the following due to mismatched (not-updated) versions in the root Cargo.toml:
error: failed to get `thrussh-libsodium` as a dependency of package `thrussh-keys v0.18.0 (/home/vin/workspace/pijul/thrussh/thrussh-keys)`
Caused by:
no matching package for override `https://github.com/rust-lang/crates.io-index#thrussh-libsodium:0.2.0` found
location searched: /home/vin/workspace/pijul/thrussh/thrussh-libsodium
version required: =0.2.0
According to the Cargo docs (https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-replace-section), the replace section is deprecated in favor of the patches section. This also fixes errors like the following due to mismatched (not-updated) versions in the root Cargo.toml: