|
|
|
@ -665,7 +665,11 @@ def cargo_build():
|
|
|
|
|
profile = '--release'
|
|
|
|
|
else:
|
|
|
|
|
profile = ''
|
|
|
|
|
return f'cd embed/rust; cargo build {profile} --target={RUST_TARGET} --target-dir=../../build/firmware/rust'
|
|
|
|
|
features = []
|
|
|
|
|
if BITCOIN_ONLY == "1":
|
|
|
|
|
features.append("bitcoin_only")
|
|
|
|
|
|
|
|
|
|
return f'cd embed/rust; cargo build {profile} --target={RUST_TARGET} --target-dir=../../build/firmware/rust --features "{" ".join(features)}"'
|
|
|
|
|
|
|
|
|
|
rust = env.Command(
|
|
|
|
|
target=RUST_LIBPATH,
|
|
|
|
|