Does this generate safe c#? #71
-
Does this generate unsafe c# or safe c# code? |
Beta Was this translation helpful? Give feedback.
Answered by
FractalFir
Sep 25, 2025
Replies: 1 comment 1 reply
-
No. The generated C# is unsafe, and uses pointers under the hood. The optimization pipeline removes some of the unsafely, but, for performance reasons, the code is fundamentally unsafe. In principle, Rust could be compiled to safe C#, but this is not something I am working on. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FractalFir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. The generated C# is unsafe, and uses pointers under the hood.
The optimization pipeline removes some of the unsafely, but, for performance reasons, the code is fundamentally unsafe.
In principle, Rust could be compiled to safe C#, but this is not something I am working on.