rsciter 0.0.4

Unofficial Rust bindings for Sciter
Documentation

Description

Work in Progress License

This is unofficial Rust bindings for Sciter

Disclaimer

This is a work in progress library and is not yet ready for production use.

Differencies from rust-sciter

  • Never panics

  • Uses bindgen instead of hand-written code.

  • Utilizes Sciter's own functions for windows/application management.

  • The primary goal is not to provide a complete Sciter API, but to simplify the interaction between the backend (in Rust) and the frontend (Sciter.JS UI). For example, exporting functions is as easy as:

    #[rsciter::xmod] // mark the module, that's it!
    mod NativeModule {
        pub fn append_log(id: u64, message: &str) { ... }
        pub fn user_name() -> String { ... }
    }
    

    For details, see the ./crates/rsciter/examples/window_functions.rs sample.