Skip to content

Commit

Permalink
Install rust before bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Aug 26, 2024
1 parent ebbfc27 commit 704c6a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/Cross.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[build]
pre-build = [
"cargo install --force --locked bindgen-cli",
"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",
"rm -rf $HOME/.cargo"
]

[build.env]
Expand Down

0 comments on commit 704c6a8

Please sign in to comment.