Rustacean Station  cover image

Refactoring to Rust with Lily Mara

Rustacean Station

CHAPTER

How to Make the Interface Between Rust and Your Host Language Easy

The smaller you can make the interface between Rust and your host language, the easier everything is going to be for you. So if you can find ways to minimize your API surface, you're going to have a better time. Yeah, I know there's ways that you can kind of own data. And also sometimes I'm thinking about, hmm, should I pass a pointer and then get the string slice and then maybe make a copy of it with an actual string and then work with that way?So I have a copy or should I just start editing things across? I guess it depends on your use case and your restrictions and what kind of dangers you want to take.Yeah, so

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner