49 releases (9 breaking)

new 0.10.3 Jun 11, 2025
0.9.0 Jun 3, 2025
0.2.16 Mar 31, 2025

#17 in Android

Download history 407/week @ 2025-02-19 490/week @ 2025-02-26 32/week @ 2025-03-05 14/week @ 2025-03-12 248/week @ 2025-03-19 252/week @ 2025-03-26 147/week @ 2025-04-02 24/week @ 2025-04-09 649/week @ 2025-04-16 534/week @ 2025-04-23 176/week @ 2025-04-30 543/week @ 2025-05-07 212/week @ 2025-05-14 9/week @ 2025-05-21 366/week @ 2025-05-28 458/week @ 2025-06-04

1,165 downloads per month
Used in deft-video

MIT license

1MB
26K SLoC

Introduction

Deft is a framework for building desktop and mobile applications with Rust and JavaScript.

crates.io

Features

  • Hybrid programming with Rust and JavaScript
  • Non-webview core
  • Unified JavaScript engine and rendering engine
  • Themes support
  • Support React/Vue/Solid or any framework that supports custom render

Limits

  • Not all CSS properties are supported, see documentation for more details.
  • Accessibility is not yet available.
  • JavaScript debugger is not yet available.

Component Gallery

Quick Start

npm create deft@latest hello-deft
cd hello-deft
npm install
npm run dev

Documentation

Demos

Platforms

Platform Versions Supported
Windows 10+
Linux X11 & Wayland
MacOS 10.12+
HarmonyOS 5+ ✅experimental
Android 6+ ✅experimental
iOS - ✅experimental
Web -

Develop

Prerequisites

Make sure Rust, Node.js and Clang14+ installed.

Some extra packages need to be installed on Linux.

apt install build-essential libssl-dev libclang-dev libc++-dev \
    xorg-dev libxcb-xfixes0-dev libxcb-shape0-dev libdbus-1-dev \
    libasound2-dev libegl-dev libgles-dev librust-wayland-egl-dev

Run demo

cargo run --example demo

License

MIT

Dependencies

~43–105MB
~2M SLoC