# 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 = "web-image" version = "0.3.0" authors = ["Anshul Sanghi "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A crate for easy interop between web APIs and DynamicImage from `image-rs`" homepage = "https://github.com/anshap1719/web-image" readme = "README.md" keywords = [ "image", "wasm", "web-assembly", ] categories = ["multimedia"] license = "Apache-2.0" repository = "https://github.com/anshap1719/web-image" [package.metadata.wasm-pack.profile.release] wasm-opt = [ "-O3", "--enable-mutable-globals", ] [profile.release] opt-level = 3 lto = true codegen-units = 1 panic = "abort" [lib] name = "web_image" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [dependencies.image] version = "0.25.0" features = [ "gif", "jpeg", "ico", "png", "pnm", "tga", "tiff", "webp", "bmp", "hdr", "dds", ] default-features = false [dependencies.js-sys] version = "0.3" [dependencies.serde] version = "1.0.203" features = ["derive"] [dependencies.thiserror] version = "1.0.64" [dependencies.wasm-bindgen] version = "0.2.91" [dependencies.wasm-bindgen-futures] version = "0.4.42" [dependencies.web-sys] version = "0.3" features = [ "Document", "Element", "HtmlElement", "Node", "Window", "CanvasRenderingContext2d", "ImageData", "HtmlCanvasElement", "HtmlImageElement", "console", "CssStyleDeclaration", "EventTarget", "Blob", "ImageBitmap", "ImageBitmapOptions", "ColorSpaceConversion", ] [lints.clippy.cargo] level = "deny" priority = 0 [lints.clippy.complexity] level = "deny" priority = 0 [lints.clippy.correctness] level = "deny" priority = 0 [lints.clippy.fallible_impl_from] level = "deny" priority = 1 [lints.clippy.get_unwrap] level = "deny" priority = 1 [lints.clippy.module_name_repetitions] level = "allow" priority = 1 [lints.clippy.pedantic] level = "deny" priority = 0 [lints.clippy.perf] level = "deny" priority = 0 [lints.clippy.style] level = "deny" priority = 0 [lints.clippy.suspicious] level = "deny" priority = 0 [lints.clippy.too_many_lines] level = "deny" priority = 1 [lints.clippy.unwrap_used] level = "deny" priority = 1