-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
80 lines (66 loc) · 2.13 KB
/
Copy pathCargo.toml
File metadata and controls
80 lines (66 loc) · 2.13 KB
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
[package]
name = "anyd"
version = "0.1.3"
edition = "2024"
rust-version = "1.89"
license = "MIT"
description = "From-scratch encoding and decoding of 1D and 2D barcodes with lossless round-trip and live-video detection"
repository = "https://github.com/KarpelesLab/anydcode"
authors = ["Karpelès Lab Inc."]
keywords = ["barcode", "qrcode", "decode", "encode", "scanner"]
categories = ["encoding", "multimedia::images"]
# Keep the published crate lean: the demo page, CI and test fixtures live in the
# repo, not the crate.
exclude = ["/web", "/.github", "/testdata"]
[features]
default = ["appclip"]
# Apple App Clip Code encode/decode. Embeds ~1.7 MB of trained Huffman frequency
# tables (see src/codes/appclip); disable with `default-features = false` for a
# lean build.
appclip = []
# The `anyd` command-line tool. Off by default so the library stays
# dependency-free; enable with `cargo build --features cli`.
cli = ["dep:oxideav-png"]
# Raw wasm32 FFI exports for the browser demo (no wasm-bindgen). Enable only when
# building the demo for `wasm32-unknown-unknown`; it relaxes `forbid(unsafe_code)`
# for the small FFI shim. Adds no dependencies.
wasm = []
[dependencies]
oxideav-png = { version = "0.1.8", optional = true, default-features = false }
# The library ships inside a per-frame video pipeline (and as the wasm demo, where the
# browser cannot recover codegen quality after the fact) — trade compile time for the
# fastest code the backend can emit.
[profile.release]
lto = "fat"
codegen-units = 1
[[bin]]
name = "anyd"
path = "src/bin/anyd.rs"
required-features = ["cli"]
[lints.rust]
missing_debug_implementations = "warn"
[lints.clippy]
all = "warn"
[dev-dependencies]
# Dependency-free frame-detector benchmark (std::time only; no criterion).
[[bench]]
name = "detect"
harness = false
[[example]]
name = "qrdebug"
required-features = ["cli"]
[[example]]
name = "degrade"
required-features = ["cli"]
[[example]]
name = "locdebug"
required-features = ["cli"]
[[example]]
name = "cropdecode"
required-features = ["cli"]
[[example]]
name = "scan1ddebug"
required-features = ["cli"]
[[example]]
name = "eanvotedebug"
required-features = ["cli"]