Skip to content

Commit

Permalink
Remove direct dependency on aws-lc-rs and install bindgen instead
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofl committed Dec 23, 2024
1 parent 3018dc0 commit dba2df4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ name = "quick-serve"
path = "src/main_cli.rs"

[dependencies]
# For cross-compiling for windows
aws-lc-rs = { version = "1.12.0", features = ["bindgen"] }

# TODO: Put only the used features
tokio = { version = "1.42.0", features = ["full"]}
async-trait = "0.1.83"
Expand Down
16 changes: 16 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
[build]
xargo = false # enable the use of xargo by default
zig = false # enable the use of xargo by default
default-target = "x86_64-unknown-linux-gnu" # use this target if none is explicitly provided
pre-build = [ # additional commands to run prior to building the package
"apt-get update && apt-get --assume-yes install nasm build-essential clang wget tftp-hpa curl"
]

[target.arm-unknown-linux-gnueabihf]
pre-build = [
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable",
". $HOME/.cargo/env",
"cargo install --force --locked bindgen-cli && mv $HOME/.cargo/bin/bindgen /usr/bin",
]

[target.armv7-unknown-linux-gnueabihf]
pre-build = [
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable",
". $HOME/.cargo/env",
"cargo install --force --locked bindgen-cli && mv $HOME/.cargo/bin/bindgen /usr/bin",
]

0 comments on commit dba2df4

Please sign in to comment.