≈ the.bay.news

Notes from decoding and writing .fig design files in Rust

The Rust Programming Language Forum
Notes from decoding and writing .fig design files in Rust
I've been writing a native interface design tool in Rust, and the part that taught me the most was the file format, so I wanted to share a few notes in case they help anyone parsing a binary format they don't control. A .fig file is usually a ZIP holding canvas.fig, meta.json and an images/ folder. Some files skip the ZIP. canvas.fig starts with the bytes fig-kiwi and a little-endian u32 version (I write 106), followed by compressed chunks: first a Kiwi schema, then a message encoded with that ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.