[package] authors = ["Silvia O'Dwyer "] categories = ["wasm", "multimedia"] description = "High-performance image processing library for native use and the web" license = "Apache-2.0" name = "photon-rs" readme = "./README.md" repository = "https://github.com/silvia-odwyer/photon" version = "0.3.2" edition = "2021" exclude = [ "pkg/*", "examples/input_images/*" ] homepage = "https://silvia-odwyer.github.io/photon/" [lib] crate-type = ["cdylib", "rlib"] [dependencies] image = { version = "0.23.12", default-features = false, features = ["gif", "jpeg", "ico", "png", "pnm", "tga", "tiff", "webp", "bmp", "hdr", "dxt", "dds", "farbfeld"] } palette="0.6.1" rand="0.7.2" imageproc = { version = "0.22.0", default-features = false } rusttype="0.9.2" base64="0.13.0" time="0.2.23" wasm-bindgen = "=0.2.78" serde = { version = "1.0", features = ["derive"] } thiserror = "1.0" js-sys = "0.3.45" node-sys = "0.4.2" perlin2d = "0.2.6" # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for # code size when deploying. console_error_panic_hook = { version = "0.1.5", optional = true } # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size # compared to the default allocator's ~10K. It is slower than the default # allocator, however. wee_alloc = { version = "0.4.2", optional = true } [dev-dependencies] time="0.2.1" criterion = "0.3" [[bench]] name = "photon_benchmark" harness = false [package.metadata.wasm-pack.profile.release] wasm-opt = ["-O3", "--enable-mutable-globals"] [dependencies.web-sys] version = "0.3" features = [ "Document", "Element", "HtmlElement", "Node", "Window", "CanvasRenderingContext2d", "ImageData", "HtmlCanvasElement", "HtmlImageElement", "console", 'CssStyleDeclaration', 'EventTarget', ] [features] default = ["console_error_panic_hook"]