-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
47 lines (43 loc) · 1.55 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
[package]
name = "fastexcel"
version = "0.12.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/ToucanToco/fastexcel"
repository = "https://github.com/ToucanToco/fastexcel.git"
readme = "README.md"
include = [
"/pyproject.toml",
"/README.md",
"/LICENSE",
"/Makefile",
"/src",
"/python/fastexcel",
"!__pycache__",
"!*.pyc",
"!*.so",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "fastexcel"
crate-type = ["cdylib"]
[dependencies]
# There's a lot of stuff we don't want here, such as serde support
arrow = { version = "53.2.0", default-features = false, features = ["pyarrow"] }
calamine = { version = "0.26.1", features = ["dates"] }
chrono = { version = "0.4.38", default-features = false }
log = "0.4.22"
pyo3 = { version = "0.22.6", features = ["abi3-py38"] }
pyo3-log = "0.11.0"
[dev-dependencies]
pretty_assertions = "1.4.1"
rstest = { version = "0.23.0", default-features = false }
# NOTE: This is a hack to bypass pyo3 limitations when testing:
# https://pyo3.rs/v0.22.3/faq.html#i-cant-run-cargo-test-or-i-cant-build-in-a-cargo-workspace-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror
[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
# feature for tests only. This makes Python::with_gil auto-initialize Python
# interpreters, which allows us to instantiate Python objects in tests
# (see https://pyo3.rs/v0.22.3/features#auto-initialize)
tests = ["pyo3/auto-initialize"]