it feels a bit weird to have to add #[main] fn main() {}. having something along the lines of #![rustest] (or #![cfg_attr(test, rustest)] for unit tests) might be cleaner to read (and maintain longer-term?).
though maybe #13 will come up with a way where this isn't needed at all in the code and can instead be controlled via Cargo.toml?
it feels a bit weird to have to add
#[main] fn main() {}. having something along the lines of#]for unit tests) might be cleaner to read (and maintain longer-term?).though maybe #13 will come up with a way where this isn't needed at all in the code and can instead be controlled via
Cargo.toml?