//! Entropyk WebAssembly bindings.
//!
//! This crate provides WebAssembly wrappers for the Entropyk thermodynamic
//! simulation library via wasm-bindgen.

// Pre-existing lint debt: wasm-bindgen exposes camelCase JS names.
#![allow(non_snake_case)]
#![allow(clippy::too_many_arguments)]

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()
}
