-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
119 lines (107 loc) · 3.39 KB
/
Cargo.toml
File metadata and controls
119 lines (107 loc) · 3.39 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
[package]
name = "rcon"
description = "RCon client library"
license = "MIT"
repository = "https://github.com/conqp/rcon-rs"
categories = ["api-bindings", "command-line-utilities"]
keywords = ["rcon", "client"]
version = "0.3.0"
edition = "2021"
[dependencies]
bitflags = { version = "2.9", optional = true }
crc = { version = "3.2", optional = true }
log = { version = "0.4", optional = true }
num-derive = { version = "0.4", optional = true }
num-traits = { version = "0.2", optional = true }
rand = { version = "0.9", optional = true }
regex = { version = "1.11", optional = true }
tokio = { version = "1.44", optional = true }
uuid = { version = "1.16", optional = true }
[dev-dependencies]
clap = { version = "4.5" }
env_logger = { version = "0.11" }
rpassword = { version = "7.3" }
[features]
battleye = ["dep:crc", "dep:log", "tokio/rt", "tokio/time", "tokio/sync"]
source = ["dep:bitflags", "dep:log", "dep:num-derive", "dep:num-traits", "dep:rand", "tokio/io-util", "tokio/net"]
cli = ["clap/derive", "tokio/rt-multi-thread", "tokio/macros"]
dayz = ["battleye", "dep:uuid"]
minecraft = ["source", "dep:uuid"]
minecraft-java-edition = ["minecraft", "dep:regex"]
minecraft-bedrock-edition = ["minecraft"]
minecraft-education-edition = ["minecraft-bedrock-edition"]
[[example]]
name = "rconclt"
required-features = ["battleye", "cli", "source"]
[[example]]
name = "rconclt_no_login"
required-features = ["battleye", "cli", "source"]
[[example]]
name = "rconclt_timeout"
required-features = ["battleye", "cli", "source"]
[[example]]
name = "dayz_rcon"
required-features = ["cli", "dayz"]
[[example]]
name = "minecraft_java_edition"
required-features = ["cli", "minecraft-java-edition"]
[profile.release]
strip = true
lto = true
codegen-units = 1
panic = "abort"
[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
elided_lifetimes_in_paths = "warn"
keyword_idents = { level = "warn", priority = -1 }
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_docs = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unit_bindings = "warn"
unsafe_code = "warn"
unstable_features = "warn"
unused_crate_dependencies = "warn"
unused_imports = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
for_loops_over_fallibles = "warn"
redundant_lifetimes = "warn"
[lints.clippy]
pedantic = { level = "warn", priority = -90 }
nursery = { level = "warn", priority = -95 }
perf = { level = "warn", priority = -95 }
suspicious = { level = "warn", priority = -95 }
complexity = { level = "warn", priority = -100 }
cargo = { level = "warn", priority = -95 }
all = { level = "warn", priority = -98 }
incompatible_msrv = "warn"
as_ptr_cast_mut = "warn"
clear_with_drain = "warn"
collection_is_never_read = "warn"
debug_assert_with_mut_call = "warn"
deref_by_slicing = "warn"
empty_enum_variants_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
format_push_string = "warn"
mem_forget = "warn"
needless_collect = "warn"
needless_pass_by_ref_mut = "warn"
nonstandard_macro_braces = "warn"
panic_in_result_fn = "warn"
path_buf_push_overwrite = "warn"
unwrap_in_result = "warn"
verbose_file_reads = "warn"
useless_let_if_seq = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_type_annotations = "warn"
string_add = "warn"
string_slice = "warn"
string_to_string = "warn"
trailing_empty_array = "warn"
transmute_undefined_repr = "warn"
unnecessary_self_imports = "warn"