Skip to content

The Rust API

Every public module, type, function and macro of the Weft crates, with its documentation. Most apps need only the weft crate and its prelude.

  • weft

    The framework in one crate: everything below, and the prelude.

  • weft_core

    Components, templates, scopes, rendering, routes and the virtual DOM.

  • weft_reactive

    Signals, memos, effects and owners.

  • weft_dsl

    The template language: lexer, parser, syntax tree, formatter and highlighter.

  • weft_ui

    The component library, its catalogue and testing helpers.

  • weft_data

    Data from APIs and files, and the integrations.

  • weft_web

    The browser: mounting, the DOM host, routing, fetch and timers.

  • weft_graphics

    2D canvases and 3D scenes.

  • weft_motion

    Animation: tweens, timelines and scroll.

  • weft_tailwind

    The Tailwind engine and themes.

  • weft_api

    Server routes, for Vercel and elsewhere.

  • weft_server

    The static file server.

  • weft_build

    The build step that turns app/ and components/ into routes.