diff --git a/crates/float-wasm/Cargo.toml b/crates/float-wasm/Cargo.toml new file mode 100644 index 0000000..0cd5dec --- /dev/null +++ b/crates/float-wasm/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "rain-math-float-wasm" +version = "0.1.0" +edition = "2021" +license = "LicenseRef-DCL-1.0" +homepage = "https://github.com/rainlanguage/rain.math.float" + +[lib] +crate-type = ["cdylib"] + +[dependencies] +rain-math-float = { path = "../float" } diff --git a/crates/float-wasm/src/lib.rs b/crates/float-wasm/src/lib.rs new file mode 100644 index 0000000..0b62700 --- /dev/null +++ b/crates/float-wasm/src/lib.rs @@ -0,0 +1,8 @@ +//! WASM cdylib wrapper for `rain-math-float`. +//! +//! This crate exists solely to produce the cdylib artifact for WASM targets. +//! The core library (`rain-math-float`) is rlib-only to avoid output filename +//! collisions that cause duplicate dependency compilation in downstream +//! consumers. + +pub use rain_math_float::*; diff --git a/crates/float/Cargo.toml b/crates/float/Cargo.toml index 8294076..02c178a 100644 --- a/crates/float/Cargo.toml +++ b/crates/float/Cargo.toml @@ -6,7 +6,7 @@ license = "LicenseRef-DCL-1.0" homepage = "https://github.com/rainlanguage/rain.math.float" [lib] -crate-type = ["rlib", "cdylib"] +crate-type = ["rlib"] [dependencies] alloy = { version = "1.0.9", features = ["sol-types", "json-rpc"] }