Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tested fix for renaming build outputs with .fap extension. #36

Closed
ASoldo opened this issue Jan 14, 2023 · 1 comment
Closed

Tested fix for renaming build outputs with .fap extension. #36

ASoldo opened this issue Jan 14, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ASoldo
Copy link

ASoldo commented Jan 14, 2023

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.

@dcoles
Copy link
Collaborator

dcoles commented Jan 14, 2023

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.

@dcoles dcoles self-assigned this Jan 14, 2023
@dcoles dcoles added the enhancement New feature or request label Jan 14, 2023
@dcoles dcoles closed this as completed in 2028353 Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants