Skip to content

migrate remaining FastEdge-examples to rust-sdk#60

Merged
godronus merged 2 commits into
mainfrom
feature/migrate-examples
Apr 7, 2026
Merged

migrate remaining FastEdge-examples to rust-sdk#60
godronus merged 2 commits into
mainfrom
feature/migrate-examples

Conversation

@godronus
Copy link
Copy Markdown
Contributor

@godronus godronus commented Apr 7, 2026

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates additional FastEdge example applications into the Rust SDK examples tree, expanding both http/basic and cdn (proxy-wasm) sample coverage.

Changes:

  • Added two new synchronous HTTP examples: s3upload (signed S3 uploads) and smart_switch (SmartThings toggle).
  • Added new CDN/proxy-wasm examples: jwt, md2html, convert_image, custom_error_pages, and geoblock.
  • Updated the examples index (examples/README.md) to include the newly migrated examples.

Reviewed changes

Copilot reviewed 37 out of 42 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
examples/README.md Adds links for the newly migrated examples.
examples/http/basic/smart_switch/src/lib.rs New SmartThings toggle example (wrapping multiple API calls + redirect handling).
examples/http/basic/smart_switch/README.md Documents SmartThings toggle example configuration/flow.
examples/http/basic/smart_switch/Cargo.toml Declares SmartThings example crate + deps.
examples/http/basic/s3upload/src/lib.rs New S3 signed-URL upload example.
examples/http/basic/s3upload/README.md Documents S3 upload example configuration/usage.
examples/http/basic/s3upload/Cargo.toml Declares S3 upload example crate + deps.
examples/cdn/md2html/src/lib.rs New proxy-wasm markdown-to-HTML response transformation example.
examples/cdn/md2html/README.md Documents md2html CDN example.
examples/cdn/md2html/Cargo.toml Declares md2html crate + deps.
examples/cdn/jwt/src/lib.rs New proxy-wasm JWT validation on request headers.
examples/cdn/jwt/README.md Documents JWT validation CDN example.
examples/cdn/jwt/Cargo.toml Declares jwt crate + deps.
examples/cdn/geoblock/src/lib.rs New proxy-wasm geoblocking example with optional time window.
examples/cdn/geoblock/README.md Documents geoblock CDN example.
examples/cdn/geoblock/Cargo.toml Declares geoblock crate + deps.
examples/cdn/custom_error_pages/templates/error_page.hbs HTML template for error page rendering.
examples/cdn/custom_error_pages/src/lib.rs proxy-wasm error interception + Handlebars rendering implementation.
examples/cdn/custom_error_pages/README.md Documents custom error pages example and asset embedding approach.
examples/cdn/custom_error_pages/public/styles.css Embedded CSS for error pages.
examples/cdn/custom_error_pages/public/messages/5xx.hbs Default 5xx message template.
examples/cdn/custom_error_pages/public/messages/502.hbs 502-specific message template.
examples/cdn/custom_error_pages/public/messages/500.hbs 500-specific message template.
examples/cdn/custom_error_pages/public/messages/4xx.hbs Default 4xx message template.
examples/cdn/custom_error_pages/public/messages/404.hbs 404-specific message template.
examples/cdn/custom_error_pages/public/messages/400.hbs 400-specific message template.
examples/cdn/custom_error_pages/public/images/4xx.jpg Embedded fallback 4xx image asset.
examples/cdn/custom_error_pages/fixtures/502-bad-gateway.test.json Debug fixture for 502 behavior.
examples/cdn/custom_error_pages/fixtures/500-internal-server-error.test.json Debug fixture for 500 fallback behavior.
examples/cdn/custom_error_pages/fixtures/418-fallback.test.json Debug fixture for generic 4xx fallback.
examples/cdn/custom_error_pages/fixtures/404-not-found.test.json Debug fixture for 404 behavior.
examples/cdn/custom_error_pages/fixtures/400-bad-request.test.json Debug fixture for 400 behavior.
examples/cdn/custom_error_pages/fixtures/200-passthrough.test.json Debug fixture for 200 pass-through behavior.
examples/cdn/custom_error_pages/Cargo.toml Declares custom_error_pages crate + deps + build-deps.
examples/cdn/custom_error_pages/Cargo.lock Locks dependencies for the example crate.
examples/cdn/custom_error_pages/build.rs Build script to embed images/messages into generated Rust maps.
examples/cdn/convert_image/src/lib.rs New proxy-wasm AVIF conversion example.
examples/cdn/convert_image/README.md Documents convert_image CDN example.
examples/cdn/convert_image/Cargo.toml Declares convert_image crate + deps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread examples/cdn/convert_image/src/lib.rs
Comment thread examples/cdn/custom_error_pages/src/lib.rs
Comment thread examples/cdn/jwt/src/lib.rs
Comment thread examples/cdn/geoblock/src/lib.rs
Comment thread examples/http/basic/s3upload/src/lib.rs
Comment thread examples/http/basic/smart_switch/src/lib.rs
Comment thread examples/cdn/custom_error_pages/build.rs
Comment thread examples/http/basic/smart_switch/src/lib.rs
Comment thread examples/http/basic/smart_switch/src/lib.rs Outdated
Comment thread examples/cdn/custom_error_pages/src/lib.rs
@godronus godronus requested review from qrdl and ruslanti April 7, 2026 12:02
@godronus godronus merged commit a377ab5 into main Apr 7, 2026
3 checks passed
@godronus godronus deleted the feature/migrate-examples branch April 7, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants