From ca799a5d2b510f54b86acb600c0e06c488655017 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 9 Jul 2025 17:03:59 +0200 Subject: [PATCH 1/2] docs: rename singular example route Signed-off-by: David Dal Busco --- docs/examples/functions/rust/{assertions.mdx => assertion.mdx} | 0 sidebars.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename docs/examples/functions/rust/{assertions.mdx => assertion.mdx} (100%) diff --git a/docs/examples/functions/rust/assertions.mdx b/docs/examples/functions/rust/assertion.mdx similarity index 100% rename from docs/examples/functions/rust/assertions.mdx rename to docs/examples/functions/rust/assertion.mdx diff --git a/sidebars.ts b/sidebars.ts index d10e44ab..87e7254d 100644 --- a/sidebars.ts +++ b/sidebars.ts @@ -120,7 +120,7 @@ const sidebars: SidebarsConfig = { "Examples of writing serverless functions in Rust for Juno. Includes patterns like custom assertions, data manipulation and calls." }, items: [ - "examples/functions/rust/assertions", + "examples/functions/rust/assertion", "examples/functions/rust/mutating-docs-with-hooks", "examples/functions/rust/generating-assets-with-hooks" ] From d319b3ba027d8b6292934f78c9db1bc1dd3d68f9 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 15:05:33 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=84=20Update=20LLMs.txt=20snapshot?= =?UTF-8?q?=20for=20PR=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .llms-snapshots/llms-full.txt | 2 +- .llms-snapshots/llms.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.llms-snapshots/llms-full.txt b/.llms-snapshots/llms-full.txt index ac7f3303..2ac46dc3 100644 --- a/.llms-snapshots/llms-full.txt +++ b/.llms-snapshots/llms-full.txt @@ -3113,7 +3113,7 @@ The following functions from `@junobuild/core` are used in this example: | `uploadFile` | Upload a file to storage | [`src/components/Modal.vue`](https://github.com/junobuild/create-juno/blob/main/templates/vue-example/src/components/Modal.vue) | [Upload file](/docs/build/storage/development.md#upload-file) | | `deleteAsset` | Delete a file from storage | [`src/components/Delete.vue`](https://github.com/junobuild/create-juno/blob/main/templates/vue-example/src/components/Delete.vue) | [Delete asset](/docs/build/storage/development.md#delete-asset) | -# Rust Assertions Example +# Rust Assertion Example This example demonstrates how to write a **custom assertion** in **Rust** for a Juno **serverless function**. It shows how to intercept and validate data operations—such as rejecting specific content—before it's written to the datastore. diff --git a/.llms-snapshots/llms.txt b/.llms-snapshots/llms.txt index e870e48c..470a74d7 100644 --- a/.llms-snapshots/llms.txt +++ b/.llms-snapshots/llms.txt @@ -58,7 +58,7 @@ Juno is your self-contained serverless platform for building full-stack web apps ## Examples - Functions - Rust -- [Rust Assertions Example](https://juno.build/docs/examples/functions/rust/assertions.md): An example demonstrating how to write custom assertions in Rust for Juno serverless functions. +- [Rust Assertions Example](https://juno.build/docs/examples/functions/rust/assertion.md): An example demonstrating how to write custom assertions in Rust for Juno serverless functions. - [Generating Assets with Rust Serverless Functions](https://juno.build/docs/examples/functions/rust/generating-assets-with-hooks.md): An example showing how to dynamically generate and store assets (like JSON) in Storage using Rust in Juno Satellites. - [Mutating Documents with Rust Hooks](https://juno.build/docs/examples/functions/rust/mutating-docs-with-hooks.md): An example demonstrating how to modify and re-save documents in Juno Satellites using Rust hooks.