-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
70 lines (64 loc) · 2.89 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
[package]
name = "magritte"
version = "0.1.0"
edition = "2021"
description = "A powerful ORM with QueryBuilder for SurrealDB, inspired by SeaORM"
authors = ["Daniil Zavrin <[email protected]>"]
license = "MIT OR Apache-2.0"
[dependencies]
inherent = "1.0.11"
async-stream = { version = "0.3", default-features = false }
async-trait = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["env-filter", "fmt"] }
sha2 = "0.10.8"
tokio = { version = "1.41.1", features = ["full"]}
magritte_macros = { version = "0", path = "magritte_macros", default-features = false }
magritte_query = { version = "0", path = "magritte_query", default-features = false }
surrealdb = { version = "2", features = ["default","scripting",] }
futures = { version = "0.3", default-features = false, features = ["std"] }
log = { version = "0.4", default-features = false }
tracing = { version = "0.1", default-features = false, features = ["attributes", "log"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
thiserror = "2.0.3"
anyhow = "1.0"
strum = { version = "0.26.3",features = ["derive"] }
chrono = { version = "0.4.30", default-features = false, optional = true }
time = { version = "0.3.36", default-features = false, optional = true }
rust_decimal = { version = "1.36.0", optional = true }
bigdecimal = { version = "0", optional = true }
geo = { version = "0.29.2",optional = true }
uuid = { version = "1.11.0", features = ["v4","v6"], optional = true }
inventory = "0.3.15"
[dev-dependencies]
criterion = "0.5.1"
inferno = "0"
futures = { version = "0.3" }
tokio = { version = "1.6", features = ["full"] }
maplit = { version = "1" }
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
pretty_assertions = { version = "1.4.1" }
time = { version = "0.3.36", features = ["macros"] }
uuid = { version = "1", features = ["v4","v6"] }
magritte_query = { path = "magritte_query", features = ["tests-cfg"] }
[[test]]
name = "unit"
path = "tests/unit/mod.rs"
required-features = ["tests-cfg"]
[features]
default = [
"with-json",
"with-uuid",
]
mock = ["surrealdb/arbitrary"]
proxy = ["serde_json", "serde/derive"]
with-json = ["serde_json", "chrono?/serde", "rust_decimal?/serde", "bigdecimal?/serde", "uuid?/serde", "time?/serde"]
with-chrono = ["chrono","magritte_query/with-chrono", "magritte_macros/with-chrono"]
with-rust_decimal = ["rust_decimal", "magritte_query/with-rust_decimal", "magritte_macros/with-rust_decimal"]
with-bigdecimal = ["bigdecimal", "magritte_macros/with-bigdecimal", "magritte_query/with-bigdecimal"]
with-uuid = ["uuid", "magritte_macros/uuid", "magritte_query/uuid"]
with-time = ["time", "magritte_query/with-time", "magritte_macros/with-time"]
with-native-tls = ["surrealdb/native-tls"]
with-rustls = ["surrealdb/rustls",]
tests-cfg = ["serde/derive",]
full = ["default", "with-rustls"]