News for hackers. Stuff that matters.
Re:I'd like to review your README by Gadiguibou on Saturday April 17, 2021 @08:09AM (#26843669)
That's included in Rust![1]

Code examples from the documentation automatically become "documentation tests" to make sure your examples are still up to date when updating your code.

[1] https://doc.rust-lang.org/rustdoc/documentation-tests.html

Re:I'd like to review your README by Omin on Saturday April 17, 2021 @08:51AM (#26843858)
The README.md isn't part of the rust code, so it's not checked by this unless you use tools to generate your README from doc comments like https://github.com/livioribeiro/cargo-readme.
Re:I'd like to review your README by Rompect on Saturday April 17, 2021 @11:12AM (#26844815)
Actually, it's possible and even frequently used, for example in lazy-static, through the `doc_comment` crate.

    #[cfg(doctest)]
    #[macro_use]
    extern crate doc_comment;
    
    #[cfg(doctest)]
    doctest!("../README.md");
Now, the readme examples are tested like everything else.

https://github.com/rust-lang-nursery/lazy-static.rs/blob/mas...