Skip to content

Commit

Permalink
add default tls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed Jan 18, 2025
1 parent 325abba commit 8fc7b6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 67 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/truss-transfer-build-maturin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels (non-aarch64)
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: truss-transfer
Expand Down
59 changes: 0 additions & 59 deletions truss-transfer/Cargo.lock

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

12 changes: 5 additions & 7 deletions truss-transfer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,17 @@ pyo3 = { version = "0.23.4", features = ["extension-module", "abi3-py38"] }
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
tokio = { version = "1.24", features = ["rt-multi-thread", "macros", "fs"] }
# Avoid openssl, to improve portability
# openssl = { version = "0.10", features = ["vendored"] }

# Default for non-aarch64 targets
# Default reqwest dependency with rustls for portability
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "stream", "rustls-tls"] }

[target.'cfg(target_arch = "aarch64")'.dependencies]
# https://github.com/briansmith/ring/issues/1789
reqwest = { version = "0.12", features = ["blocking", "json", "stream"] }
# Use OpenSSL for all ARM-based architectures
[target.'cfg(any(target_arch = "aarch64", target_arch = "arm"))'.dependencies]
reqwest = { version = "0.12", default-features = false, features = ["blocking", "json", "stream", "default-tls"] }
openssl = { version = "0.10", features = ["vendored"] }

[features]
cli = [] # For the CLI
cli = [] # For the CLI

[[bin]]
name = "truss_transfer_cli"
Expand Down

0 comments on commit 8fc7b6b

Please sign in to comment.