mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-11 14:30:03 +00:00
Merge pull request #247 from NobodyXu/add-more-features
Add more features
This commit is contained in:
commit
e86239f9be
4 changed files with 55 additions and 4 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -36,7 +36,7 @@ jobs:
|
|||
- target: x86_64-pc-windows-msvc
|
||||
os: windows-latest
|
||||
debug_build_args: --no-default-features --features native-tls
|
||||
release_build_args: --no-default-features --features static,zlib-ng,native-tls
|
||||
release_build_args: --no-default-features --features static,zlib-ng,native-tls,fancy-no-backtrace
|
||||
- target: x86_64-unknown-linux-musl
|
||||
os: ubuntu-latest
|
||||
- target: armv7-unknown-linux-musleabihf
|
||||
|
|
46
Cargo.lock
generated
46
Cargo.lock
generated
|
@ -2,6 +2,15 @@
|
|||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "addr2line"
|
||||
version = "0.17.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b"
|
||||
dependencies = [
|
||||
"gimli",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "adler"
|
||||
version = "1.0.2"
|
||||
|
@ -45,6 +54,21 @@ version = "1.1.0"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
||||
|
||||
[[package]]
|
||||
name = "backtrace"
|
||||
version = "0.3.66"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7"
|
||||
dependencies = [
|
||||
"addr2line",
|
||||
"cc",
|
||||
"cfg-if",
|
||||
"libc",
|
||||
"miniz_oxide",
|
||||
"object",
|
||||
"rustc-demangle",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "base64"
|
||||
version = "0.13.0"
|
||||
|
@ -541,6 +565,12 @@ dependencies = [
|
|||
"wasi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "gimli"
|
||||
version = "0.26.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d"
|
||||
|
||||
[[package]]
|
||||
name = "guess_host_triple"
|
||||
version = "0.1.3"
|
||||
|
@ -849,6 +879,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "89d67f6972a70e33dbb5551875c6a3e46ae0a7cddd4661a2811ee48be51054e9"
|
||||
dependencies = [
|
||||
"atty",
|
||||
"backtrace",
|
||||
"miette-derive",
|
||||
"once_cell",
|
||||
"owo-colors",
|
||||
|
@ -964,6 +995,15 @@ dependencies = [
|
|||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "object"
|
||||
version = "0.29.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53"
|
||||
dependencies = [
|
||||
"memchr",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.13.0"
|
||||
|
@ -1197,6 +1237,12 @@ dependencies = [
|
|||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustc-demangle"
|
||||
version = "0.1.21"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342"
|
||||
|
||||
[[package]]
|
||||
name = "rustc_version"
|
||||
version = "0.4.0"
|
||||
|
|
|
@ -32,7 +32,7 @@ futures-util = { version = "0.3.21", default-features = false }
|
|||
home = "0.5.3"
|
||||
jobserver = "0.1.24"
|
||||
log = "0.4.17"
|
||||
miette = { version = "5.1.1", features = ["fancy-no-backtrace"] }
|
||||
miette = "5.1.1"
|
||||
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 }
|
||||
|
@ -68,7 +68,7 @@ zstd = { version = "0.10.0", default-features = false }
|
|||
guess_host_triple = "0.1.3"
|
||||
|
||||
[features]
|
||||
default = ["static", "zlib-ng", "rustls"]
|
||||
default = ["static", "zlib-ng", "rustls", "fancy-no-backtrace"]
|
||||
|
||||
mimalloc = ["dep:mimalloc"]
|
||||
|
||||
|
@ -80,6 +80,11 @@ 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"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ if $for_release then {
|
|||
} else {
|
||||
output: "debug",
|
||||
profile: "dev",
|
||||
args: ($matrix.debug_build_args // "--no-default-features --features rustls"),
|
||||
args: ($matrix.debug_build_args // "--no-default-features --features rustls,fancy-with-backtrace"),
|
||||
} end
|
||||
|
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue