This project attempts to implement a novel writing application based on the GPUI framework.
One line of "Hello World" has been written, success is just around the corner 😂.
GPUI-Wry attempts to combine GPUI with Tauri.
GPUI-Wry is like a "mini Tauri" that allows developers to build part of the UI using frontend apps while leveraging GPUI for the main GUI logic. The framework combines:
- GPUI: A Rust library for building GUI applications.
- GPUI Component: gpui-component implements a Webview component for GPUI based on Wry.
- Wry: A cross-platform Webview wrapper library.
With this combination, during GPUI development, you can embed WebViews anywhere in native windows.
GPUI-Wry aims to implement some of Tauri's capabilities, such as calling Rust functions from Webviews, to enable interaction between the two UI types. However, much of this work is just beginning.
Some Tauri code has been copied during implementation. Special thanks to Tauri for the inspiration.
The project includes an example application, very similar to Tauri's default example BUT BUILD ON GPUI.
Before you to run the example, you need to install the frontend app. Go to the directory of the example greet and run:
pnpm install
pnpm buildTo run the example, run at the root of the project:
# Run the greet example
cargo run --example greetMade with ❤️ using Tauri and GPUI