forked from pydantic/pydantic-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
113 lines (103 loc) · 2.96 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
[package]
name = "pydantic-core"
version = "2.24.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/pydantic/pydantic-core"
repository = "https://github.com/pydantic/pydantic-core.git"
readme = "README.md"
include = [
"/pyproject.toml",
"/README.md",
"/LICENSE",
"/Makefile",
"/build.rs",
"/generate_self_schema.py",
"/rust-toolchain",
"/src",
"!/src/self_schema.py",
"/python/pydantic_core",
"/tests",
"/.cargo",
"!__pycache__",
"!tests/.hypothesis",
"!tests/.pytest_cache",
"!*.so",
]
rust-version = "1.75"
[dependencies]
# TODO it would be very nice to remove the "py-clone" feature as it can panic,
# but needs a bit of work to make sure it's not used in the codebase
pyo3 = { version = "0.22.3", features = ["generate-import-lib", "num-bigint", "py-clone"] }
regex = "1.11.0"
strum = { version = "0.26.3", features = ["derive"] }
strum_macros = "0.26.4"
serde_json = {version = "1.0.128", features = ["arbitrary_precision", "preserve_order"]}
enum_dispatch = "0.3.13"
serde = { version = "1.0.210", features = ["derive"] }
speedate = "0.14.4"
smallvec = "1.13.2"
ahash = "0.8.10"
url = "2.5.0"
# idna is already required by url, added here to be explicit
idna = "1.0.2"
base64 = "0.22.1"
num-bigint = "0.4.6"
python3-dll-a = "0.2.10"
uuid = "1.10.0"
jiter = { version = "0.5", features = ["python"] }
hex = "0.4.3"
[lib]
name = "_pydantic_core"
crate-type = ["cdylib", "rlib"]
[features]
# must be enabled when building with `cargo build`, maturin enables this automatically
extension-module = ["pyo3/extension-module"]
[profile.release]
lto = "fat"
codegen-units = 1
strip = true
[profile.bench]
debug = true
strip = false
# This is separate to benchmarks because `bench` ends up building testing
# harnesses into code, as it's a special cargo profile.
[profile.profiling]
inherits = "release"
debug = true
strip = false
[dev-dependencies]
pyo3 = { version = "0.22.3", features = ["auto-initialize"] }
[build-dependencies]
version_check = "0.9.5"
# used where logic has to be version/distribution specific, e.g. pypy
pyo3-build-config = { version = "0.22.0" }
[lints.clippy]
dbg_macro = "warn"
print_stdout = "warn"
# in general we lint against the pedantic group, but we will whitelist
# certain lints which we don't want to enforce (for now)
pedantic = { level = "warn", priority = -1 }
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
float_cmp = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
manual_let_else = "allow"
match_bool = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
used_underscore_binding = "allow"