-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
73 lines (62 loc) · 2.12 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
[package]
name = "modql"
version = "0.4.2-WIP"
edition = "2021"
authors = ["Jeremy Chone <[email protected]>"]
license = "MIT OR Apache-2.0"
description = "Rust implementation for Model Query Language support"
categories = ["data-structures"]
keywords = [
"query-language",
"sea-query",
"model",
"data-model",
"graphql"
]
homepage = "https://github.com/jeremychone/rust-modql"
repository = "https://github.com/jeremychone/rust-modql"
resolver = "2"
[workspace.lints.rust]
unsafe_code = "forbid"
# unused = { level = "allow", priority = -1 } # For exploratory dev.
[lints.rust]
unsafe_code = "forbid"
unused = { level = "allow", priority = -1 } # For test files (dev)
[workspace]
members = [".", "modql-macros"]
[features]
# default = ["modql-macros", "with-sea-query", "with-rusqlite"] # for dev
default = ["modql-macros"]
with-sea-query = ["sea-query", "modql-macros/with-sea-query"]
with-rusqlite = ["rusqlite", "modql-macros/with-rusqlite"]
with-ilike = ["sea-query/backend-postgres"]
[dependencies]
modql-macros = { version="0.4", path = "modql-macros", optional=true}
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# -- For features
sea-query = { workspace = true, optional = true }
rusqlite = { workspace = true, optional = true }
[workspace.dependencies]
sea-query = { version = "0.32", features = ["thread-safe"] }
rusqlite = { version = "0.32" }
[dev-dependencies]
serde_with = "3"
pretty-sqlite = "0.0.2"
rusqlite = {version = "0.32", features = ["bundled"]}
sea-query-rusqlite = {version = "0.7"}
tokio = { version = "1", features = ["full"]}
sqlx = {version = "0.8", features = ["runtime-tokio"]}
sea-query-binder = {version = "0.7", features = ["sqlx-sqlite"]}
[[example]]
name = "c02-rusqlite-sea-query-select"
path = "examples/c02-rusqlite-sea-query-select.rs"
required-features = ["with-rusqlite", "with-sea-query"]
[[example]]
name = "c02-rusqlite-sea-query-join"
path = "examples/c02-rusqlite-sea-query-join.rs"
required-features = ["with-rusqlite", "with-sea-query"]
[[example]]
name = "c03-sqlx-sea-query-join"
path = "examples/c03-sqlx-sea-query-join.rs"
required-features = ["with-rusqlite", "with-sea-query"]