Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
75 lines (66 loc) · 2.2 KB
/
Copy pathCargo.toml
File metadata and controls
75 lines (66 loc) · 2.2 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
[package]
name = "numgrid"
version = "2.2.0"
authors = ["Radovan Bast <version-control@radovan.xyz>"]
description = "Numerical integration grid for molecules."
license = "MPL-2.0"
edition = "2024"
readme = "README.md"
homepage = "https://github.com/dftlibs/numgrid/"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
statrs = "0.19"
rand = "0.10"
rayon = "1.12"
pyo3 = { version = "0.29", features = ["extension-module"] }
reqwest = { version = "0.13", default-features = false, features = ["blocking", "json", "rustls"] }
serde = { version = "1.0", features = ["derive"] }
# https://emschwartz.me/your-clippy-config-should-be-stricter/
[lints.clippy]
# don't panic - prevent panics from unwraps and unsafe slicing or indexing
string_slice = "warn"
# indexing_slicing = "warn"
unwrap_used = "warn"
panic = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
get_unwrap = "warn"
unwrap_in_result = "warn"
unchecked_time_subtraction = "warn"
panic_in_result_fn = "warn"
# don't fail silently - prevent dropped futures and swallowed errors
let_underscore_future = "warn"
let_underscore_must_use = "warn"
# unused_result_ok = "warn"
map_err_ignore = "warn"
assertions_on_result_states = "warn"
# don't do bad async stuff - prevent deadlocks and concurrency bugs
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
if_let_mutex = "warn" # only relevant on editions before 2024
large_futures = "warn"
# don't do unsafe things with memory
mem_forget = "warn"
undocumented_unsafe_blocks = "warn"
multiple_unsafe_ops_per_block = "warn"
unnecessary_safety_doc = "warn"
unnecessary_safety_comment = "warn"
# don't do potentially incorrect things with numbers
float_cmp = "warn"
float_cmp_const = "warn"
lossy_float_literal = "warn"
cast_sign_loss = "warn"
invalid_upcast_comparisons = "warn"
# don't do bad things that are easy to avoid
rc_mutex = "warn"
debug_assert_with_mut_call = "warn"
iter_not_returning_iterator = "warn"
expl_impl_clone_on_copy = "warn"
infallible_try_from = "warn"
dbg_macro = "warn"
# don't `allow` your way around these lints - every suppression must be
# a deliberate #[expect(..., reason = "...")] rather than a silent #[allow]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"