DioxusLabs / DioxusLabs/dioxus

Cross platform dynamic assets

Open
#1,756 2 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Specific Demand

Different platforms deal with creating dynamic assets differently. Dioxus should provide a way to create a dynamic asset (like a generated image) that works on any platform.

## Implement Suggestion

Each renderer would need to implement dynamic assets differently:
- Web: use an [object url](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static)
- Liveview: use a temporary asset url
- Fullstack: use a temporary asset url on the server, then if it is dynamically created on the client use a object url
- Desktop: use an asset url based on https://github.com/DioxusLabs/dioxus/pull/1719

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing how each renderer currently handles asset URLs, then review the desktop approach in pull request 1719. Trace the web, Liveview, Fullstack, and desktop renderer entry points before defining a shared dynamic-asset API. Done means generated assets work through the proposed platform-specific mechanisms across those renderers.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.