Skip to content

Commit 404bdb1

Browse files
committed
[2.0.0 release] Update outdated deps
``` Bindgen 0.56 -> 0.59 Proptest 0.10 -> 1.0 sdl2 0.34 -> 0.35 ``` Set minimum Rust Compatible test to be 1.47.
1 parent 4561970 commit 404bdb1

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ rust-compat:
2525
stage: build
2626
image: yottadb/yottadb-base:latest-master
2727
script:
28-
- rustup toolchain install 1.46.0
29-
- rustup default 1.46.0
28+
- rustup toolchain install 1.47.0
29+
- rustup default 1.47.0
3030
- cargo build --verbose
3131

3232
rust-latest:

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#################################################################
22
# #
3-
# Copyright (c) 2019-2021 YottaDB LLC and/or its subsidiaries. #
3+
# Copyright (c) 2019-2022 YottaDB LLC and/or its subsidiaries. #
44
# All rights reserved. #
55
# #
66
# This source code contains the intellectual property #
@@ -42,7 +42,7 @@ opt-level = 0
4242
pkg-config = "0.3"
4343

4444
[build-dependencies.bindgen]
45-
version = "0.56"
45+
version = "0.59"
4646
optional = true
4747
default-features = false
4848
features = ['runtime']
@@ -53,11 +53,11 @@ threadpool = "1.7"
5353
rand = "0.8"
5454
num_cpus = "1"
5555
tokio = { version = "1", features = ["rt"], default-features = false }
56-
proptest = "0.10"
56+
proptest = "1.0"
5757
once_cell = "1"
5858

5959
[dev-dependencies.sdl2]
60-
version = "0.34"
60+
version = "0.35"
6161
features = ["gfx", "ttf"]
6262

6363
[[bench]]

build.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ fn generate_bindings_via_library(include_path: String, out_path: &Path) {
4646
bindgen::Builder::default()
4747
.header("wrapper.h")
4848
.clang_arg(include_path)
49-
.whitelist_type("ydb_.*")
50-
.whitelist_function("ydb_.*")
51-
.whitelist_var("YDB_.*")
49+
.allowlist_type("ydb_.*")
50+
.allowlist_function("ydb_.*")
51+
.allowlist_var("YDB_.*")
5252
// for `ydb_lock`
53-
.whitelist_type("gparam_list.*")
54-
.whitelist_var("MAX_GPARAM_LIST_ARGS")
55-
.blacklist_item("YDB_NOTTP")
53+
.allowlist_type("gparam_list.*")
54+
.allowlist_var("MAX_GPARAM_LIST_ARGS")
55+
.blocklist_item("YDB_NOTTP")
5656
// Finish the builder and generate the bindings.
5757
.generate()
5858
// Unwrap the Result and panic on failure.
@@ -68,12 +68,12 @@ fn generate_bindings_via_cli(include_path: String, out_path: &Path) {
6868
#[rustfmt::skip] // rustfmt doesn't know the arguments are related
6969
let args = [
7070
"wrapper.h",
71-
"--whitelist-type", "ydb_.*",
72-
"--whitelist-function", "ydb_.*",
73-
"--whitelist-var", "YDB_.*",
74-
"--whitelist-type", "gparam_list.*",
75-
"--whitelist-var", "MAX_GPARAM_LIST_ARGS",
76-
"--blacklist-item", "YDB_NOTTP",
71+
"--allowlist-type", "ydb_.*",
72+
"--allowlist-function", "ydb_.*",
73+
"--allowlist-var", "YDB_.*",
74+
"--allowlist-type", "gparam_list.*",
75+
"--allowlist-var", "MAX_GPARAM_LIST_ARGS",
76+
"--blocklist-item", "YDB_NOTTP",
7777
// This was a String originally, so it's safe to unwrap.
7878
// It only went through `Path` so that the file separator would be right.
7979
"--output", out_path.to_str().unwrap(),

0 commit comments

Comments
 (0)