mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 03:00:03 +00:00
feat: Verify cksum of crate tarball from cargo registry (#1260)
Fixed #1183 Since the crate tarball could be downloaded from a different set of servers than where the cargo registry is hosted, verifying the checksum is necessary to verify its integrity. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
1c886d8897
commit
3e80b12748
10 changed files with 112 additions and 45 deletions
|
@ -8,8 +8,8 @@ pub mod signal;
|
|||
pub(crate) mod target_triple;
|
||||
pub mod tasks;
|
||||
|
||||
pub(crate) use binstalk_downloader::download;
|
||||
pub use binstalk_downloader::gh_api_client;
|
||||
pub(crate) use binstalk_downloader::{bytes, download};
|
||||
|
||||
pub(crate) fn is_universal_macos(target: &str) -> bool {
|
||||
["universal-apple-darwin", "universal2-apple-darwin"].contains(&target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue