Skip to content

Commit

Permalink
Update dependencies (#10)
Browse files Browse the repository at this point in the history
* Update uuid

* Update dependencies
  • Loading branch information
quambene committed Apr 6, 2024
1 parent ae04689 commit dc45444
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ polars = { version = "0.32", features = ["dtype-u8"] }
connectorx = { version = "0.3.2", features = ["src_postgres", "dst_arrow2"] }
postgres = "0.19.2"
url = "2.5"
uuid = { version = "0.8", features = ["v4"] }
uuid = { version = "1.8", features = ["v4"] }
lettre = { version = "0.11", default-features = false, features = ["builder", "pool", "smtp-transport", "file-transport", "rustls-tls"] }
infer = "0.15"
bytes = "1.6"
base64 = "0.13"
base64 = "0.22"

[dev-dependencies]
assert_cmd = "2.0.14"
Expand Down
3 changes: 2 additions & 1 deletion src/email_provider/aws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use crate::{
utils::format_green,
};
use anyhow::{Context, Result};
use base64::{engine::general_purpose::STANDARD as BASE64, Engine};
use bytes::Bytes;
use clap::ArgMatches;
use rusoto_core::{HttpClient, Region};
Expand Down Expand Up @@ -59,7 +60,7 @@ impl<'a> SendEmail<'a> for AwsSesClient {
#[tokio::main]
async fn send(&self, email: &'a Email<'a>) -> Result<SentEmail<'a>, anyhow::Error> {
let raw_message = RawMessage {
data: Bytes::from(base64::encode(email.mime_format.message.formatted())),
data: Bytes::from(BASE64.encode(email.mime_format.message.formatted())),
};
let request = SendRawEmailRequest {
raw_message,
Expand Down
2 changes: 1 addition & 1 deletion src/sources/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn write_image(
),
};

let image_name = image_name.unwrap_or(Uuid::new_v4().to_hyphenated().to_string());
let image_name = image_name.unwrap_or(Uuid::new_v4().to_string());
let target_file = image_name + "." + file_type;
let target_path = target_dir.join(target_file);

Expand Down

0 comments on commit dc45444

Please sign in to comment.