Open
Description
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 Tracking Issue for -Z codegen-backend rust-lang/rust#77933
- Blocked on stabilisation of
Compiler & Library Support
- Debug builds
- 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.