This repository was archived by the owner on Jun 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
188 lines (183 loc) · 5.04 KB
/
Cargo.toml
File metadata and controls
188 lines (183 loc) · 5.04 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[package]
name = "xx-core"
version = "0.1.0"
edition = "2021"
rust-version = "1.81"
[dependencies]
log = { version = "0.4", features = ["std"], optional = true }
ctor = { version = "0.2", optional = true }
enumflags2 = { version = "0.7.10", optional = true }
memchr = { version = "2.7.4", optional = true }
num-derive = { version = "0.4.2", optional = true }
num-traits = { version = "0.2.19", optional = true }
lazy_static = { version = "1.5.0", optional = true }
xx-macros = { git = "https://github.com/davidzeng0/xx-macros.git", optional = true }
xx-proc-macros = { git = "https://github.com/davidzeng0/xx-macros.git", optional = true }
xx-core-macros = { path = "macros", default-features = false, optional = true }
[features]
async_std = ["io", "coroutines", "container", "sync", "memchr", "task"]
container = ["opt", "pointer", "cell"]
coroutines = ["fiber", "future", "log", "impls", "cell", "log"]
error = ["pointer"]
fiber = ["os", "opt", "pointer", "log", "impls"]
future = ["closure", "pointer", "error", "impls"]
impls = ["macros", "runtime"]
io = ["pointer"]
macros = [
"dep:xx-macros",
"dep:xx-proc-macros",
"dep:xx-core-macros",
"opt",
"time",
"dep:xx-core-macros"
]
opt = []
os = ["error", "io", "macros", "pointer", "impls", "enumflags2", "num-traits", "dep:num-derive"]
pointer = ["macros", "runtime"]
sync = ["cell", "pointer", "cell", "error"]
task = []
threadpool = ["container", "future", "os", "pointer", "log", "task"]
time = []
cell = ["macros", "pointer"]
closure = []
log = ["dep:log", "ctor", "lazy_static", "pointer"]
runtime = ["log", "macros"]
ctor = ["dep:ctor"]
enumflags2 = ["dep:enumflags2"]
lazy_static = ["dep:lazy_static"]
memchr = ["dep:memchr"]
num-traits = ["dep:num-traits"]
default = [
"async_std",
"container",
"coroutines",
"error",
"fiber",
"future",
"impls",
"io",
"macros",
"opt",
"os",
"pointer",
"sync",
"task",
"threadpool",
"time",
"cell",
"closure",
"log",
"runtime",
"logger",
"panic-log"
]
logger = ["log", "impls"]
panic-log = ["logger"]
tracing = []
tracing-ext = ["tracing"]
xx-doc = []
[lints.rust]
elided_lifetimes_in_paths = "warn"
absolute_paths_not_starting_with_crate = "warn"
explicit_outlives_requirements = "warn"
missing_copy_implementations = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_crate_dependencies = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
elided_named_lifetimes = "allow"
[lints.clippy]
field_reassign_with_default = "allow"
missing_transmute_annotations = "allow"
arithmetic_side_effects = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
as_ptr_cast_mut = "warn"
as_underscore = "warn"
bool_to_int_with_if = "warn"
borrow_as_ptr = "warn"
branches_sharing_code = "warn"
cast_ptr_alignment = "warn"
checked_conversions = "warn"
decimal_literal_representation = "warn"
equatable_if_let = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
ignored_unit_patterns = "warn"
impl_trait_in_params = "warn"
invalid_upcast_comparisons = "warn"
items_after_statements = "warn"
large_digit_groups = "warn"
large_stack_frames = "warn"
large_types_passed_by_value = "warn"
lossy_float_literal = "warn"
manual_clamp = "warn"
manual_string_new = "warn"
manual_assert = "warn"
map_unwrap_or = "warn"
match_wildcard_for_single_variants = "warn"
missing_const_for_fn = "warn"
missing_panics_doc = "warn"
must_use_candidate = "warn"
mutex_atomic = "warn"
needless_bitwise_bool = "warn"
needless_continue = "warn"
needless_pass_by_ref_mut = "warn"
needless_pass_by_value = "warn"
needless_raw_strings = "warn"
no_effect_underscore_binding = "warn"
nonstandard_macro_braces = "warn"
or_fun_call = "warn"
partial_pub_fields = "warn"
print_stderr = "warn"
print_stdout = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
redundant_clone = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
redundant_pub_crate = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
str_split_at_newline = "warn"
string_lit_as_bytes = "warn"
string_to_string = "warn"
trait_duplication_in_bounds = "warn"
transmute_ptr_to_ptr = "warn"
transmute_undefined_repr = "warn"
trivially_copy_pass_by_ref = "warn"
type_repetition_in_bounds = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unreadable_literal = "warn"
unused_self = "warn"
unwrap_used = "warn"
use_self = "warn"
used_underscore_binding = "warn"
useless_let_if_seq = "warn"
panic = "warn"
expect_used = "warn"
unreachable = "warn"
use_debug = "warn"
multiple_unsafe_ops_per_block = "warn"
flat_map_option = "warn"
option_as_ref_cloned = "warn"
option_option = "warn"
todo = "warn"
unused_async = "warn"
wildcard_imports = "warn"
tabs_in_doc_comments = "allow"