superdoc-sdk 0.1.0-next.beta.1

Typed Rust client for the SuperDoc document runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{io::Read, path::PathBuf};
#[tokio::main(flavor = "current_thread")]
async fn main() {
    let mut input = String::new();
    std::io::stdin().read_to_string(&mut input).unwrap();
    let cases: Vec<serde_json::Value> = serde_json::from_str(&input).unwrap();
    let host = PathBuf::from(
        std::env::args_os()
            .nth(1)
            .expect("shared host fixture path"),
    );
    println!("{}", superdoc_sdk::conformance::run(&cases, &host).await);
}