Skip to content

Commit

Permalink
Workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwilding committed Oct 18, 2023
1 parent b1f057d commit 2989630
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# check status at https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
# we don't use `[build]` because of rust analyzer's build cache invalidation https://github.com/emilk/eframe_template/issues/93
[target.wasm32-unknown-unknown]
rustflags = ["--cfg=web_sys_unstable_apis"]
rustflags = ["--cfg=web_sys_unstable_apis"]
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ exclude = [
"frontend",
"runtimes/rust"
]

[workspace.package]
version = "0.1.0"
authors = ["Matthew Wilding <[email protected]>"]
homepage = "https://mbwilding.github.io/lambda-benchmark"
repository = "https://github.com/mbwilding/lambda-benchmark"
license = "MIT"
license-file = "LICENSE"
readme = "README.md"
keywords = ["lambda", "aws", "performance", "benchmark", "rust"]
description = "A framework for benchmarking AWS Lambda functions"
10 changes: 8 additions & 2 deletions report_generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use serde_json::Value;
use shared::s3::{delete_many, get_from_json, list, put};
use std::collections::BTreeMap;
use tracing::{debug, info};
use tracing::info;

#[derive(Debug, Deserialize)]
struct Run {
Expand Down Expand Up @@ -64,7 +64,13 @@ async fn func(_event: LambdaEvent<Value>) -> Result<()> {
let grouped = group_and_sort(&runs);

let today = chrono::Utc::now().format("%Y-%m-%d").to_string();
put(&s3, &bucket_name_public, &format!("reports/{}.json", today), &grouped).await?;
put(
&s3,
&bucket_name_public,
&format!("reports/{}.json", today),
&grouped,
)
.await?;
put(
&s3,
&bucket_name_public,
Expand Down

0 comments on commit 2989630

Please sign in to comment.