Question about `bincode`: variable-length types?

⚓ Rust    📅 2025-06-02    👤 surdeus    👁️ 2      

surdeus

Warning

This post was published 70 days ago. The information described in this article may have changed.

If I use bincode's Encode and Decode traits on a struct, will I be able to put (for example) a String in it, and forget about the length? I'm making a network protocol, and it would be so nice if I didn't have to keep track of the length of that field manually.

2 posts - 2 participants

Read full topic

🏷️ rust_feed