Skip to content

Commit af08cfd

Browse files
authored
Update base64 requirement from ^0.13 to ^0.20 (#95)
* Update base64 requirement from ^0.13 to ^0.20 Signed-off-by: Moritz Hedtke <[email protected]> * Add changelog entry for base64 dependency update Signed-off-by: Moritz Hedtke <[email protected]> Signed-off-by: Moritz Hedtke <[email protected]>
1 parent b46a73a commit af08cfd

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
- Github workflow for changelog verification ([#89](https://github.com/opensearch-project/opensearch-rs/pull/89))
77

88
### Changed
9+
- Update base64 dependency from ^0.13 to ^0.20 ([#95](https://github.com/opensearch-project/opensearch-rs/pull/95))
910

1011
### Deprecated
1112

@@ -16,4 +17,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1617
### Security
1718

1819

19-
[Unreleased]: https://github.com/opensearch-project/opensearch-rs/compare/2.0...HEAD
20+
[Unreleased]: https://github.com/opensearch-project/opensearch-rs/compare/2.0...HEAD

opensearch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rustls-tls = ["reqwest/rustls-tls"]
2929
aws-auth = ["aws-sigv4", "aws-types"]
3030

3131
[dependencies]
32-
base64 = "^0.13"
32+
base64 = "^0.20"
3333
bytes = "^1.0"
3434
dyn-clone = "~1"
3535
lazy_static = "1.4"

opensearch/src/http/transport.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ impl Transport {
414414
Credentials::ApiKey(i, k) => {
415415
let mut header_value = b"ApiKey ".to_vec();
416416
{
417-
let mut encoder = Base64Encoder::new(&mut header_value, base64::STANDARD);
417+
let mut encoder =
418+
Base64Encoder::from(&mut header_value, &base64::engine::DEFAULT_ENGINE);
418419
write!(encoder, "{}:", i).unwrap();
419420
write!(encoder, "{}", k).unwrap();
420421
}

yaml_test_runner/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "Apache-2.0"
1212
opensearch = { path = "../opensearch", features = ["experimental-apis"]}
1313
api_generator = { path = "./../api_generator" }
1414

15-
base64 = "^0.13"
15+
base64 = "^0.20"
1616
clap = "~2"
1717
failure = "0.1.6"
1818
itertools = "0.10.0"

0 commit comments

Comments
 (0)