25 lines
500 B
Rust
25 lines
500 B
Rust
//! Entropyk WebAssembly bindings.
|
|
//!
|
|
//! This crate provides WebAssembly wrappers for the Entropyk thermodynamic
|
|
//! simulation library via wasm-bindgen.
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
pub mod backend;
|
|
pub mod components;
|
|
pub mod errors;
|
|
pub mod solver;
|
|
pub mod types;
|
|
|
|
/// Initialize the WASM module.
|
|
#[wasm_bindgen]
|
|
pub fn init() {
|
|
console_error_panic_hook::set_once();
|
|
}
|
|
|
|
/// Get the library version.
|
|
#[wasm_bindgen]
|
|
pub fn version() -> String {
|
|
env!("CARGO_PKG_VERSION").to_string()
|
|
}
|