You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support for the new Rust function runtime template in function creation flows.
Updates the SDK dependency to the commit that includes the Rust runtime enum.
Shows Rust in the starter quick-start runtime list when the API exposes rust-1.83.
Selects and validates template/deploy runtimes from API-provided runtimes instead of guessing from enum string prefixes.
Adds Rust runtime icons for light/dark color and grayscale themes.
Applies the same safer runtime fallback behavior to public function deploy links.
Test Plan
bun run format
bun run check
bun run lint
bun run build
Local Appwrite endpoints return rust-1.83 in /v1/functions/runtimes and starter template runtimes after enabling _APP_FUNCTIONS_RUNTIMES=node-22,rust-1.83.
Playwright walkthrough against local Appwrite — see screenshots below.
Screenshots
1. Quick start — Rust card in runtime list
The starter quick-start now lists Rust alongside Node.js when the API exposes rust-1.83, with the new color icon.
Navigating to the starter template with runtime=rust-1.83 resolves the runtime via the API list and preselects Rust - 1.83 (form field and right-hand summary).
3. Manual create — runtime dropdown shows Rust
Manual function create exposes Rust - 1.83 in the runtime dropdown, sourced from the API runtimes list.
4. Public /functions/deploy — Rust runtime preselected
The public deploy link resolves runtime=rust-1.83 against API-provided runtimes (no more enum prefix guessing) and preselects Rust - 1.83.
This PR adds Rust (rust-1.83) function runtime support by updating the SDK dependency, adding four Rust SVG icon variants, migrating template-[template]/+page.svelte to Svelte 5 runes, and switching runtime resolution across all creation flows to validate against the API-provided runtime list instead of guessing from enum string prefixes. The logic changes are well-reasoned and the safer fallback behaviour in the public deploy flow is a solid improvement.
Confidence Score: 5/5
Safe to merge — no P0 or P1 issues; only P2 style/migration observations.
All identified issues are P2: the $state(writable(...)) mix is non-breaking, and the connectBehaviour effect behaviour matches the previous Svelte 4 version. Core runtime resolution and icon lookup logic is correct and tested per the PR description.
template-[template]/+page.svelte for the isSubmitting runes/store mix and the connectBehaviour effect.
Important Files Changed
Filename
Overview
src/lib/stores/runtimes.ts
Made runtime parameter optional, added early-return guard, and added 6 new runtime icon mappings (dotnet, java, swift, kotlin, cpp, rust). Correct switch(true) logic.
Replaces prefix-split deduplication with runtime.key-based Map, filters starter cards from API runtimes, removes .slice(0,6) cap. Correct, but key-based last-write-wins and removed grid cap were flagged in prior review.
Partially migrated to Svelte 5 runes; new selectInitialRuntime() validates runtimes against API list. isSubmitting = $state(writable(false)) is an unusual runes+store mix but not broken.
src/routes/(public)/functions/deploy/+page.ts
Runtimes API call moved before deployment data construction, adds redirect guard when no runtimes are available, and validates URL runtime param against API list instead of hardcoding node-18.0.
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
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.
What does this PR do?
Adds support for the new Rust function runtime template in function creation flows.
rust-1.83.Test Plan
bun run formatbun run checkbun run lintbun run buildrust-1.83in/v1/functions/runtimesand starter template runtimes after enabling_APP_FUNCTIONS_RUNTIMES=node-22,rust-1.83.Screenshots
1. Quick start — Rust card in runtime list
The starter quick-start now lists Rust alongside Node.js when the API exposes
rust-1.83, with the new color icon.2.
template-starter?runtime=rust-1.83— runtime preselectedNavigating to the starter template with
runtime=rust-1.83resolves the runtime via the API list and preselectsRust - 1.83(form field and right-hand summary).3. Manual create — runtime dropdown shows Rust
Manual function create exposes
Rust - 1.83in the runtime dropdown, sourced from the API runtimes list.4. Public
/functions/deploy— Rust runtime preselectedThe public deploy link resolves
runtime=rust-1.83against API-provided runtimes (no more enum prefix guessing) and preselectsRust - 1.83.Related Issue
#XXXX