-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
101 lines (82 loc) · 1.75 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
[package]
name = "pysqlx-core"
version = "0.2.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
include = [
"/pyproject.toml",
"/LICENSE",
"/README.md",
"/convert",
"/database",
"/py_types",
"/pysqlx_core.pyi",
"/src",
]
[lib]
name = "pysqlx_core"
crate-type = ["cdylib", "rlib"]
[features]
# must be enabled when building with `cargo build`, maturin enables this automatically
extension-module = ["pyo3/extension-module"]
vendored-openssl = ["quaint/vendored-openssl"]
[workspace]
members = ["quaint"]
[package.metadata.maturin]
python-source = "pysqlx_core"
bindings = "pyo3"
[dependencies]
pyo3 = { version = "0.22", features = [
"extension-module",
"chrono",
"serde",
"experimental-async",
"auto-initialize",
] }
pyo3-log = "0.11"
tokio = "1.29"
env_logger = "0.11"
chrono = { version = "0.4" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
uuid = { version = "1.3", features = ["serde", "v4"] }
base64 = { version = "0.12.3" }
openssl = { version = "0.10", features = ["vendored"] }
log = "0.4"
bigdecimal = "0.3"
cuid = "1.3.3"
quaint.workspace = true
[dev-dependencies]
libc = "0.2.0"
tokio = { version = "1.29", features = ["macros"] }
[build-dependencies]
pyo3-build-config ="0.22"
[workspace.dependencies.quaint]
path = "quaint"
features = [
"expose-drivers",
"fmt-sql",
"mssql",
"mysql",
#"pooled",
"postgresql",
"sqlite",
]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
incremental = true
# panic = "abort"
debug = false
debug-assertions = false
overflow-checks = false
rpath = false
[profile.dev]
opt-level = 0
incremental = true
lto = false
debug = true
overflow-checks = false
codegen-units = 256
rpath = false