AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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