Tested fix for renaming build outputs with .fap extension.
ASoldo opened this issue · comments
HI, I've read on previous issue (#18 (comment)) about .fap files and location. I found a way to have build output renamed to .fap with Cargo.toml update.
Here is the original post about this topic --> rust-lang/cargo#1706 (comment)
Here is my Cargo.toml
cargo-features = ["different-binary-name"] # <-- this
[package]
name = "hello-rust"
version = "0.1.0"
edition = "2021"
rust-version = "1.64.0"
autobins = false
autoexamples = false
autotests = false
autobenches = false
[[bin]]
name = "hello-rust"
filename = "hello-rust.fap" # <-- this
bench = false
test = false
[dependencies]
flipperzero = { version = "0.6.0", path = "../../crates/flipperzero" }
flipperzero-sys = { version = "0.6.0", path = "../../crates/sys" }
flipperzero-rt = { version = "0.6.0", path = "../../crates/rt" }
And that is pretty much it, I have created a build and upload it to Flipper and works like a charm.
Maybe you could update all other examples to include this.
Very cool! That's a great find!
It seems like this is a nightly-only feature (different-binary-name
) but we already require nightly for alloc_error_handler
(flipperzero-alloc
).
I'll make this change shortly.