chore: enable libcurl by default

This commit is contained in:
iff 2024-12-08 19:21:40 +01:00
parent ae8951c935
commit d76d683fd7
2 changed files with 3 additions and 2 deletions

View file

@ -68,14 +68,14 @@ jobs:
- name: build - name: build
if: ${{ matrix.cross != true}} if: ${{ matrix.cross != true}}
run: run:
cargo build --release --all-features --locked --target ${{ matrix.target }} cargo build --release --locked --target ${{ matrix.target }}
- name: build (cross) - name: build (cross)
if: ${{ matrix.cross == true}} if: ${{ matrix.cross == true}}
# cross 0.2.5 broken for android # cross 0.2.5 broken for android
run: | run: |
cargo install cross --locked --git https://github.com/cross-rs/cross --rev 99b8069c0d977a14cd421ad8a3ef3255dc5802be cargo install cross --locked --git https://github.com/cross-rs/cross --rev 99b8069c0d977a14cd421ad8a3ef3255dc5802be
cross build --release --locked --target ${{ matrix.target }} cross build --release --no-default-features --locked --target ${{ matrix.target }}
- name: package deb - name: package deb
if: ${{ matrix.deb == true }} if: ${{ matrix.deb == true }}

View file

@ -21,6 +21,7 @@ textwrap = { version = "0.16", features = ["terminal_size"] }
curl = { version = "0.4", optional = true } curl = { version = "0.4", optional = true }
[features] [features]
default = ["libcurl"]
# linking to libcurl dynamically requires openssl when compiling and # linking to libcurl dynamically requires openssl when compiling and
# complicates cross compilation # complicates cross compilation
libcurl = ["dep:curl"] libcurl = ["dep:curl"]