forked from SeaQL/sea-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
91 lines (86 loc) · 2.68 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
[workspace]
members = [
".",
"tests/discovery/mysql",
"tests/discovery/postgres",
"tests/discovery/sqlite",
"tests/writer/mysql",
"tests/writer/postgres",
"tests/writer/sqlite",
"tests/live/mysql",
"tests/live/postgres",
"tests/live/sqlite",
"tests/migration",
]
[package]
name = "sea-schema"
version = "0.7.1"
authors = [ "Chris Tsang <[email protected]>" ]
edition = "2021"
description = "🌿 SQL schema definition and discovery"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/sea-schema"
repository = "https://github.com/SeaQL/sea-schema"
categories = ["database"]
keywords = ["database", "sql", "mysql", "postgres"]
[package.metadata.docs.rs]
features = ["default", "migration"]
rustdoc-args = ["--cfg", "docsrs"]
[lib]
name = "sea_schema"
path = "src/lib.rs"
[dependencies]
futures = { version = "0.3", optional = true }
sea-schema-derive = { version = "0.1.0", path = "sea-schema-derive" }
sea-query = { version = "^0.22.0" }
sea-orm = { git = "https://github.com/mibes404/sea-orm.git", default-features = false, features = ["macros"], optional = true }
clap = { version = "^2.33.3", optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
tracing = { version = "0.1", features = ["log"], optional = true }
dotenv = { version = "^0.15", optional = true }
async-trait = { version = "^0.1", optional = true }
async-std = { version = "^1", features = [ "attributes", "tokio1" ], optional = true }
serde = { version = "^1", features = ["derive"], optional = true }
sqlx = { version = "^0", optional = true }
log = { version = "^0.4", optional = true }
[features]
debug-print = ["log"]
default = ["mysql", "postgres", "discovery", "writer"]
mysql = []
postgres = []
sqlite = []
def = []
discovery = ["futures", "parser"]
parser = ["query"]
migration = [ "async-trait", "async-std", "sea-orm", "clap", "tracing-subscriber", "tracing", "dotenv", "debug-print" ]
query = ["def"]
writer = ["def"]
sqlx-dep = ["sqlx"]
sqlx-mysql = [
"mysql",
"futures",
"sqlx-dep",
"sea-query/sqlx-mysql",
"sqlx/mysql",
]
sqlx-postgres = [
"postgres",
"futures",
"sqlx-dep",
"sea-query/sqlx-postgres",
"sqlx/postgres",
]
sqlx-sqlite = [
"sqlite",
"futures",
"sqlx-dep",
"sea-query/sqlx-sqlite",
"sqlx/sqlite",
]
runtime-actix-native-tls = ["sqlx/runtime-actix-native-tls"]
runtime-async-std-native-tls = ["sqlx/runtime-async-std-native-tls"]
runtime-tokio-native-tls = ["sqlx/runtime-tokio-native-tls"]
runtime-actix-rustls = ["sqlx/runtime-actix-rustls"]
runtime-async-std-rustls = ["sqlx/runtime-async-std-rustls"]
runtime-tokio-rustls = ["sqlx/runtime-tokio-rustls"]
with-serde = ["serde"]