# iota-rs A rust macro for other Go refuges who miss const blocks and iota. Go: ``` const ( Sunday = iota Monday Tuesday Wednesday Thursday Friday Partyday numberOfDays // this constant is not exported ) ``` Rust: ``` #![feature(plugin)] #![plugin(iota)] consts!{ pub SUNDAY: i32 = iota!(); pub MONDAY; pub TUESDAY; pub WEDNESDAY; pub THURSDAY; pub FRIDAY; pub PARTYDAY; NUMBER_OF_DAYS; // this constant is not exported } ``` Like in Go, you can do multiple constants on a single line, and use underscore to skip values. Go: ``` const ( bit0, mask0 = 1 << iota, 1<