-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathCargo.toml
62 lines (56 loc) · 1.71 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
[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"]
# 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.11", optional = true }
#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
archiver-rs = { git = "https://github.com/gz/archiver-rs.git", branch = "patch-1" }
sqlx_tokio = { version = "0.6", features = [
"runtime-tokio-rustls",
"postgres",
"migrate",
], package = "sqlx", optional = true }
zip = "0.6"
log = "0.4"
dirs = "5.0.1"
bytes = "1.0"
lazy_static = "1.4"
async-trait = "0.1"
[dev-dependencies]
serial_test = "2.0.0"
env_logger = "0.10"
[[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"]