migrate remaining FastEdge-examples to rust-sdk#60
Merged
Conversation
Contributor
There was a problem hiding this comment.
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) andsmart_switch(SmartThings toggle). - Added new CDN/proxy-wasm examples:
jwt,md2html,convert_image,custom_error_pages, andgeoblock. - 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.
qrdl
approved these changes
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.