From 903e4c216d8932fe84438ea3f15f19fd173987ac Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Thu, 10 Sep 2026 14:55:46 -0700 Subject: [PATCH] feat: support standalone example crates --- playground/index.html | 7 +- playground/server.mjs | 80 ++++-- playground/src/main.ts | 241 ++++++++++++------ playground/src/style.css | 61 ++++- playground/workspace/Cargo.lock | 9 +- playground/workspace/Cargo.toml | 13 +- .../workspace/examples/error-type/Cargo.toml | 8 + .../workspace/examples/error-type/GUIDE.md | 9 + .../workspace/examples/error-type/src/main.rs | 5 + .../examples/error-type/src/report.rs | 6 + .../workspace/examples/proc-macro/Cargo.toml | 10 + .../workspace/examples/proc-macro/GUIDE.md | 9 + .../{ => examples/proc-macro}/src/main.rs | 5 +- .../{ => examples/proc-macro}/src/proof.rs | 0 14 files changed, 349 insertions(+), 114 deletions(-) create mode 100644 playground/workspace/examples/error-type/Cargo.toml create mode 100644 playground/workspace/examples/error-type/GUIDE.md create mode 100644 playground/workspace/examples/error-type/src/main.rs create mode 100644 playground/workspace/examples/error-type/src/report.rs create mode 100644 playground/workspace/examples/proc-macro/Cargo.toml create mode 100644 playground/workspace/examples/proc-macro/GUIDE.md rename playground/workspace/{ => examples/proc-macro}/src/main.rs (59%) rename playground/workspace/{ => examples/proc-macro}/src/proof.rs (100%) diff --git a/playground/index.html b/playground/index.html index 3b419e4c25c..84d20676bd4 100644 --- a/playground/index.html +++ b/playground/index.html @@ -24,7 +24,7 @@