Rust Language Support
Author: XAMPPRockyCreated Oct 21, 2020Updated Nov 13, 2024
Labelst: tracking issue
This is a tracking issue for adding support for using Rust language features and the core library with rustc_codegen_spirv.
Language Support
- Closures
- Enums
- Data-less enums.
enum Foo { A, B } - Algebraic data types.
enum Option<T> { Some(T), None }
- Data-less enums.
- Loops
-
loop -
while -
for
-
-
if -
match - Proc macros
- Try (
?) operator - 128 bit integers
-
union - Compiles on stable
- Blocked on stabilisation of
-Z codegen-backend, also see https://github.com/rust-lang/rust/issues/77933
- Blocked on stabilisation of
Compiler & Library Support
- Debug builds
- Blocked on #81, #186
- Iterators
-
Option<T>
Features that don't work
- Dynamic Dispatch
- Pointer casts
- Unsized slices (
&[T])
About Tracking Issues
Tracking issues are meant for providing status updates on the progress of a feature, it's not meant for bug reports or discussions on a feature. Please instead file a new issue or join the #rust-gpu channel on Discord.
Source: EmbarkStudios/rust-gpu