glow icon indicating copy to clipboard operation
glow copied to clipboard

Add `no_std` support

Open CrazyboyQCD opened this issue 10 months ago • 3 comments

Based on https://github.com/grovesNL/glow/pull/253.

CrazyboyQCD avatar Feb 19 '25 00:02 CrazyboyQCD

@CrazyboyQCD it looks like catch_unwind isn't needed anymore for this callback as of Rust 1.81, so we can remove it entirely (https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html#abort-on-uncaught-panics-in-extern-c-functions) and keep the code the same between std and no_std

grovesNL avatar Mar 07 '25 13:03 grovesNL

@grovesNL Some gl bindgens are needed to be changed after marking raw_debug_message_callback as C-unwind, dose that matter?

CrazyboyQCD avatar Mar 08 '25 05:03 CrazyboyQCD

@grovesNL As no_std support changes the gl46.rs, and it is generated from script, it will be better to update it in the future.

CrazyboyQCD avatar Jun 19 '25 02:06 CrazyboyQCD