Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust-nostd-avr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN cargo --version
RUN rustup show

# Install extra crates
RUN cargo install cargo-audit cargo-generate
RUN cargo install cargo-audit@0.17.6 cargo-generate

# Generate project templates
RUN cargo generate -a Rahix/avr-hal-template --name rust-project-uno --vcs none --silent -d board="Arduino Uno"
Expand Down
2 changes: 1 addition & 1 deletion rust-nostd-avr/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ fi

cargo audit
cargo build --release --out-dir output -Z unstable-options
avr-objcopy -R .eeprom -O ihex ./target/${MCU}/release/${PROJECT_NAME}.elf ${HOME}/build-out/project.hex
avr-objcopy -R .eeprom -O ihex ./target/${MCU}/release/${PROJECT_NAME}.elf ${HOME}/build-out/project.hex
cp ./target/${MCU}/release/${PROJECT_NAME}.elf ${HOME}/build-out/project.elf
4 changes: 2 additions & 2 deletions rust-nostd-esp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM espressif/idf-rust:all_1.72.0.0
FROM espressif/idf-rust:all_1.73.0.0

USER esp
ENV USER=esp

# Install extra crates
RUN cargo install cargo-audit && \
RUN cargo install cargo-audit@0.17.6 && \
GENERATE_VERSION=$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1) && \
curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" && \
tar xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin && \
Expand Down
4 changes: 2 additions & 2 deletions rust-std-esp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM espressif/idf-rust:all_1.72.0.0
FROM espressif/idf-rust:all_1.73.0.0

USER esp
ENV USER=esp

# Install extra crates
RUN cargo install cargo-audit && \
RUN cargo install cargo-audit@0.17.6 && \
GENERATE_VERSION=$(git ls-remote --refs --sort="version:refname" --tags "https://github.com/cargo-generate/cargo-generate" | cut -d/ -f3- | tail -n1) && \
curl -L "https://github.com/cargo-generate/cargo-generate/releases/latest/download/cargo-generate-${GENERATE_VERSION}-x86_64-unknown-linux-gnu.tar.gz" -o "${HOME}/.cargo/bin/cargo-generate.tar.gz" && \
tar xf "${HOME}/.cargo/bin/cargo-generate.tar.gz" -C ${HOME}/.cargo/bin && \
Expand Down