# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "scirs2-wasm"
version = "0.4.0"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebAssembly (WASM) bindings for SciRS2 - JavaScript/TypeScript interop for scientific computing"
readme = "README.md"
keywords = [
    "scientific",
    "wasm",
    "webassembly",
    "javascript",
    "typescript",
]
categories = [
    "science",
    "mathematics",
    "wasm",
    "web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/scirs"

[package.metadata.wasm-pack]
profile-release = "production"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
default-target = "wasm32-unknown-unknown"

[features]
all-modules = [
    "linalg",
    "stats",
    "fft",
    "signal",
    "integrate",
    "optimize",
    "interpolate",
]
default = ["console_error_panic_hook"]
fft = []
integrate = []
interpolate = []
linalg = []
optimize = []
signal = []
simd = ["scirs2-core/simd"]
stats = []

[lib]
name = "scirs2_wasm"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[test]]
name = "wasm_tests"
path = "tests/wasm_tests.rs"

[dependencies.console_error_panic_hook]
version = "0.1.7"
optional = true

[dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]

[dependencies.getrandom_v2]
version = "0.2"
features = ["js"]
default-features = false
package = "getrandom"

[dependencies.getrandom_v3]
version = "0.3"
features = ["wasm_js"]
default-features = false
package = "getrandom"

[dependencies.js-sys]
version = "0.3"

[dependencies.ndarray]
version = "0.17.2"
features = [
    "std",
    "serde",
    "rayon",
    "approx",
    "std",
    "serde",
]
default-features = false

[dependencies.num-complex]
version = "0.4.6"
features = ["libm"]
default-features = false

[dependencies.num-traits]
version = "0.2.19"
features = ["libm"]
default-features = false

[dependencies.scirs2-core]
version = "0.4.0"
features = [
    "array",
    "random",
    "serialization",
]
default-features = false

[dependencies.scirs2-fft]
version = "0.4.0"
features = ["oxifft"]
default-features = false

[dependencies.scirs2-integrate]
version = "0.4.0"
default-features = false

[dependencies.scirs2-interpolate]
version = "0.4.0"
default-features = false

[dependencies.scirs2-linalg]
version = "0.4.0"
default-features = false

[dependencies.scirs2-optimize]
version = "0.4.0"
default-features = false

[dependencies.scirs2-signal]
version = "0.4.0"
default-features = false

[dependencies.scirs2-stats]
version = "0.4.0"
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.uuid]
version = "1.22.0"
features = [
    "v4",
    "js",
]

[dependencies.wasm-bindgen]
version = "0.2"
features = ["serde-serialize"]

[dependencies.wasm-bindgen-futures]
version = "0.4"

[dependencies.web-sys]
version = "0.3"
features = [
    "console",
    "console",
    "Window",
    "Document",
    "Performance",
    "PerformanceTiming",
    "Navigator",
    "WorkerGlobalScope",
    "DedicatedWorkerGlobalScope",
]

[dev-dependencies.approx]
version = "0.5.1"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"
