Skip to content

Commit 9a83196

Browse files
committed
Update dependencies
1 parent a943a0e commit 9a83196

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

codegen/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
authors = ["Steven Fackler <[email protected]>"]
55

66
[dependencies]
7-
phf_codegen = "0.7.22"
8-
regex = "0.1"
7+
phf_codegen = "0.8"
8+
regex = "1.3.1"
99
marksman_escape = "0.1"
10-
linked-hash-map = "0.4"
10+
linked-hash-map = "0.5"

codegen/src/sqlstate.rs

+7-9
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,15 @@ fn make_consts(codes: &LinkedHashMap<String, Vec<String>>, file: &mut BufWriter<
8282
}
8383

8484
fn make_map(codes: &LinkedHashMap<String, Vec<String>>, file: &mut BufWriter<File>) {
85-
write!(
86-
file,
87-
"
88-
#[rustfmt::skip]
89-
static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = "
90-
)
91-
.unwrap();
9285
let mut builder = phf_codegen::Map::new();
9386
for (code, names) in codes {
9487
builder.entry(&**code, &format!("SqlState::{}", &names[0]));
9588
}
96-
builder.build(file).unwrap();
97-
writeln!(file, ";").unwrap();
89+
write!(
90+
file,
91+
"
92+
#[rustfmt::skip]
93+
static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = \n{};\n",
94+
builder.build()
95+
).unwrap();
9896
}

postgres-protocol/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ base64 = "0.10"
1313
byteorder = "1.0"
1414
bytes = "0.4"
1515
fallible-iterator = "0.2"
16-
generic-array = "0.12"
16+
generic-array = "0.13"
1717
hmac = "0.7"
1818
md5 = "0.6"
1919
memchr = "2.0"
20-
rand = "0.6"
20+
rand = "0.7"
2121
sha2 = "0.8"
2222
stringprep = "0.1"

tokio-postgres/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ fallible-iterator = "0.2"
4141
futures-preview = { version = "=0.3.0-alpha.19", features = ["async-await"] }
4242
log = "0.4"
4343
parking_lot = "0.9"
44-
percent-encoding = "1.0"
44+
percent-encoding = "2.0"
4545
pin-project = "0.4"
46-
phf = "0.7.23"
46+
phf = "0.8"
4747
postgres-protocol = { version = "=0.5.0-alpha.1", path = "../postgres-protocol" }
4848
postgres-types = { version = "=0.1.0-alpha.1", path = "../postgres-types" }
4949
tokio = { version = "=0.2.0-alpha.6", default-features = false, features = ["io", "codec"] }
5050

5151
[dev-dependencies]
5252
tokio = "=0.2.0-alpha.6"
53-
env_logger = "0.5"
53+
env_logger = "0.7"
5454
criterion = "0.3"
5555

5656
bit-vec-06 = { version = "0.6", package = "bit-vec" }

0 commit comments

Comments
 (0)