Skip to content

Commit

Permalink
build(deps): bump base64 from 0.13.1 to 0.21.5 (#102)
Browse files Browse the repository at this point in the history
* build(deps): bump base64 from 0.13.1 to 0.21.5

Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.13.1 to 0.21.5.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](marshallpierce/rust-base64@v0.13.1...v0.21.5)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: don't use deprecated functions

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthijs Brobbel <[email protected]>
  • Loading branch information
dependabot[bot] and mbrobbel authored Dec 5, 2023
1 parent 5344842 commit 5e4f443
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
10 changes: 2 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ chrono = "0.4"
float-pretty-print = "0.1"

# Used by the HTML exporter.
base64 = "0.13"
base64 = "0.21"
percent-encoding = "2.3"

# Used for representing and checking Substrait versions.
Expand Down
3 changes: 2 additions & 1 deletion rs/src/export/html/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use crate::output::path;
use crate::output::tree;
use crate::output::type_system::data;
use crate::output::type_system::data::class::ParameterInfo;
use base64::{engine::general_purpose, Engine as _};

const HEADER1: &str = concat!(
r#"
Expand Down Expand Up @@ -622,7 +623,7 @@ pub fn export<T: std::io::Write>(
let path = path::Path::Root(root_name);

// Generate and write header.
let font_awesome_b64 = base64::encode(FONT_AWESOME);
let font_awesome_b64 = general_purpose::STANDARD.encode(FONT_AWESOME);
write!(out, "{HEADER1}{}{HEADER2}", font_awesome_b64)?;

// Emit metadata.
Expand Down

0 comments on commit 5e4f443

Please sign in to comment.