-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (45 loc) · 1.65 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
[package]
name = "pconvert-rust"
description = "Rust version of P(NG)Convert, a simple PNG conversion tool."
version = "0.5.1"
authors = ["Platforme <development@platforme.com>"]
license = "Apache-2.0"
repository = "https://github.com/ripe-tech/pconvert-rust"
homepage = "https://github.com/ripe-tech/pconvert-rust"
edition = "2018"
build = "build.rs"
readme = "README.md"
[lib]
name = "pconvert_rust"
crate-type = ["rlib", "cdylib"]
[features]
readonly = []
python-extension = ["pyo3"]
wasm-extension = ["js-sys", "serde", "serde_json", "serde-wasm-bindgen", "wasm-bindgen", "wasm-bindgen-futures", "web-sys"]
[dependencies]
# mandatory dependencies
image = { version = "0.24", default-features = false, features = ["png"] }
# `--features wasm-extension` dependencies
js-sys = { version = "0.3", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
serde-wasm-bindgen = { version = "0.4", optional = true }
wasm-bindgen = { version = "0.2", features = ["serde-serialize"], optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }
web-sys = { version = "0.3", features = ["File", "ImageData"], optional = true }
# `--features python-extension` dependencies
pyo3 = { version = "0.16", features = ["extension-module"], optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
mtpng = { version = "0.3" }
[build-dependencies]
chrono = "0.4"
image = { version = "0.24", default-features = false, features = ["png"] }
regex = "1"
[profile.dev]
opt-level = 3
[profile.release]
debug = false
lto = true
opt-level = 3
[package.metadata.docs.rs]
all-features = true