rustdoc-json 0.9.9

Utilities for working with rustdoc JSON.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! The cargo test framework can't capture stderr from child processes. This
//! little program enables us to test if stderr can be suppressed with
//! `silent(true)`.

fn main() {
    rustdoc_json::Builder::default()
        .manifest_path("invalid/because/we/want/it/to/fail/Cargo.toml")
        .silent(std::env::args().nth(1) == Some("--silent".to_owned()))
        .build()
        .unwrap();
}