Skip to content

Developers

This section is for people working on yugui itself. To build apps with it, start with Get started.

The code

yugui is a Python package with a Rust extension, built with maturin:

  • src/yugui/: the Python API. The widget functions in widgets.py return Nodes; app.py holds App and run; testing.py holds the test driver.
  • rust/: the extension, yugui._native. build.rs turns nodes into iced widgets, app.rs runs the iced application, message.rs carries messages back to Python, and testing.rs runs views headlessly for the driver.
  • tests/: the test suite, which drives apps through the real widgets.
  • examples/: the example apps, which the tests also run.
  • docs/: this site.

How yugui works explains how the parts fit together.

Pages

  • Setup and checks: build from source, run the tests and linters, and rebuild after changing Rust code.
  • Releases: how wheels are built for each platform.
  • Writing the docs: how this site is built, and where its screenshots and diagrams come from.