forked from thebashpotato/egui-aesthetix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
120 lines (111 loc) · 3.35 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
[package]
name = "egui-aesthetix"
version = "0.2.3"
authors = ["Matt Williams <[email protected]>"]
description = "A Uniform and programmatic approach to theming Egui applications"
edition = "2021"
homepage = "https://github.com/thebashpotato/egui-aesthetix"
repository = "https://github.com/thebashpotato/egui-aesthetix"
documentation = "https://docs.rs/egui-aesthetix/"
keywords = ["egui", "theming"]
categories = ["gui"]
license-file = "LICENSE"
[features]
default = ["standard"]
all_themes = ["standard", "carl", "nord", "tokyo_night"]
standard = []
carl = []
nord = []
tokyo_night = []
[dependencies]
egui = "0.28"
[lib]
name = "egui_aesthetix"
path = "src/lib.rs"
[profile.release]
codegen-units = 1
incremental = false
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true # optimize at the linking stage
panic = "abort" # don't unwind the stack on panic
[profile.bench]
codegen-units = 1
incremental = false
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
# Deny rules
all = "deny"
perf = "deny"
correctness = "deny"
complexity = "deny"
style = "deny"
pedantic = "deny"
as_underscore = "deny"
assertions_on_result_states = "deny"
clone_on_ref_ptr = "deny"
create_dir = "deny"
dbg_macro = "deny"
decimal_literal_representation = "deny"
default_numeric_fallback = "deny"
empty_drop = "deny"
empty_structs_with_brackets = "deny"
exit = "deny"
filetype_is_file = "deny"
float_cmp_const = "deny"
fn_to_numeric_cast_any = "deny"
format_push_string = "deny"
get_unwrap = "deny"
integer_division = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
mixed_read_write_in_expression = "deny"
mutex_atomic = "deny"
needless_raw_strings = "deny"
non_ascii_literal = "deny"
panic = "deny"
print_stderr = "deny"
pub_without_shorthand = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_type_annotations = "deny"
ref_patterns = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_name_method = "deny"
string_add = "deny"
string_lit_chars_any = "deny"
string_slice = "deny"
string_to_string = "deny"
suspicious_xor_used_as_pow = "deny"
todo = "deny"
try_err = "deny"
unimplemented = "deny"
unnecessary_self_imports = "deny"
unneeded_field_pattern = "deny"
unseparated_literal_suffix = "deny"
if_then_some_else_none = "deny"
use_debug = "deny"
unwrap_used = "deny"
unwrap_in_result = "deny"
struct_excessive_bools = "deny"
# Warning rules
missing_errors_doc = { level = "warn", priority = 1 }
missing_panics_doc = { level = "warn", priority = 1 }
missing_docs_in_private_items = { level = "warn", priority = 1 }
needless_bool = { level = "warn", priority = 1 }
# Allow Rules
mod_module_files = "allow"
self_named_module_files = "allow"
used_underscore_binding = { level = "allow", priority = 1 }
must_use_candidate = { level = "allow", priority = 1 }
module_name_repetitions = { level = "allow", priority = 1 }
too_many_lines = { level = "allow", priority = 1 }
implicit_hasher = { level = "allow", priority = 1 }
if_not_else = { level = "allow", priority = 1 }
return_self_not_must_use = { level = "allow", priority = 1 }
inconsistent_struct_constructor = { level = "allow", priority = 1 }
match_wildcard_for_single_variants = { level = "allow", priority = 1 }
unnested_or_patterns = { level = "allow", priority = 1 }
similar_names = { level = "allow", priority = 1 }
struct_field_names = { level = "allow", priority = 1 }