From 386a073ea094f7aa00c90657eb99dea6544d5b3e Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Sat, 16 Dec 2023 19:27:50 +0100 Subject: chore: use svg's to keep repo size smaller Signed-off-by: Henry Gressmann --- README.md | 2 +- crates/tinywasm/tests/charts/progress.rs | 2 +- crates/tinywasm/tests/mvp.rs | 2 +- crates/tinywasm/tests/progress-mvp.png | Bin 22419 -> 0 bytes crates/tinywasm/tests/progress-mvp.svg | 74 +++++++++++++++++++++++++++++++ 5 files changed, 77 insertions(+), 3 deletions(-) delete mode 100644 crates/tinywasm/tests/progress-mvp.png create mode 100644 crates/tinywasm/tests/progress-mvp.svg diff --git a/README.md b/README.md index 54127f3..ad2548e 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ I'm currently working on supporting the WebAssembly MVP (1.0) specification. You can see the current status in the graph below. The goal is to support all the features of the MVP specification and then move on to the next version.

- +

## Features diff --git a/crates/tinywasm/tests/charts/progress.rs b/crates/tinywasm/tests/charts/progress.rs index d52170b..6d18291 100644 --- a/crates/tinywasm/tests/charts/progress.rs +++ b/crates/tinywasm/tests/charts/progress.rs @@ -36,7 +36,7 @@ pub fn create_progress_chart(csv_path: &Path, output_path: &Path) -> Result<()> println!("versions: {:?}", versions); println!("data: {:?}", data); - let root_area = BitMapBackend::new(output_path, (1000, 400)).into_drawing_area(); + let root_area = SVGBackend::new(output_path, (1000, 400)).into_drawing_area(); root_area.fill(&WHITE)?; let mut chart = ChartBuilder::on(&root_area) diff --git a/crates/tinywasm/tests/mvp.rs b/crates/tinywasm/tests/mvp.rs index 0174fb7..e81e946 100644 --- a/crates/tinywasm/tests/mvp.rs +++ b/crates/tinywasm/tests/mvp.rs @@ -10,7 +10,7 @@ fn generate_charts() -> Result<()> { // Create a line chart charts::create_progress_chart( std::path::Path::new("./tests/mvp.csv"), - std::path::Path::new("./tests/progress-mvp.png"), + std::path::Path::new("./tests/progress-mvp.svg"), )?; // // Create a bar chart diff --git a/crates/tinywasm/tests/progress-mvp.png b/crates/tinywasm/tests/progress-mvp.png deleted file mode 100644 index e1e5e8a..0000000 Binary files a/crates/tinywasm/tests/progress-mvp.png and /dev/null differ diff --git a/crates/tinywasm/tests/progress-mvp.svg b/crates/tinywasm/tests/progress-mvp.svg new file mode 100644 index 0000000..7851f0a --- /dev/null +++ b/crates/tinywasm/tests/progress-mvp.svg @@ -0,0 +1,74 @@ + + + +MVP TESTSUITE + + +Tests Passed + + +TinyWasm Version + + + + + + + + + + + + +0 + + + +2000 + + + +4000 + + + +6000 + + + +8000 + + + +10000 + + + +12000 + + + +14000 + + + +16000 + + + + +v0.0.3 + + + +v0.0.4 + + + +v0.0.5-alpha.0 + + + + + + -- cgit v1.3.1