-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
195 lines (179 loc) · 7.34 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
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
189
190
191
192
193
194
195
[workspace.package]
version = "0.0.1"
readme = "README.md"
authors = ["daiwanwei <[email protected]>"]
homepage = "https://github.com/daiwanwei/solana-programs-client"
repository = "https://github.com/daiwanwei/solana-programs-client"
license = "MIT"
edition = "2021"
rust-version = "1.80"
description = "solana-programs-client"
categories = ["solana"]
keywords = ["solana", "program"]
publish = false
[workspace]
resolver = "2"
members = ["crates/raydium/clmm"]
[workspace.dependencies]
# serialization / deserialization
base64 = "0.22"
bincode = "1"
borsh = "1"
# logger
tracing = "0.1"
solana-program = "2"
snafu = "0.8"
anchor-trait = { package = "anchor-trait", git = "https://github.com/daiwanwei/solana-common", rev = "7aec7a8" }
anchor-trait-derive = { package = "anchor-trait-derive", git = "https://github.com/daiwanwei/solana-common", rev = "7aec7a8" }
raydium-clmm = { path = "crates/raydium/clmm" }
[workspace.lints.rust]
async_fn_in_trait = "allow"
box_pointers = "allow"
# TODO: deny `unused_crate_dependencies` after https://github.com/rust-lang/rust/issues/95513 being solved
unused_crate_dependencies = "allow"
unstable_features = "warn"
absolute_paths_not_starting_with_crate = "deny"
# deprecated_in_future = "deny"
elided_lifetimes_in_paths = "deny"
explicit_outlives_requirements = "deny"
ffi_unwind_calls = "deny"
keyword_idents = { level = "deny", priority = -1 }
let_underscore_drop = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_abi = "deny"
non_ascii_idents = "deny"
rust_2021_incompatible_closure_captures = "deny"
rust_2021_incompatible_or_patterns = "deny"
rust_2021_prefixes_incompatible_syntax = "deny"
rust_2021_prelude_collisions = "deny"
# single_use_lifetimes = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_extern_crates = "deny"
unused_import_braces = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
unused_results = "deny"
variant_size_differences = "deny"
ambiguous_glob_imports = "deny"
ambiguous_glob_reexports = "deny"
anonymous_parameters = "deny"
array_into_iter = "deny"
asm_sub_register = "deny"
bad_asm_style = "deny"
bare_trait_objects = "deny"
break_with_label_and_loop = "deny"
# byte_slice_in_packed_struct_with_derive = "deny"
clashing_extern_declarations = "deny"
coherence_leak_check = "deny"
confusable_idents = "deny"
const_evaluatable_unchecked = "deny"
const_item_mutation = "deny"
dead_code = "deny"
# deprecated = "deny"
deprecated_where_clause_location = "deny"
deref_into_dyn_supertrait = "deny"
deref_nullptr = "deny"
dropping_copy_types = "deny"
dropping_references = "deny"
drop_bounds = "deny"
duplicate_macro_attributes = "deny"
dyn_drop = "deny"
elided_lifetimes_in_associated_constant = "deny"
ellipsis_inclusive_range_patterns = "deny"
exported_private_dependencies = "deny"
forbidden_lint_groups = "deny"
forgetting_copy_types = "deny"
forgetting_references = "deny"
for_loops_over_fallibles = "deny"
function_item_references = "deny"
hidden_glob_reexports = "deny"
improper_ctypes = "deny"
improper_ctypes_definitions = "deny"
incomplete_features = "deny"
inline_no_sanitize = "deny"
internal_features = "deny"
invalid_doc_attributes = "deny"
invalid_from_utf8 = "deny"
invalid_macro_export_arguments = "deny"
invalid_nan_comparisons = "deny"
invalid_value = "deny"
irrefutable_let_patterns = "deny"
large_assignments = "deny"
late_bound_lifetime_arguments = "deny"
legacy_derive_helpers = "deny"
map_unit_fn = "deny"
mixed_script_confusables = "deny"
named_arguments_used_positionally = "deny"
non_camel_case_types = "deny"
non_fmt_panics = "deny"
non_shorthand_field_patterns = "deny"
non_snake_case = "deny"
non_upper_case_globals = "deny"
noop_method_call = "deny"
no_mangle_generic_items = "deny"
opaque_hidden_inferred_bound = "deny"
overlapping_range_endpoints = "deny"
path_statements = "deny"
private_bounds = "deny"
private_interfaces = "deny"
redundant_semicolons = "deny"
refining_impl_trait = { level = "deny", priority = -1 }
# renamed_and_removed_lints = "deny"
repr_transparent_external_private_fields = "deny"
semicolon_in_expressions_from_macros = "deny"
special_module_name = "deny"
stable_features = "deny"
suspicious_double_ref_op = "deny"
# temporary_cstring_as_ptr = "deny"
trivial_bounds = "deny"
type_alias_bounds = "deny"
tyvar_behind_raw_pointer = "deny"
uncommon_codepoints = "deny"
unconditional_recursion = "deny"
undefined_naked_function_abi = "deny"
unexpected_cfgs = "deny"
ungated_async_fn_track_caller = "deny"
uninhabited_static = "deny"
unknown_lints = "deny"
unnameable_test_items = "deny"
unreachable_code = "deny"
unreachable_patterns = "deny"
unstable_name_collisions = "deny"
unstable_syntax_pre_expansion = "deny"
unsupported_calling_conventions = "deny"
unused_allocation = "deny"
unused_assignments = "deny"
unused_associated_type_bounds = "deny"
unused_attributes = "deny"
unused_braces = "deny"
unused_comparisons = "deny"
unused_doc_comments = "deny"
unused_features = "deny"
unused_imports = "deny"
unused_labels = "deny"
unused_macros = "deny"
unused_must_use = "deny"
unused_mut = "deny"
unused_parens = "deny"
unused_unsafe = "deny"
unused_variables = "deny"
useless_ptr_null_checks = "deny"
while_true = "deny"
[workspace.lints.clippy]
future_not_send = { level = "allow", priority = 1 }
module_name_repetitions = { level = "allow", priority = 1 }
multiple_crate_versions = { level = "allow", priority = 1 }
all = "deny"
cargo = "deny"
nursery = "deny"
pedantic = "deny"
[profile.release]
opt-level = 3
lto = true
[profile.dev]
opt-level = 0