Skip to content

Commit 041f383

Browse files
mathstufkwrobot
authored andcommitted
Merge topic 'update-deps'
dc1aae9 cargo: update `reqwest` and `http` bf91e1a cargo: update mindeps floor dependencies de8b473 cargo: update `graphql_client` 801dcbc cargo: update `derive_builder` bbc6a06 cargo: update `base64` 8de507a cargo: update `itertools` Acked-by: Kitware Robot <[email protected]> Tested-by: buildbot <[email protected]> Merge-request: !462
2 parents 553461b + dc1aae9 commit 041f383

File tree

4 files changed

+26
-23
lines changed

4 files changed

+26
-23
lines changed

.gitlab-ci.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ clippy-features:build:
9898
.cargo_audit_ignore:
9999
variables:
100100
# Ignored advisories
101-
#
102-
# Use-after-free due to a lifetime error in `Vec::into_iter()`
103-
# https://rustsec.org/advisories/RUSTSEC-2022-0078
104-
#
105-
# Ascii allows out-of-bounds array indexing in safe code (mindeps)
106-
# https://rustsec.org/advisories/RUSTSEC-2023-0015
107-
CARGO_AUDIT_ARGS: --ignore RUSTSEC-2022-0078 --ignore RUSTSEC-2023-0015
101+
CARGO_AUDIT_ARGS: ""
108102

109103
semver-checks:prep:
110104
extends:

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v0.1610.1 (unreleased)
2+
3+
## Breaking changes
4+
5+
* GraphQL support has been updated to use `graphql_client` 0.14.
6+
* The `http` crate has been updated to 1.x.
7+
18
# v0.1610.0
29

310
## Additions

Cargo.toml

+13-15
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ client_api = [
2828
]
2929
client_der = ["reqwest/native-tls", "client_api"]
3030
client_pem = ["reqwest/rustls-tls", "client_api"]
31-
minimal_versions = ["void", "openssl", "tempfile", "h2", "memoffset", "mio", "rustls", "rustls-webpki"]
31+
minimal_versions = ["void", "openssl", "tempfile", "mio", "rustls", "bumpalo", "combine"]
3232
# This feature is here to aid with `semver-checks` by hiding the known-unstable
3333
# parts of the crate.
3434
_nohooks = []
3535

3636
[dependencies]
37-
base64 = "~0.13"
37+
base64 = "~0.22"
3838
cron = { version = "~0.12", optional = true }
39-
derive_builder = "~0.11.2"
40-
itertools = { version = "~0.10", optional = true }
39+
derive_builder = "~0.20"
40+
itertools = { version = "~0.12", optional = true }
4141
log = "~0.4.6"
4242
percent-encoding = { version = "^2.0", optional = true }
43-
reqwest = { version = "~0.11.19", features = ["blocking", "json"], default-features = false, optional = true }
43+
reqwest = { version = "~0.12", features = ["blocking", "json"], default-features = false, optional = true }
4444
thiserror = { version = "^1.0.2", optional = true }
4545
async-trait = { version = "~0.1.9", optional = true }
4646
futures-util = { version = "0.3.14", default-features = false, optional = true }
4747

4848
bytes = "^1.0"
4949
chrono = { version = "~0.4.23", default-features = false, features = ["clock", "serde"] }
50-
graphql_client = { version = "~0.11", optional = true }
51-
http = "~0.2.5"
50+
graphql_client = { version = "~0.14", optional = true }
51+
http = "^1"
5252
serde = { version = "~1.0.103", features = ["derive"] }
5353
serde_json = "^1.0.70"
5454
serde_urlencoded = "~0.7"
@@ -64,17 +64,15 @@ void = { version = "^1.0.1", optional = true }
6464
openssl = { version = "~0.10.60", optional = true }
6565
# Required to avoid `remove_dir_all` dependency.
6666
tempfile = { version = "^3.4.0", optional = true }
67-
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2024-0332
68-
h2 = { version = "0.3.26", optional = true }
69-
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2023-0045
70-
memoffset = { version = "0.6.2", optional = true }
7167
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2024-0019
7268
mio = { version = "0.8.11", optional = true }
73-
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2023-0052
74-
rustls-webpki = { version = "0.101.4", optional = true }
7569
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2024-0336
76-
rustls = { version = "0.21.11", optional = true }
70+
rustls = { version = "0.22.4", optional = true }
71+
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2022-0078
72+
bumpalo = { version = "3.11.1", optional = true }
73+
# Required to avoid https://rustsec.org/advisories/RUSTSEC-2023-0015
74+
combine = { version = "3.6.2", optional = true }
7775

7876
[dev-dependencies]
79-
itertools = { version = "~0.10" }
77+
itertools = { version = "~0.12" }
8078
tokio = { version = "1.18.5", features = ["macros", "rt-multi-thread"] }

src/api/projects/repository/files/create.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use std::str;
88

9+
use base64::Engine;
910
use derive_builder::Builder;
1011
use log::warn;
1112

@@ -52,7 +53,10 @@ impl Encoding {
5253
panic!("attempting to encode non-utf8 content using text!");
5354
}
5455
},
55-
Encoding::Base64 => base64::encode(content).into(),
56+
Encoding::Base64 => {
57+
let engine = base64::engine::general_purpose::STANDARD;
58+
engine.encode(content).into()
59+
},
5660
}
5761
}
5862

0 commit comments

Comments
 (0)