aws-lc-sys build failed. Please enable the 'bindgen' feature on aws-lc-rs or aws-lc-sys
danausx opened this issue · 1 comments
danausx commented
Problem:
I am attempting to build for other targets and getting;
error: failed to run custom build command for `aws-lc-sys v0.13.3`
Caused by:
process didn't exit successfully: `... target/debug/build/aws-lc-sys-c4d96c61b4c2dabf/build-script-main` (exit status: 101)
--- stdout
cargo:rustc-cfg=use_bindgen_generated
--- stderr
thread 'main' panicked at ... .cargo/registry/src/index.crates.io-6f17d22bba15001f/aws-lc-sys-0.13.3/builder/main.rs:286:5:
aws-lc-sys build failed. Please enable the 'bindgen' feature on aws-lc-rs or aws-lc-sys
I'm using:
[dependencies]
s2n-quic = { version = "1.33.0", default-features = false, features = ["provider-address-token-default", "provider-tls-rustls"] }
tokio = { version = "1.0", features = ["full"] }
libc = "0.2"
rcgen = "0.12.1"
bytes = "1.5.0"
reqwest = {version = "0.11", features = ["json"]}
swift-bridge = {version = "0.1.52", features = ["async"]}
[lib]
crate-type = ["staticlib"]
name = "quic_network_lib"
[build-dependencies]
swift-bridge-build = {version = "0.1.52"}
On an x86_64 macOS.
How to interpret this? I am unsure on how to proceed.
camshaft commented
This is an AWS-LC limitation. If you're doing cross-compilation, you'll need to take a dependency in your application and enable the bindgen feature: https://aws.github.io/aws-lc-rs/platform_support.html