-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathCargo.toml
51 lines (42 loc) · 1.5 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
[package]
name = "css-inline-js"
version = "0.13.2"
authors = ["Dmitry Dygalo <[email protected]>"]
edition = "2021"
readme = "README.md"
description = "High-performance library for inlining CSS into HTML 'style' attributes"
repository = "https://github.com/Stranger6667/css-inline"
keywords = ["css", "html", "email", "stylesheet", "inlining"]
categories = ["web-programming"]
license = "MIT"
rust-version = "1.65"
include = ["src/*.rs", "LICENSE", "README.md", "CHANGELOG.md"]
[lib]
crate-type = ["cdylib"]
[target.'cfg(not(any(target_os = "linux", target_family = "wasm")))'.dependencies]
mimalloc = "0.1"
[target.'cfg(target_os = "linux")'.dependencies]
mimalloc = { version = "0.1", features = ["local_dynamic_tls"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
napi = { version = "2.14.1", default-features = false, features = ["napi4"] }
napi-derive = "2.14.4"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.87"
serde-wasm-bindgen = "0.6"
getrandom = { version = "0.2", features = ["js"] }
serde = { version = "1", features = ["derive"], default-features = false }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.css-inline]
path = "../../css-inline"
version = "*"
default-features = false
features = ["http", "file", "stylesheet-cache"]
[target.'cfg(target_arch = "wasm32")'.dependencies.css-inline]
path = "../../css-inline"
version = "*"
default-features = false
[build-dependencies]
napi-build = "2.1.0"
[profile.release]
lto = true
opt-level = "z"
codegen-units = 1