Registry / web-framework / seed
library0.10.0rscratesunverified

A Rust framework for creating web apps using WebAssembly, providing a reactive UI model.

# Cargo.toml [dependencies] seed = "0.10.0"
INSTALL
IMPORT
SIG · SEED
S
seed
web-frameworkrustv0.10.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

App
use seed::prelude::*;

Creates a minimal Seed web app that displays 'Hello, Seed!'.

use seed::prelude::*; fn init(_: Url, _: &mut impl Orders<Msg>) -> Model { Model {} } struct Model; enum Msg {} fn view(_: &Model) -> Node<Msg> { div!["Hello, Seed!"] } #[wasm_bindgen(start)] pub fn start() { App::start("app", init, view); }
Debug
Known issues
gotchaRequires WebAssembly target and wasm-bindgen for compilation.
fix
Add `wasm32-unknown-unknown` target and use `wasm-pack` to build.
affects: >=0.0.0
Upgrade
Version history
0.10.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Amazon
1
Resources
seed — cargo add seed · libregistry