rust-block
rust-block copied to clipboard
Rust interface for Apple's C language extension of blocks.
This PR allows using rust-block lib to target [tier 3 *-apple builds](https://doc.rust-lang.org/nightly/rustc/platform-support/apple-tvos.html): - Apple tvOS on aarch64 - Apple tvOS Simulator on x86_64
Switches block descriptors to `const` globals, so we don't have to heap allocate a new one for each block Also deduplicates copy functions (since they're all the same) and completely...
Based on https://github.com/rust-lang/rust/pull/121419