[package]
authors = ["Dilshod Tadjibaev (@antimora)"]
edition.workspace = true
license = "MIT OR Apache-2.0"
name = "image-classification-web"
publish = false
version.workspace = true

[lints]
workspace = true

[lib]
crate-type = ["cdylib"]

[features]
default = []

[dependencies]
burn = { path = "../../crates/burn", version = "=0.21.0", default-features = false, features = [
    "ndarray", "webgpu",
] }
burn-candle = { path = "../../crates/burn-candle", version = "=0.21.0", default-features = false }
burn-store = { path = "../../crates/burn-store", version = "=0.21.0", default-features = false, features = ["burnpack"] }

log = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
console_error_panic_hook = { workspace = true }

# Wasm dependencies
wasm-bindgen = "0.2.100"
wasm-bindgen-futures = "0.4"
serde-wasm-bindgen = "0.6"
wasm-logger = "0.2"
web-time = "1.1.0"
js-sys = "0.3"
# https://github.com/rust-random/getrandom/#webassembly-support
getrandom = { version = "0.3.3", default-features = false, features = [
    "wasm_js",
] }

[build-dependencies]
# Used to generate code from ONNX model
burn-onnx = { path = "../../crates/burn-onnx", default-features = false }
