-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
74 lines (64 loc) · 1.98 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
[package]
name = "tinytime"
description = "Low overhead implementation of time-related concepts."
homepage = "https://github.com/moia-oss/tinytime.rs"
repository = "https://github.com/moia-oss/tinytime.rs"
documentation = "https://docs.rs/tinytime"
edition = "2021"
version = "0.12.7"
license = "MIT OR Apache-2.0"
[features]
rand = ["dep:rand"]
[dependencies]
chrono = "0.4.39"
derive_more = { version = "1.0.0", features = ["deref", "from", "into", "not", "sum"] }
lazy_static = "1.4.0"
rand = { version = "0.8.5", optional = true }
regex = "1.11.1"
serde = { version = "1.0.216", features = ["derive"], default-features = false }
thiserror = "2.0.6"
[dev-dependencies]
serde_test = "1.0.176"
serde_json = "1.0.133"
[lints.rust]
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "allow" # TODO
single_use_lifetimes = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unstable_features = "deny"
unused_crate_dependencies = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
unused_results = "warn"
dead_code = "warn"
unused = { level = "warn", priority = -1 }
[lints.rustdoc]
broken_intra_doc_links = "deny"
missing_crate_level_docs = "warn"
[lints.clippy]
complexity = { level = "warn", priority = -1 }
correctness = { level = "deny", priority = -1 }
perf = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
suspicious = { level = "deny", priority = -1 }
cargo = { level = "allow", priority = -1 } # TODO
todo = "warn"
disallowed-types = "deny"
missing_const_for_fn = "warn"
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
### Pedantic
pedantic = { level = "warn", priority = -1 }
missing_errors_doc = "allow" # TODO
cast_precision_loss = "allow"
cast_possible_truncation = "allow"
cast_lossless = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"