Skip to content

Commit

Permalink
set a global Cargo config file in the Docker full image
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Oct 25, 2023
1 parent 18aeb18 commit 6432f1b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
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
10 changes: 10 additions & 0 deletions full/cargo_global_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[unstable]
build-std = ["core"]
build-std-features = ["compiler-builtins-mem"]
# 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"]

0 comments on commit 6432f1b

Please sign in to comment.