mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
Tidy up features
This commit is contained in:
parent
dd3b8e852f
commit
be199d07a6
4
.github/workflows/build-and-test.yml
vendored
4
.github/workflows/build-and-test.yml
vendored
@ -61,7 +61,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install cross (non-x86_64 linux)
|
||||
if: "matrix.target != 'x86_64-unknown-linux-gnu' && runner.os == 'Linux'"
|
||||
if: matrix.target != 'x86_64-unknown-linux-gnu' && runner.os == 'Linux'
|
||||
run: |
|
||||
pushd "$(mktemp -d)"
|
||||
wget https://github.com/cross-rs/cross/releases/download/v0.2.4/cross-x86_64-unknown-linux-musl.tar.gz
|
||||
@ -73,7 +73,7 @@ jobs:
|
||||
- name: Set up extra cargo flags
|
||||
if: matrix.no-zstd-thin
|
||||
run: |
|
||||
echo "EXTRA_CARGO_FLAGS=--no-default-features --features flate2/zlib,zip/deflate-zlib" >> $GITHUB_ENV
|
||||
echo "EXTRA_CARGO_FLAGS=--no-default-features --features use_zlib" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
|
@ -54,7 +54,9 @@ rand = { version = "0.8.5", default-features = false, features = ["small_rng", "
|
||||
test-strategy = "0.3.1"
|
||||
|
||||
[features]
|
||||
default = ["flate2/zlib", "gzp/deflate_zlib", "zip/deflate-zlib", "zstd/thin"]
|
||||
default = ["use_zlib", "use_zstd_thin"]
|
||||
use_zlib = ["flate2/zlib", "gzp/deflate_zlib", "zip/deflate-zlib"]
|
||||
use_zstd_thin = ["zstd/thin"]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user