streamlit 0.1.2

Streamlit - A faster way to build and share data apps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::io::Result;

fn main() -> Result<()> {
    let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();

    // With the streamlit symlink in place, proto files are always at streamlit/proto/*.proto
    // protoc will automatically handle the imports
    prost_build::Config::new()
        .default_package_filename("proto")
        .compile_protos(
            &[
                "streamlit/proto/ForwardMsg.proto",
                "streamlit/proto/BackMsg.proto",
            ],
            &[&manifest_dir],
        )?;
    Ok(())
}