DEV Community

loading...

Discussion on: Calling Rust from C#

Collapse
eivbsmed profile image
Eivind Brandth Smedseng

Thanks, it worked. Had the solution of sending and revising a u8. But whit the byte at least i don't have to change anything on the rust side.

Some suggested to use types from libc like c_bool, but i need to get abit better at rust. Have just started out. I'll let you know if i find a good solution

Thread Thread
living_syn profile image
Jeremy Mill Author

I've been doing rust FFI at work for a few more months since I wrote this post. There's some things that I'll probably need to go back and update when I get the time. c_bool is a possible solution, there's also some shorthand in c# that may end up working, but I'll make sure to let you know if/when I get it working!

Thread Thread
eivbsmed profile image
Forem Open with the Forem app