3min chapter

 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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode