Skip to content

Commit

Permalink
Vendor rust deps
Browse files Browse the repository at this point in the history
  • Loading branch information
NickeZ committed Oct 15, 2024
1 parent 695d3d2 commit e19083f
Show file tree
Hide file tree
Showing 1,632 changed files with 410,667 additions and 286 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ RUN --mount=source=.,target=/mnt \
for patch in `ls /mnt/da14531-sdk/patches`; do patch -p1 < /mnt/da14531-sdk/patches/$patch; done

# Install rust compiler
ARG BINDGEN_VERSION=0.70.1
ENV PATH=/opt/cargo/bin:$PATH RUSTUP_HOME=/opt/rustup
RUN --mount=source=rust-toolchain.toml,target=/mnt/rust-toolchain.toml \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --default-toolchain $(grep -oP '(?<=channel = ")[^"]+' /mnt/rust-toolchain.toml) -y && \
rustup target add thumbv6m-none-eabi && \
rustup component add \
rustfmt \
clippy \
rust-src
rust-src \
&& \
CARGO_HOME=/opt/cargo cargo install bindgen-cli --version ${BINDGEN_VERSION} --locked
6 changes: 6 additions & 0 deletions bitbox02-bt/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[build]
target = "thumbv6m-none-eabi"

[source.vendored-sources]
directory = "vendor"

[source.crates-io]
replace-with = "vendored-sources"

[patch.crates-io]
da14531-sdk-macros = {path="../da14531-sdk-macros"}

Expand Down
Loading

0 comments on commit e19083f

Please sign in to comment.