mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-09 05:20:03 +00:00
Remove support for .crates2.json (#235)
This commit is contained in:
parent
009a3a6778
commit
e93f0beb4b
5 changed files with 0 additions and 143 deletions
15
src/main.rs
15
src/main.rs
|
@ -349,21 +349,6 @@ async fn entry(jobserver_client: LazyJobserverClient) -> Result<()> {
|
|||
.iter()
|
||||
.map(|metadata| (&metadata.cvs, metadata.bins.clone())),
|
||||
)?;
|
||||
|
||||
debug!("Writing .crates2.json");
|
||||
metafiles::v2::Crates2Json::append(metadata_vec.into_iter().map(|metadata| {
|
||||
(
|
||||
metadata.cvs,
|
||||
metafiles::v2::CrateInfo {
|
||||
version_req: Some(metadata.version_req),
|
||||
bins: metadata.bins,
|
||||
profile: "release".into(),
|
||||
target: metadata.target,
|
||||
rustc: format!("{} {}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")),
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
}))?;
|
||||
}
|
||||
|
||||
if opts.no_cleanup {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue