-
Notifications
You must be signed in to change notification settings - Fork 252
/
Cargo.toml
72 lines (66 loc) · 1.86 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
[package]
name = "pydantic-core"
version = "0.8.2"
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",
"/pydantic_core",
"/tests",
"/.cargo",
"!__pycache__",
"!tests/.hypothesis",
"!tests/.pytest_cache",
"!*.so",
]
[dependencies]
# required since `Py_Ellipsis` fails on windows, see https://github.com/PyO3/pyo3/pull/2911
pyo3 = { git = "https://github.com/PyO3/pyo3", branch = "release-0.18.1" }
#pyo3 = "0.18.0"
regex = "1.6.0"
strum = { version = "0.24.1", features = ["derive"] }
strum_macros = "0.24.3"
serde_json = {version = "1.0.87", features = ["preserve_order"]}
enum_dispatch = "0.3.8"
serde = "1.0.147"
indexmap = "1.9.1"
mimalloc = { version = "0.1.30", default-features = false, optional = true }
speedate = "0.7.0"
ahash = "0.8.0"
url = "2.3.1"
# idna is already required by url, added here to be explicit
idna = "0.3.0"
base64 = "0.13.1"
[lib]
name = "_pydantic_core"
crate-type = ["cdylib", "rlib"]
[features]
# must be disabled for cargo bench
extension-module = ["pyo3/extension-module"]
# required for cargo bench
auto-initialize = ["pyo3/auto-initialize"]
default = ["mimalloc", "extension-module", "mimalloc/local_dynamic_tls"]
[package.metadata.maturin]
name = "pydantic_core._pydantic_core"
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
[build-dependencies]
version_check = "0.9.4"
# used where logic has to be version/distribution specific, e.g. pypy
# FIXME change when `pyo3` above is updated
pyo3-build-config = { git = "https://github.com/PyO3/pyo3", branch = "release-0.18.1" }
#pyo3 = "0.18.0"