flipperzero icon indicating copy to clipboard operation
flipperzero copied to clipboard

Bump API Support

Open Coded-Alchemy opened this issue 1 year ago • 1 comments

this seems not to support the latest.

Coded-Alchemy avatar Apr 15 '24 13:04 Coded-Alchemy

The template needs updating as well, please and thank you.

Coded-Alchemy avatar Apr 15 '24 20:04 Coded-Alchemy

I've proposed a PR with the update to the bindings version.

JarvisCraft avatar May 01 '24 13:05 JarvisCraft

I've proposed a PR with the update to the bindings version.

First up, the efforts on this is greatly appreciated!

Unless Ive done something wrong, this is the error from the sync branch in the template repo that I get running cargo build: ```error[E0412]: cannot find type CStr in this scope --> src/main.rs:26:24 | 26 | fn main(_args: Option<&CStr>) -> i32 { | ^^^^ not found in this scope | help: consider importing this struct | 10 + use core::ffi::CStr; |

error[E0308]: mismatched types --> src/main.rs:23:1 | 23 | entry!(main); | ^^^^^^^^^^^^ | | | expected fn pointer, found fn item | expected due to this | = note: expected fn pointer fn(*mut u8) -> _ found fn item for<'a> fn(Option<&'a {type error}>) -> _ {main} = note: this error originates in the macro entry (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0308, E0412.```

Coded-Alchemy avatar May 01 '24 22:05 Coded-Alchemy

@Coded-Alchemy, looks like I haven't imported the CStr (my bad). You can just use it as Cargo suggests (I will further fix the template to include the import).

JarvisCraft avatar May 02 '24 07:05 JarvisCraft