Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set a global Cargo config file in the Docker full image #92

Merged
merged 3 commits into from
Oct 27, 2023
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.9.0] - 2023-10-25

### Added
- Add a Cargo config global file in full image

## [3.8.0] - 2023-10-09

### Added
Expand Down
3 changes: 3 additions & 0 deletions full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ RUN cargo +$RUST_STABLE_VERSION install --locked --git=https://github.com/Ledger

# Setup cargo ledger (install JSON target files)
RUN cargo ledger setup

# Add a global Cargo config file (includes mandatory unstable features used to build our apps)
ADD ./full/cargo_global_config.toml $CARGO_HOME/config.toml
8 changes: 8 additions & 0 deletions full/cargo_global_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[unstable]
yogh333 marked this conversation as resolved.
Show resolved Hide resolved
# Prevent bindgen tool to fail on Alpine (with '[host]' section)
# see https://ledger.slack.com/archives/C04SY25SREX/p1698055418107969
host-config = true
target-applies-to-host = true

[host]
rustflags = ["-Ctarget-feature=-crt-static"]