Add Rust environment to the catalog and docs#293
Conversation
- environments catalog: rust-env + rust-builder card (generated) - tools/environments.py: map rust-env -> Rust - new language guide content/en/docs/usage/languages/rust.md - supported-languages table + homepage language mentions - optimized rust logo Follows the merge of fission/environments#453 (rust-env + rust-builder images live on GHCR multi-arch). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for fission-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| use fission_rust::IntoResponse; | ||
| use fission_rust::axum::http::HeaderMap; | ||
|
|
||
| pub async fn handler(headers: HeaderMap) -> impl IntoResponse { |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
It appears that a white space is missing. (SPACE_BEFORE_PARENTHESIS[1])
Suggestions: (
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/SPACE_BEFORE_PARENTHESIS?lang=en-US&subId=1
Category: TYPOGRAPHY
| ```rust | ||
| use fission_rust::IntoResponse; | ||
|
|
||
| pub async fn handler(body: String) -> impl IntoResponse { |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
It appears that a white space is missing. (SPACE_BEFORE_PARENTHESIS[1])
Suggestions: (
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/SPACE_BEFORE_PARENTHESIS?lang=en-US&subId=1
Category: TYPOGRAPHY
| ``` | ||
|
|
||
| ```bash | ||
| $ curl -X POST http://$FISSION_ROUTER/<url> -d foobar |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: foobar
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
Recommend pinning the fission-rust git dependency to a commit with rev for reproducible builds, and note the builder fetches it over the network at build time (builder egress required). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
| use fission_rust::axum::Json; | ||
| use serde_json::Value; | ||
|
|
||
| async fn handler(body: String) -> impl IntoResponse { |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
It appears that a white space is missing. (SPACE_BEFORE_PARENTHESIS[1])
Suggestions: (
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/SPACE_BEFORE_PARENTHESIS?lang=en-US&subId=1
Category: TYPOGRAPHY
| async fn handler(body: String) -> impl IntoResponse { | ||
| let value: Value = serde_json::from_str(&body) | ||
| .unwrap_or_else(|_| Value::String(body)); | ||
| Json(value) |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
It appears that a white space is missing. (SPACE_BEFORE_PARENTHESIS[1])
Suggestions: (
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/SPACE_BEFORE_PARENTHESIS?lang=en-US&subId=1
Category: TYPOGRAPHY
| .ok().and_then(|p| p.parse().ok()).unwrap_or(8889); | ||
| let app = Router::new().route("/", get(|| async { "Hello!\n" })); | ||
| let listener = tokio::net::TcpListener::bind(("127.0.0.1", port)).await.unwrap(); | ||
| axum::serve(listener, app).await.unwrap(); |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
It appears that a white space is missing. (SPACE_BEFORE_PARENTHESIS[1])
Suggestions: (
URL: https://languagetool.org/insights/post/punctuation-guide/#what-are-parentheses
Rule: https://community.languagetool.org/rule/show/SPACE_BEFORE_PARENTHESIS?lang=en-US&subId=1
Category: TYPOGRAPHY
|
|
||
| ### How it works | ||
|
|
||
| The runtime image runs a small supervisor that implements the Fission environment interface. |
There was a problem hiding this comment.
[LanguageTool] reported by reviewdog 🐶
A comma is probably missing here. (MISSING_COMMA_AFTER_INTRODUCTORY_PHRASE[1])
Suggestions: specialization,
URL: http://englishplus.com/grammar/00000074.htm
Rule: https://community.languagetool.org/rule/show/MISSING_COMMA_AFTER_INTRODUCTORY_PHRASE?lang=en-US&subId=1
Category: PUNCTUATION
Adds the Rust environment to fission.io, following the merge of fission/environments#453.
The
rust-envruntime andrust-builderimages are live on GHCR (multi-arch).Changes
static/data/environments.json): new Rust card with therust-env+rust-builderimage pair (regenerated viatools/environments.py).tools/environments.py: maprust-env→Rustinimage_dictso the generator recognizes the new env.content/en/docs/usage/languages/rust.md): full usage guide — environment setup, writing functions, dependencies. Rust functions compile to native axum/tokio server binaries.content/en/docs/usage/languages/_index.md): new Rust row.content/en/_index.html): language mentions now include Rust.static/images/lang-logo/rust-logo.svg): optimized (svgo, ~3.9 KB), from rust-lang/rust-artwork (CC-BY).Verification
./build.sh(hugo --minify --gc) clean — 527 pages, exit 0, no errors./docs/usage/languages/rust/renders (title, content, no broken refs)./environments/page with the real logo andrust-env/rust-builderbadges.🤖 Generated with Claude Code