Skip to content

Commit

Permalink
Update cargo-options to 0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 22, 2023
1 parent 79ced48 commit 25a1123
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 114 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
toolchain: [1.63.0, stable, nightly]
toolchain: [1.67.0, stable, nightly]
# Ideally we should also test against 0.9.0, but it is too unusable to test from CI
zig: [0.10.1, 0.11.0, master]
exclude:
# Only test MSRV with zig stable version
- toolchain: 1.63.0
- toolchain: 1.67.0
zig: master
env:
RUST_BACKTRACE: "1"
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
i686-pc-windows-gnu
- name: Test bindgen
# skip on MSRV
if: matrix.toolchain != '1.63.0'
if: matrix.toolchain != '1.67.0'
shell: bash
run: |
set -e
Expand All @@ -89,8 +89,6 @@ jobs:
cargo run zigbuild --target aarch64-apple-darwin
cargo run zigbuild --target aarch64-apple-darwin --release
- name: macOS - Test build universal2
# skip on 1.63.0 since it requires 1.64.0
if: matrix.toolchain != '1.63.0'
run: cargo run zigbuild --target universal2-apple-darwin
- name: macOS - Test build with SDKROOT
if: matrix.os == 'ubuntu-latest'
Expand All @@ -104,7 +102,7 @@ jobs:
cargo run zigbuild --target aarch64-apple-darwin --manifest-path tests/hello-tls/Cargo.toml
cargo run zigbuild --target aarch64-apple-darwin --manifest-path tests/hello-rustls/Cargo.toml
- name: macOS - Test build bindgen with SDKROOT
if: ${{ matrix.os == 'ubuntu-latest' && matrix.toolchain != '1.63.0' }}
if: ${{ matrix.os == 'ubuntu-latest' && matrix.toolchain != '1.67.0' }}
env:
SDK: MacOSX11.3.sdk
run: cargo run zigbuild --manifest-path tests/zstd-rs/Cargo.toml --features bindgen --target aarch64-apple-darwin
Expand Down
187 changes: 83 additions & 104 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ license = "MIT"
keywords = ["zig", "cargo"]
readme = "README.md"
repository = "https://github.com/rust-cross/cargo-zigbuild"
rust-version = "1.63"
rust-version = "1.67"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.53"
cargo-options = "0.6.0"
cargo-options = "0.7.1"
cargo_metadata = "0.18.0"
clap = { version = "4.0.0", features = ["derive", "env", "wrap_help"] }
clap = { version = "4.3.0", features = ["derive", "env", "wrap_help", "unstable-styles"] }
dirs = "5.0.0"
fat-macho = { version = "0.4.6", default-features = false, optional = true }
fs-err = "2.6.0"
Expand Down
7 changes: 6 additions & 1 deletion src/bin/cargo-zigbuild.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ use clap::Parser;

#[allow(clippy::large_enum_variant)]
#[derive(Debug, Parser)]
#[command(version, name = "cargo-zigbuild", display_order = 1)]
#[command(
version,
name = "cargo-zigbuild",
display_order = 1,
styles = cargo_options::styles(),
)]
pub enum Opt {
#[command(name = "zigbuild", aliases = &["build", "b"] )]
Build(Build),
Expand Down

0 comments on commit 25a1123

Please sign in to comment.