-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
91 lines (79 loc) · 1.96 KB
/
Copy pathCargo.toml
File metadata and controls
91 lines (79 loc) · 1.96 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
[package]
name = "uuid7-rs"
version = "0.1.0"
edition = "2024"
build = "build.rs"
[lib]
name = "_core"
crate-type = ["cdylib"]
[build-dependencies]
pyo3-build-config = "=0.29.2"
[dependencies]
pyo3 = {
version = "=0.29.2",
features = ["nightly"],
}
rand = {
version = "=0.10.2",
default-features = false,
features = [
"std_rng",
"sys_rng",
],
}
# mimalloc v3
[target.'cfg(not(any(target_os = "macos", target_os = "windows")))'.dependencies]
mimalloc = {
optional = true,
version = "=0.1.52",
features = [
"override",
"local_dynamic_tls",
],
}
[target.'cfg(target_os = "windows")'.dependencies]
windows-link = "=0.100.0"
mimalloc = {
optional = true,
version = "=0.1.52",
features = [],
}
[target.'cfg(target_os = "macos")'.dependencies]
mimalloc = {
optional = true,
version = "=0.1.52",
# See: https://github.com/lava-sh/toml-rs/issues/229
#
# mimalloc "override" feature installs process-wide malloc interposition and
# replaces macOS malloc zone/fork hooks when the extension is imported via dlopen.
# That breaks fork-based subprocess spawning, e.g., asyncio/playwright can fail.
features = ["local_dynamic_tls"],
}
[features]
default = []
mimalloc = ["dep:mimalloc"]
[profile.release]
opt-level = 3
lto = "fat"
panic = "abort"
strip = "symbols"
codegen-units = 1
[lints.rust]
warnings = "deny"
[lints.clippy]
perf = { level = "deny", priority = 1 }
style = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
complexity = { level = "deny", priority = -1 }
suspicious = { level = "deny", priority = -1 }
allow_attributes = "deny"
disallowed_types = "deny"
std_instead_of_core = "deny"
std_instead_of_alloc = "deny"
alloc_instead_of_core = "deny"
too_many_lines = "allow"
cast_possible_truncation = "allow"
missing_const_for_fn = "allow"
similar_names = "allow"
used_underscore_items = "allow"