-
Notifications
You must be signed in to change notification settings - Fork 60
/
Cargo.toml
executable file
·61 lines (51 loc) · 1.7 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
authors = ["yisibl <[email protected]>"]
edition = "2021"
license = "MPL-2.0"
name = "resvg-js"
version = "1.0.0"
[lib]
crate-type = ["cdylib"]
[dependencies]
env_logger = "0.11.0"
log = "0.4"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
svgtypes = "0.15.0"
thiserror = "1.0.37"
png = "=0.17.5"
pathfinder_geometry = "0.5.1"
pathfinder_content = { version = "0.5.0", default-features = false }
pathfinder_simd = { version = "=0.5.2", features = ["pf-no-simd"] }
futures = "0.3.21"
woff2 = "0.3.0"
[target.'cfg(not(any(target_os = "linux", target_family = "wasm")))'.dependencies]
mimalloc = "0.1"
[target.'cfg(all(target_os = "linux", not(target_arch = "arm")))'.dependencies]
mimalloc = { version = "0.1", features = ["local_dynamic_tls"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.87"
js-sys = "0.3.64"
resvg = { version = "0.34.0", default-features = false, features = [
"raster-images",
"text",
] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
napi = { version = "2.16.0", features = ["serde-json", "async"] }
napi-derive = "2.16.0"
resvg = { version = "0.34.0", default-features = false, features = [
"raster-images",
"text",
"system-fonts",
] }
[build-dependencies]
napi-build = "2"
[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
[patch.crates-io]
resvg = { git = "https://github.com/zimond/resvg", rev = "3495d870" }
woff2 = { git="https://github.com/yisibl/woff2-rs", branch="fix-total-compressed-size" }