mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Split crates and clean up structure of codebase (#294)
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
bf700f9012
commit
4b00f5f143
88 changed files with 2989 additions and 1423 deletions
104
Cargo.toml
104
Cargo.toml
|
@ -1,99 +1,11 @@
|
|||
[package]
|
||||
name = "cargo-binstall"
|
||||
description = "Rust binary package installer for CI integration"
|
||||
repository = "https://github.com/ryankurte/cargo-binstall"
|
||||
documentation = "https://docs.rs/cargo-binstall"
|
||||
version = "0.12.0"
|
||||
rust-version = "1.61.0"
|
||||
authors = ["ryan <ryan@kurte.nz>"]
|
||||
edition = "2021"
|
||||
license = "GPL-3.0"
|
||||
|
||||
[package.metadata.binstall]
|
||||
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.{ archive-format }"
|
||||
bin-dir = "{ bin }{ binary-ext }"
|
||||
|
||||
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
|
||||
pkg-fmt = "zip"
|
||||
[package.metadata.binstall.overrides.x86_64-apple-darwin]
|
||||
pkg-fmt = "zip"
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1.57"
|
||||
bytes = "1.2.1"
|
||||
bzip2 = "0.4.3"
|
||||
cargo_toml = "0.11.5"
|
||||
clap = { version = "3.2.16", features = ["derive"] }
|
||||
compact_str = { version = "0.5.2", features = ["serde"] }
|
||||
crates_io_api = { version = "0.8.0", default-features = false }
|
||||
dirs = "4.0.0"
|
||||
flate2 = { version = "1.0.24", default-features = false }
|
||||
fs4 = "0.6.2"
|
||||
futures-util = { version = "0.3.21", default-features = false }
|
||||
home = "0.5.3"
|
||||
itertools = "0.10.3"
|
||||
jobserver = "0.1.24"
|
||||
log = "0.4.17"
|
||||
miette = "5.2.0"
|
||||
mimalloc = { version = "0.1.29", default-features = false, optional = true }
|
||||
once_cell = "1.13.0"
|
||||
reqwest = { version = "0.11.11", features = ["stream"], default-features = false }
|
||||
scopeguard = "1.1.0"
|
||||
semver = { version = "1.0.13", features = ["serde"] }
|
||||
serde = { version = "1.0.142", features = ["derive"] }
|
||||
serde-tuple-vec-map = "1.0.1"
|
||||
serde_json = "1.0.83"
|
||||
simplelog = "0.12.0"
|
||||
strum = "0.24.1"
|
||||
strum_macros = "0.24.3"
|
||||
tar = "0.4.38"
|
||||
tempfile = "3.3.0"
|
||||
thiserror = "1.0.32"
|
||||
tinytemplate = "1.2.1"
|
||||
tokio = { version = "1.20.1", features = ["macros", "rt-multi-thread", "process", "sync", "signal"], default-features = false }
|
||||
toml_edit = { version = "0.14.4", features = ["easy"] }
|
||||
url = { version = "2.2.2", features = ["serde"] }
|
||||
xz2 = "0.1.7"
|
||||
|
||||
# Disable all features of zip except for features of compression algorithms:
|
||||
# Disabled features include:
|
||||
# - aes-crypto: Enables decryption of files which were encrypted with AES, absolutely zero use for
|
||||
# this crate.
|
||||
# - time: Enables features using the [time](https://github.com/time-rs/time) crate,
|
||||
# which is not used by this crate.
|
||||
zip = { version = "0.6.2", default-features = false, features = ["deflate", "bzip2", "zstd"] }
|
||||
|
||||
# zstd is also depended by zip.
|
||||
# Since zip 0.6.2 depends on zstd 0.10.0, we also have to use 0.10.0 here,
|
||||
# otherwise there will be a link conflict.
|
||||
zstd = { version = "0.10.0", default-features = false }
|
||||
|
||||
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
|
||||
guess_host_triple = "0.1.3"
|
||||
|
||||
[features]
|
||||
default = ["static", "zlib-ng", "rustls", "fancy-no-backtrace"]
|
||||
|
||||
mimalloc = ["dep:mimalloc"]
|
||||
|
||||
static = ["bzip2/static", "xz2/static"]
|
||||
pkg-config = ["zstd/pkg-config"]
|
||||
|
||||
zlib-ng = ["flate2/zlib-ng"]
|
||||
|
||||
rustls = ["crates_io_api/rustls", "reqwest/rustls-tls"]
|
||||
native-tls = ["reqwest/native-tls"]
|
||||
|
||||
fancy-no-backtrace = ["miette/fancy-no-backtrace"]
|
||||
fancy-with-backtrace = ["fancy-no-backtrace", "miette/fancy"]
|
||||
|
||||
log_release_max_level_info = ["log/release_max_level_info"]
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.9.0"
|
||||
|
||||
[build-dependencies]
|
||||
embed-resource = "1.7.3"
|
||||
[workspace]
|
||||
members = [
|
||||
"crates/bin",
|
||||
"crates/lib",
|
||||
"crates/detect-wasi",
|
||||
"crates/flock",
|
||||
"crates/normalize-path",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue