[target.apex_p] runner = "speculos -m apex_p" [build] target = "apex_p" [profile.release] opt-level = 'z' lto = true # Uncomment the line below to generate a map file # rustflags = ["-Clink-args=-Map=app.map"] [unstable] build-std = ["core", "alloc"] build-std-features = ["compiler-builtins-mem"] # Authorized values are [2048, 4096, 8192, 16384, 24576]. The default of 8192 # is not enough headroom: a full review screen (MAX_OUTPUTS outputs, each with # an address, an amount and up to three covenant rows) allocates two Strings and # a Field per row on top of the accumulated session state, and the two peak at # the same moment. See the session ceilings in `handlers::sign_tx`. [env] HEAP_SIZE = "16384" # Native (no-Docker) build wiring. # - Set LEDGER_SDK_PATH in your shell to point at a clone of # LedgerHQ/ledger-secure-sdk at the API_LEVEL matching your device firmware # (Stax SE 1.9.1 → API_LEVEL_25). `scripts/build` defaults it to # $HOME/.ledger-sdk/secure-sdk-25. # - The ARM toolchain (arm-none-eabi-gcc) must also be on PATH; the brew cask # installs it to /Applications/ArmGNUToolchain//arm-none-eabi/bin # and does NOT add it to PATH: either prepend it in your shell rc or use # `scripts/build`, which wires both env vars automatically.