-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
88 lines (76 loc) · 1.93 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
[package]
name = "rucash"
version = "0.5.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/z-Wind/rucash"
description = "read Gnucash file"
keywords = ["gnucash"]
categories = ["database"]
authors = ["zWindr <[email protected]>"]
edition = "2021"
rust-version = "1.77.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
sqlx = { version = "0.8", optional = true }
chrono = "0.4"
rust_decimal = { version = "1.36", optional = true }
xmltree = { version = "0.11", optional = true }
itertools = "0.13"
flate2 = "1.0"
tokio = { version = "1.41", features = ["sync"] }
num-traits = "0.2"
thiserror = "2.0"
rusqlite = { version = "0.32", features = [
"bundled",
"chrono",
], optional = true }
[lib]
name = "rucash"
crate-type = ["cdylib", "rlib"]
[dev-dependencies]
criterion = { version = "0.5", features = ["async_tokio"] }
float-cmp = "0.10"
pretty_assertions = "1.4"
tokio = { version = "1.41", features = ["rt-multi-thread", "macros"] }
[features]
default = []
schema = ["sqlx_common", "sqlx/sqlite"]
sqlx_common = [
"sqlx/any",
"sqlx/runtime-tokio-rustls",
"sqlx/macros",
"sqlx/chrono",
]
sqlite = ["rusqlite"]
postgresql = ["sqlx_common", "sqlx/postgres"]
mysql = ["sqlx_common", "sqlx/mysql"]
xml = ["xmltree"]
decimal = ["rust_decimal"]
[[bench]]
name = "benchmark"
harness = false
required-features = ["sqlite", "xml"]
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
required-features = ["sqlite"]
[[test]]
name = "mysql"
path = "tests/mysql.rs"
required-features = ["mysql"]
[[test]]
name = "xml"
path = "tests/xml.rs"
required-features = ["xml"]
[[test]]
name = "postgresql"
path = "tests/postgresql.rs"
required-features = ["postgresql"]
[[test]]
name = "all"
path = "tests/all.rs"
required-features = ["sqlite", "postgresql", "mysql", "xml"]