Skip to content

Commit

Permalink
Merge pull request #164 from LedgerHQ/y333/use_cstring
Browse files Browse the repository at this point in the history
Enable heap allocator in SDK and perform CString conversion for NBGL
  • Loading branch information
yogh333 authored Jun 21, 2024
2 parents 42036eb + 599146a commit c29f244
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 224 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ledger_device_sdk/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ runner = "speculos --model stax --display=headless"
runner = "speculos --model flex --display=headless"

[unstable]
build-std = ["core"]
build-std = ["core", "alloc"]
build-std-features = ["compiler-builtins-mem"]

[build]
target = "nanosplus"
target = "stax"
10 changes: 7 additions & 3 deletions ledger_device_sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ledger_device_sdk"
version = "1.10.3"
version = "1.10.4"
authors = ["yhql", "yogh333", "agrojean-ledger", "kingofpayne"]
edition = "2021"
license.workspace = true
Expand All @@ -15,15 +15,19 @@ ledger_device_sdk = { path = ".", features = ["speculos"] }
testmacro = { path = "../testmacro", version = "0.1.0"}

[dependencies]
ledger_secure_sdk_sys = {path = "../ledger_secure_sdk_sys", version = "1.4.1"}
include_gif = {path = "../include_gif", version = "1.1.0"}
num-traits = { version = "0.2.14", default_features = false }
rand_core = { version = "0.6.3", default_features = false }
zeroize = { version = "1.6.0", default_features = false }
numtoa = "0.2.4"
const-zero = "0.1.1"

[target.'cfg(target_os="nanos")'.dependencies]
ledger_secure_sdk_sys = {path = "../ledger_secure_sdk_sys", version = "1.4.1"}

[target.'cfg(not(target_os="nanos"))'.dependencies]
ledger_secure_sdk_sys = {path = "../ledger_secure_sdk_sys", version = "1.4.1", features = ["heap"]}

[features]
speculos = []
ccid = []
heap = ["ledger_secure_sdk_sys/heap"]
Loading

0 comments on commit c29f244

Please sign in to comment.