A Wired Life

Unleash Your Digital Potential with A Wired Life: Tech Insights & Tutorials

How to run Rust code from Swift

One of the big benefits of using a lower level language like Rust is that you can compile it into a C library. This allows you to call your code in almost every other language. Swift is one of those languages that can take advantage of this capability. Using the swift-bridge crate, we can have everything that we need generated for us. Final directory structure I find it very useful for me personally when people that write tutorials show you what the final result should be and so with this being my first blog post, here is the final directory structure of what the project will look like when we are done....

July 22, 2023 · 5 min · 887 words · Christopher Williams