-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathCargo.toml
139 lines (125 loc) · 3.91 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[package]
name = "pgwire"
version = "0.28.0"
edition = "2021"
authors = ["Ning Sun <[email protected]>"]
license = "MIT/Apache-2.0"
description = "Postgresql wire protocol implemented as a library"
keywords = ["database", "postgresql"]
categories = ["database"]
homepage = "https://github.com/sunng87/pgwire"
repository = "https://github.com/sunng87/pgwire"
documentation = "https://docs.rs/crate/pgwire/"
readme = "README.md"
rust-version = "1.75"
[dependencies]
derive-new = "0.7"
bytes = "1.1.0"
thiserror = "2"
## api
tokio = { version = "1.19", features = [
"net",
"rt",
"io-util",
], optional = true }
tokio-util = { version = "0.7.3", features = ["codec", "io"], optional = true }
tokio-rustls = { version = "0.26", optional = true, default-features = false, features = ["logging", "tls12"]}
rustls-pki-types = { version = "1.10", optional = true }
futures = { version = "0.3", optional = true }
async-trait = { version = "0.1", optional = true }
pin-project = { version = "1.1", optional = true }
rand = { version = "0.8", optional = true }
md5 = { version = "0.7", optional = true }
hex = { version = "0.4", optional = true }
## scram libraries
base64 = { version = "0.22", optional = true }
ring = { version = "0.17", optional = true }
aws-lc-rs = { version = "1.7", optional = true }
stringprep = { version = "0.1.2", optional = true }
x509-certificate = { version = "0.24", optional = true }
## types
postgres-types = { version = "0.2", features = [
"with-chrono-0_4",
"array-impls",
], optional = true }
chrono = { version = "0.4", features = ["std"], optional = true }
rust_decimal = { version = "1.35", features = ["db-postgres"], optional = true }
lazy-regex = {version = "3.3", default-features = false, features = ["lite"]}
## config
percent-encoding = { version = "2.0", optional = true }
[features]
default = ["server-api-aws-lc-rs"]
_ring = ["dep:ring", "tokio-rustls/ring"]
_aws-lc-rs = ["dep:aws-lc-rs", "tokio-rustls/aws-lc-rs"]
server-api = [
"dep:tokio",
"dep:tokio-util",
"dep:futures",
"dep:async-trait",
"dep:rand",
"dep:md5",
"dep:hex",
"dep:postgres-types",
"dep:chrono",
"dep:rust_decimal",
]
server-api-ring = ["server-api", "_ring"]
server-api-aws-lc-rs = ["server-api", "_aws-lc-rs"]
client-api = [
"dep:percent-encoding",
"dep:pin-project",
"dep:tokio",
"dep:tokio-util",
"dep:futures",
"dep:async-trait",
]
client-api-ring = ["client-api", "_ring", "dep:rustls-pki-types"]
client-api-aws-lc-rs = ["client-api", "_aws-lc-rs", "dep:rustls-pki-types"]
scram = ["dep:base64", "dep:stringprep", "dep:x509-certificate"]
_duckdb = []
_sqlite = []
_bundled = ["duckdb/bundled", "rusqlite/bundled"]
[dev-dependencies]
tokio = { version = "1.19", features = ["rt-multi-thread", "net", "macros"]}
rusqlite = { version = "0.32.1", features = ["column_decltype"] }
## for duckdb example
duckdb = { version = "1.0.0" }
## for loading custom cert files
rustls-pemfile = "2.0"
rustls-pki-types = "1.0"
## webpki-roots has mozilla's set of roots
## rustls-native-certs loads roots from current system
gluesql = { version = "0.16", default-features = false, features = ["gluesql_memory_storage"] }
[workspace]
members = [
".",
"tests-integration/rust-client",
"tests-integration/test-server"
]
[[example]]
name = "server"
required-features = ["server-api-aws-lc-rs"]
[[example]]
name = "secure_server"
required-features = ["server-api-aws-lc-rs"]
[[example]]
name = "bench"
required-features = ["server-api-aws-lc-rs"]
[[example]]
name = "gluesql"
required-features = ["server-api-aws-lc-rs"]
[[example]]
name = "sqlite"
required-features = ["server-api-aws-lc-rs", "_sqlite"]
[[example]]
name = "duckdb"
required-features = ["server-api-aws-lc-rs", "_duckdb"]
[[example]]
name = "copy"
required-features = ["server-api-aws-lc-rs"]
[[example]]
name = "scram"
required-features = ["server-api-aws-lc-rs", "scram"]
[[example]]
name = "transaction"
required-features = ["server-api-aws-lc-rs"]