forked from erwanvivien/fast_qr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
82 lines (67 loc) · 1.93 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
[package]
name = "fast_qr"
version = "0.11.0"
authors = ["erwan.vivien <[email protected]>"]
edition = "2021"
description = "Generates optimized QRCode"
documentation = "https://docs.rs/fast_qr/latest/fast_qr/"
homepage = "https://fast-qr.com/"
readme = "README.md"
repository = "https://github.com/erwanvivien/fast_qr/"
keywords = ["qr", "qrcode", "qr-generator", "qrcode-generator", "qr-gen"]
categories = ["multimedia", "multimedia::encoding", "multimedia::images"]
include = ["src", "Cargo.toml", "./README.md", "./LICENSE", "benches"]
rust-version = "1.59"
license-file = "LICENSE"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
resvg = { version = "0.28.0", optional = true }
[features]
svg = []
image = ["svg", "dep:resvg"]
wasm-bindgen = ["dep:wasm-bindgen"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2", optional = true }
[profile.release]
debug = false
lto = true
codegen-units = 1
opt-level = 's' # Optimize for size
panic = 'abort' # About unwinding code
strip = "debuginfo"
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz"]
[dev-dependencies]
base64 = "0.21.3"
qrcode = "0.12.0"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
criterion = { version = "0.4", default-features = false, features = [
"cargo_bench_support",
"plotters",
] }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
criterion = "0.4"
[[bench]]
name = "qr"
harness = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "custom"
path = "examples/custom.rs"
required-features = ["image"]
[[example]]
name = "embed"
path = "examples/embed.rs"
required-features = ["image"]
[[example]]
name = "image"
path = "examples/image.rs"
required-features = ["image"]
[[example]]
name = "svg"
path = "examples/svg.rs"
required-features = ["svg"]