-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
52 lines (46 loc) · 2.09 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
[package]
name = "database-schema"
version = "0.2.0"
edition = "2021"
description = "A library to dump a database schema into a file in SQL format"
documentation = "https://docs.rs/database-schema"
authors = ["Norberto Lopes <[email protected]>"]
repository = "https://github.com/nlopes/database-schema.git"
homepage = "https://github.com/nlopes/database-schema.git"
license = "MIT OR Apache-2.0"
keywords = ["database", "schema", "structuresql"]
categories = ["database", "web-programming"]
exclude = [".gitignore", ".github/", "README.tpl"]
[workspace]
members = [".", "examples/*"]
default-members = ["."]
resolver = "2"
[features]
default = ["native-tls"]
sqlx = ["dep:sqlx"]
diesel = ["dep:diesel", "dep:diesel_migrations"]
macros = []
runtime-async-std = ["sqlx?/runtime-async-std", "dep:async-std"]
runtime-tokio = ["sqlx?/runtime-tokio", "dep:tokio"]
sqlite = ["sqlx?/sqlite", "diesel?/sqlite", "diesel_migrations?/sqlite"]
mysql = ["sqlx?/mysql", "diesel?/mysql", "diesel_migrations?/mysql", "url", "percent-encoding"]
postgres = ["sqlx?/postgres", "diesel?/postgres", "url", "percent-encoding"]
native-tls = ["sqlx?/tls-native-tls"]
rustls = ["sqlx?/tls-rustls"]
[dependencies]
async-std = { version = "1", optional = true } # this has to include default due to task::block_on usage
chrono = { version = "0.4", features = ["clock"], default-features = false }
diesel = { version = "2.1", optional = true, default-features = false }
diesel_migrations = { version = "2.1", optional = true, default-features = false}
http = "1.0.0"
percent-encoding = { version = "2.3", optional = true }
sqlx = { version = "0.7", features = ["migrate", "macros"], optional = true, default-features = false }
thiserror = "1"
tokio = { version = "1", features = ["rt-multi-thread"], optional = true, default-features = false }
tracing = { version = "0.1", default-features = false }
url = { version = "2.5", optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["rt", "macros"], default-features = false }
[package.metadata.docs.rs]
features = ["sqlite", "sqlx", "macros", "runtime-async-std"]
rustdoc-args = ["--cfg", "docsrs"]