-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
32 lines (26 loc) · 908 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[package]
description = "resvg wrapper for svg2png wasm module"
edition = "2018"
license = "MIT"
name = "svg2png-wasm"
version = "0.1.0"
repository = "https://github.com/ssssota/svg2png-wasm"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
resvg = { version = "0.36.0", default-features = false, features = ["text", "raster-images"] }
svgtypes = "0.12.0"
wasm-bindgen = "0.2.87"
console_error_panic_hook = {version = "0.1.7", optional = true}
wee_alloc = {version = "0.4.5", optional = true}
[dev-dependencies]
wasm-bindgen-test = "0.3.37"
# ref. https://github.com/yisibl/resvg-js
[profile.release]
lto = true # Enable Link Time Optimization
opt-level = 3
# Setting this to 1 may improve the performance of generated code, but may be slower to compile.
# https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
codegen-units = 1