Petr Portnov | PROgrm_JARvis

Results 89 comments of Petr Portnov | PROgrm_JARvis

Apologies for the late reply, I've lost the track of the message in the thread. I will soon coma back to it and see what should be changed.

@ASoldo the purpose of `furi_check` is to assert some invariant. This is mostly used as a fail-safe mechanism in Flipperzero Firmware. For example, it is much better to just instantly...

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

@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 I put this together as an initial context-less (for simplicity) approach (as part of trying to get the NFC bindings working), then saw that the view dispatcher (my...

> Build is failing. Yup, I am going to fix that, but now that cstr-literals are [stabilized][cstr-literal-stabilization] in 1.76, I may rework this PR to omit the redundant dependency. [cstr-literal-stabilization]:...

> [!IMPORTANT] > > Since this PR effectively depends on #120, Clippy should be fixed by the latter.

By the way, while the API is in its early stage, I would like to hear general thoughts from you if I am working in the right direction.

> One issue I did run into in the past was how to implement GUI callbacks. As for now, I think about one way to implement this: theoretically, we could...

`&dyn Fn(&Canvas)` may be stored in some wrapper struct so that we would have to only have the word-sized pointer to the structure. Something similar to: ```rust struct CallbackWrapper {...