forked from pgcentralfoundation/pgrx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
101 lines (88 loc) · 2.43 KB
/
Cargo.toml
File metadata and controls
101 lines (88 loc) · 2.43 KB
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
92
93
94
95
96
97
98
99
100
101
#LICENSE Portions Copyright 2019-2021 ZomboDB, LLC.
#LICENSE
#LICENSE Portions Copyright 2021-2023 Technology Concepts & Design, Inc.
#LICENSE
#LICENSE Portions Copyright 2023-2023 PgCentral Foundation, Inc. <[email protected]>
#LICENSE
#LICENSE All rights reserved.
#LICENSE
#LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file.
[package]
name = "pgrx-tests"
version = "0.17.0"
authors.workspace = true
license.workspace = true
description = "Test framework for 'pgrx'-based Postgres extensions"
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/pgrx-tests"
readme = "README.md"
edition.workspace = true
include = ["src/**/*", "README.md", "!**/tests/**/*"]
[lib]
crate-type = ["cdylib", "lib"]
[[bin]]
name = "pgrx_embed_pgrx-tests"
path = "./src/bin/pgrx_embed.rs"
[features]
default = ["proptest"]
pg13 = ["pgrx/pg13"]
pg14 = ["pgrx/pg14"]
pg15 = ["pgrx/pg15"]
pg16 = ["pgrx/pg16"]
pg17 = ["pgrx/pg17"]
pg18 = ["pgrx/pg18"]
pg_test = []
proptest = ["dep:proptest"]
cshim = ["pgrx/cshim"]
no-schema-generation = [
"pgrx/no-schema-generation",
"pgrx-macros/no-schema-generation",
]
nightly = ["pgrx/nightly"]
[package.metadata.docs.rs]
features = ["pg14", "proptest"]
no-default-features = true
targets = ["x86_64-unknown-linux-gnu"]
# Enable `#[cfg(docsrs)]` (https://docs.rs/about/builds#cross-compiling)
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
pgrx-macros.workspace = true
pgrx-pg-config.workspace = true
clap-cargo.workspace = true
eyre.workspace = true
libc.workspace = true
owo-colors.workspace = true
regex.workspace = true
serde.workspace = true
serde_json.workspace = true
shlex.workspace = true
thiserror.workspace = true
paste = "1"
postgres = "0.19.10"
proptest = { version = "1", optional = true }
tempfile = "3.19.1"
sysinfo = "0.34.2"
rand = "0.9.3"
[dependencies.pgrx] # Not unified in workspace due to default-features key
path = "../pgrx"
default-features = false
version = "=0.17.0"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3.9", features = [
"securitybaseapi",
"minwinbase",
"namedpipeapi",
"winbase",
"winerror",
"winnt",
] }
[dev-dependencies]
eyre.workspace = true # testing functions that return `eyre::Result`
trybuild = "1"
[lints.rust]
unused-lifetimes = "deny"
unsafe-op-in-unsafe-fn = "allow"
[lints.clippy]
used-underscore-binding = "deny"