sdsforge 0.5.0

CLI and desktop app for generating, converting, validating, and rendering chemical safety data sheets in MHLW/JIS Z 7253 structured formats.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() -> anyhow::Result<()> {
    // Best-effort: load ANTHROPIC_API_KEY/etc. from a .env file in the current or
    // an ancestor directory into the process environment, if one exists. Silently
    // does nothing when absent -- this is local-dev convenience, not a requirement.
    dotenvy::dotenv().ok();

    sdsforge::init_process();

    if std::env::args().len() > 1 {
        tokio::runtime::Builder::new_multi_thread()
            .enable_all()
            .build()?
            .block_on(sdsforge::run_cli_from(std::env::args_os()))
    } else {
        sdsforge::run_gui()
    }
}