-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
142 lines (134 loc) · 3.67 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[workspace]
members = [
"nipdf",
"macro",
"test-macro",
"dump",
"reader",
"cff-parser",
"prescript",
"render",
"gpui-reader",
]
resolver = "2"
package.repository = "https://github.com/redforks/nipdf"
package.license = "MIT"
package.edition = "2024"
package.version = "0.1.1"
package.authors = ["Red Forks [email protected]"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.tiny-skia]
opt-level = 3
[profile.dev.package.image]
opt-level = 3
[profile.release]
# lto = "thin"
# Uncomment next line to emb more symbols for profiling
debug = 1
[workspace.dependencies]
hex = { version = "0.4" }
once_cell = "1.21"
num-traits = "0.2"
memchr = "2.7"
ahash = { version = "0.8", features = ["no-rng"] }
log = "0.4"
jpeg-decoder = { version = "0.3", default-features = false }
image = { version = "0.25", default-features = false, features = ["png"] }
bitstream-io = "2.5"
strum = { version = "0.26", features = ["derive"] }
bitvec = "1.0"
jpeg2k = "0.9"
educe = "0.6"
pretty = "0.12"
bitflags = "2.9"
fontdb = "0.23"
font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "40391b7" }
pathfinder_geometry = "0.5"
weezl = "0.1"
either = "1.15"
euclid = "0.22"
md-5 = "0.10"
arc4 = "0.1"
heck = "0.5"
paste = "1.0"
tinyvec = { version = "1.9", features = ["rustc_1_57"] }
static_assertions = "1.1"
aes = "0.8"
cbc = "0.1"
phf = { version = "0.11", features = ["macros"] }
miniz_oxide = "0.8"
env_logger = "0.11"
glob = "0.3"
insta = { version = "1.42", features = ["ron"] }
assert_approx_eq = "1.1"
test-case = "3.3"
test-log = "0.2"
hex-literal = "0.4"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full", "extra-traits"] }
map-macro = "0.3"
winnow = { version = "0.7.6", features = ["simd"] }
kstring = { version = "2.0", features = ["max_inline"] }
itertools = "0.14"
clap = { version = "4.5", features = ["derive"] }
mimalloc = "0.1"
snafu = { version = "0.8.5" }
colog = "1.3.0"
[workspace.lints.rust]
elided-lifetimes-in-paths = "warn"
explicit_outlives_requirements = "warn"
meta_variable_misuse = "warn"
redundant_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
# remove this to detect unused crates, comment out because when compile with `cargo test` it will show unused crates which is not true
# unused_crate_dependencies = "warn"
unused_lifetimes = "warn"
unused-qualifications = "warn"
[workspace.lints.clippy]
empty_structs_with_brackets = "warn"
dbg_macro = "deny"
get_unwrap = "warn"
if_then_some_else_none = "warn"
large_include_file = "warn"
rc_buffer = "warn"
redundant_type_annotations = "warn"
verbose_file_reads = "warn"
collection_is_never_read = "warn"
debug_assert_with_mut_call = "warn"
imprecise_flops = "warn"
manual_clamp = "warn"
needless_collect = "warn"
or_fun_call = "warn"
redundant_clone = "warn"
suboptimal_flops = "warn"
# missing_asserts_for_indexing = "warn"
implied_bounds_in_impls = "warn"
needless_pass_by_ref_mut = "warn"
explicit_deref_methods = "warn"
cast_possible_truncation = "warn"
trivially_copy_pass_by_ref = "warn"
assigning_clones = "warn"
cloned_instead_of_copied = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
manual_let_else = "warn"
manual_ok_or = "warn"
map_unwrap_or = "warn"
match_on_vec_items = "warn"
match_same_arms = "warn"
needless_pass_by_value = "warn"
redundant_closure_for_method_calls = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
stable_sort_primitive = "warn"
unnested_or_patterns = "warn"
unused_self = "warn"
unwrap_used = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
type_complexity = "allow"