paupino / rust-decimal

Decimal number implementation written in pure Rust suitable for financial and fixed-precision calculations.
https://docs.rs/rust_decimal/
MIT License
980 stars 179 forks source link

Feature Request: Support wasm_bindgen for Decimal #613

Open ChristianIvicevic opened 11 months ago

ChristianIvicevic commented 11 months ago

I am using rust_decimal for precise calculations but unfortunately the following isn't supported

#[wasm_bindgen]
pub struct Precise {
    pub value: Decimal,
}

Therefore I want to request support for wasm_bindgen out of the box because support can't be implemented for foreign types.