@@ -5,6 +5,7 @@ Lightweight and clean alternative to serde, focusing on writing to and from `Vec
```rs
#[derive(Io)]
struct Thingy {
+ #[io(len(u16))]
name: String,
kind: ThingyKind,
#[io(ignore)]
@@ -14,7 +15,7 @@ struct Thingy {
enum ThingyKind {
Normal,
- Special(String)
+ Special(#[io(len(u8))] String)
}
let thingy = Thingy {