-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
70 lines (62 loc) · 2.17 KB
/
Copy pathCargo.toml
File metadata and controls
70 lines (62 loc) · 2.17 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
[package]
name = "img2bez"
version = "0.1.0"
edition = "2024"
rust-version = "1.88"
authors = ["Eli Heuer <eli@elih.net>"]
description = "Trace bitmap glyph images to bezier contours and insert them directly into UFO font sources"
repository = "https://github.com/eliheuer/img2bez"
license = "Apache-2.0 OR MIT"
readme = "README.md"
keywords = ["font", "bezier", "tracing", "ufo", "vectorization"]
categories = ["graphics", "rendering::data-formats"]
exclude = [
"eval-harness/",
"docs/",
".github/",
"wasm/",
"mcp/",
"*_comparison.png",
]
[[bin]]
name = "img2bez"
path = "src/main.rs"
required-features = ["cli"]
[dependencies]
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp"] }
imageproc = { version = "0.25", default-features = false }
kurbo = "0.13"
rayon = { version = "1.10", optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", optional = true }
thiserror = "2"
tiny-skia = { version = "0.11", optional = true }
png = { version = "0.17", optional = true }
# Optional: output backends
norad = { version = "0.18", features = ["kurbo"], optional = true }
plist = { version = "1", optional = true }
# Optional: CLI
clap = { version = "4", features = ["derive"], optional = true }
[dev-dependencies]
serde_json = "1"
tempfile = "3"
[features]
# Batteries-included by default (CLI + UFO output + rendering + parallelism)
# so `cargo install img2bez` and `cargo build` just work. Library users who
# want a lean build can opt out with `default-features = false` and re-add
# only what they need (e.g. `features = ["ufo"]`); see the README.
default = ["cli", "ufo", "parallel", "render"]
ufo = ["dep:norad", "dep:plist"]
cli = ["dep:clap", "dep:serde_json", "ufo", "render"]
parallel = ["dep:rayon"]
render = ["dep:tiny-skia", "dep:png"]
# Master-compatibility refit (move an existing outline onto a raster of another
# weight). Experimental and off by default — it distorts some glyphs and has no
# regression tests yet; opt in explicitly.
experimental-refit = []
[package.metadata.docs.rs]
all-features = true
[lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
unused_qualifications = "warn"