forked from faokunega/pg-embed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
70 lines (62 loc) · 1.81 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 = "pg-embed"
version = "0.7.2"
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/faokunega/pg-embed"
documentation = "https://docs.rs/pg-embed"
description = "Run a Postgresql database locally on Linux, MacOS or Windows as part of another Rust application or test."
edition = "2018"
keywords = ["database", "postgres", "postgresql", "embedded", "server"]
categories = [
"database",
"database-implementations",
"development-tools",
"asynchronous",
]
authors = ["Franz-Aliu Okunega <aokunega@gmail.com>"]
[features]
default = ["rt_tokio_migrate", "native-tls"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls"]
# for now only rt_tokio or rt_tokio_migrate can be used
rt_tokio = ["tokio", "reqwest"]
rt_tokio_migrate = ["tokio", "reqwest", "sqlx_tokio"]
[dependencies]
reqwest = { version = "0.12", optional = true, default-features = false }
#reqwest = { version = "0.11", optional = true, default-features = false }
tokio = { version = "1", features = ["full"], optional = true }
futures = "0.3"
thiserror = "1.0"
# Waiting for https://github.com/JoyMoe/archiver-rs/pull/6
sqlx_tokio = { version = "0.6", features = [
"runtime-tokio-rustls",
"postgres",
"migrate",
], package = "sqlx", optional = true }
zip = "2"
log = "0.4"
dirs = "5"
bytes = "1.6"
lazy_static = "1.4"
async-trait = "0.1"
xz2 = "0.1"
tar = "0.4"
[dev-dependencies]
serial_test = "3"
env_logger = "0.11"
[[test]]
name = "migration_tokio"
path = "tests/migration_tokio.rs"
required-features = ["rt_tokio_migrate"]
[[test]]
name = "postgres_tokio1"
path = "tests/postgres_tokio.rs"
required-features = ["rt_tokio"]
[[test]]
name = "postgres_tokio2"
path = "tests/postgres_tokio.rs"
required-features = ["rt_tokio_migrate"]
[[example]]
name = "example"
required-features = ["rt_tokio_migrate"]