shs 0.4.2

Easy-to-use non-async HTTP server
Documentation
1
2
3
4
5
6
7
8
9
10
/// Test that the contents of the example in the README.md match
/// examples/hello.rs.
#[test]
fn check_readme_example() {
    let readme = include_str!("../README.md");
    let example = include_str!("../examples/hello.rs");

    let code = format!("```rust\n{}```", example);
    assert!(readme.contains(&code));
}