-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
115 lines (104 loc) · 1.95 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[package]
name = "filmborders"
version = "0.0.32"
authors = ["romnn <[email protected]>"]
edition = "2021"
description = "add hipster film borders to your images :)"
license-file = "LICENSE"
readme = "README.md"
homepage = "https://film-borders.romnn.com"
repository = "https://github.com/romnn/film-borders"
categories = [
"multimedia::images",
"command-line-utilities",
"wasm",
"web-programming"
]
keywords = [
"image",
"35mm",
"film",
"photography",
"borders"
]
exclude = [
"samples/*",
"www/*",
"nginx.conf",
"tasks.py",
"Dockerfile*"
]
[profile.release]
# optimize for small code size
# opt-level = "z" # or "s"
opt-level = 3 # or "s"
# enable link time optimization
lto = true
# strip debug info
strip = "debuginfo"
[profile.lib]
inherits = "release"
strip = false
opt-level = 3
lto = true
[lib]
crate-type = ["cdylib", "lib"]
[[bin]]
name = "film-borders"
path = "src/cli.rs"
[[bench]]
name = "benches"
harness = false
[features]
default = []
# default = ["debug"]
builtin = []
debug = []
wasm = [
"builtin",
"chrono/wasmbind"
]
[package.metadata.cargo-feature-combinations]
denylist = ["default"]
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"]
[dependencies]
wasm-bindgen = "0.2"
js-sys = "0.3"
image = "0"
imageproc = "0"
rusttype = "0.9"
duration-string = "0"
clap = { version = "3", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1"
lazy_static = "1"
chrono = "0.4"
regex = "1"
num = "0.4"
[dev-dependencies]
pretty_assertions = "1"
anyhow = "1"
approx = "0"
regex = "1"
wasm-bindgen-test = "0.3"
criterion = "0.4"
[dependencies.web-sys]
version = "0.3"
features = [
"console",
"Document",
"Element",
"HtmlElement",
"Node",
"Window",
"CanvasRenderingContext2d",
"ImageData",
"HtmlCanvasElement",
"HtmlImageElement",
"console",
'CssStyleDeclaration',
'EventTarget',
]