Skip to content

Add Rust environment to the catalog and docs#293

Merged
sanketsudake merged 2 commits into
mainfrom
add-rust-environment
Jun 8, 2026
Merged

Add Rust environment to the catalog and docs#293
sanketsudake merged 2 commits into
mainfrom
add-rust-environment

Conversation

@sanketsudake

Copy link
Copy Markdown
Member

Adds the Rust environment to fission.io, following the merge of fission/environments#453.
The rust-env runtime and rust-builder images are live on GHCR (multi-arch).

Changes

  • Environments catalog (static/data/environments.json): new Rust card with the rust-env + rust-builder image pair (regenerated via tools/environments.py).
  • tools/environments.py: map rust-envRust in image_dict so the generator recognizes the new env.
  • Language guide (content/en/docs/usage/languages/rust.md): full usage guide — environment setup, writing functions, dependencies. Rust functions compile to native axum/tokio server binaries.
  • Supported-languages table (content/en/docs/usage/languages/_index.md): new Rust row.
  • Homepage (content/en/_index.html): language mentions now include Rust.
  • Logo (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).
  • Rust card present in the built /environments/ page with the real logo and rust-env/rust-builder badges.

🤖 Generated with Claude Code

- 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>
@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for fission-website ready!

Name Link
🔨 Latest commit b3da7a0
🔍 Latest deploy log https://app.netlify.com/projects/fission-website/deploys/6a26422c81a0820008caf7f2
😎 Deploy Preview https://deploy-preview-293--fission-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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 {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[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

@sanketsudake sanketsudake merged commit 920eadc into main Jun 8, 2026
9 checks passed
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.

1 participant