Rust Constructor V2
A cross-platform GUI framework built on egui as well as compatible with bevy, the simplest way to develop GUI projects with Rust
English | 简体中文
Table of Contents
- Version Update Information
- Overview
- Quick Start
- Purpose of Creating Rust Constructor
- FAQ
- License
- Epilogue
Version Update Information
- The current version is
v2.11.3 Big Compatibility Update.- This update added compatibility with
bevy, so now you can useRust Constructorinbevythroughbevy_egui! - Utility Changes
- Added
standard feature; when enabled, it remains the same as the previousRust Constructor; - Added
bevy feature; enabling it allows the use ofRust Constructorinbevy(Note: the twofeatures cannot be enabled simultaneously); - Added
ctx_adapter, used for compatibility with different versions ofegui's characteristics; - Improved some code.
- Added
- Breaking Changes
- Removed the dependency on
epaint, and instead calls directly fromeguiinternal; - Removed default
features for other dependencies, and added dependencies forbevy_assetandbevy_reflect; - Modified some content.
- Removed the dependency on
- This update added compatibility with
Overview
Rust Constructoris a comprehensive GUI framework that leverages the powerful features ofeguito provide a simple and intuitive tool for building cross-platform applications.- Based on
bevy_egui,Rust Constructoris also compatible withbevy, so you can use it directly inbevy. Rust Constructoris certainly not perfect. Currently, it still has problems such as poor writing logic and confusing usage methods. I will do my best to solve these problems.
Quick Start
- To introduce
Rust Constructor, please addrust_constructor = "x.y.z"(please replace xyz as needed) to yourtoml. - If you want to launch an
Appand perform some simple operations, it is recommended to refer to the official documentation of egui. - You can refer to the official tutorial of
Rust Constructor(not necessarily up-to-date) Rust Constructor Guide. - Here is a simple example:
run_native
.unwrap;
Purpose of Creating Rust Constructor
- In actual development, we often need to consider layout and resource presentation under different screen sizes, but most of
egui's built-in components are only suitable for quick development without fine-tuning, which does not meet my needs. Therefore, I developedRust Constructor.
FAQ
-
Q1: Which platforms does
Rust Constructorsupport? -
A1:
macOSandWindowshave been confirmed to be fully supported, other platforms depend onegui's support. -
Q2: Why is there only
V2ofRust Constructoroncrates.io? -
A2:
Rust Constructor V0andRust Constructor V1were essentially bloated projects with many redundant functions and meaningless code, so they were never released. -
Q3: What is the relationship between
Rust Constructorandegui? -
A3:
Rust Constructoris developed based onegui, but there is no relationship between the developers of both sides. -
Q4: What should I do if I encounter new resources that I don't know how to handle?
-
A4: Please first add it using
add_resourceorquick_place, then browse the source code to find methods related to that resource and try to use them. -
Q5: Does having
Rust Constructormean I can completely abandonegui? -
A5: Quite the opposite. During debugging, the clumsiness of
Rust Constructorprecisely needsegui's components to compensate. -
Q6: What is
discern_type? -
A6:
discern_typeis a string used to mark resource types, which is automatically created when adding resources, with the name the same as the resource name you used. -
Q7: Can I develop without using
Rust Constructor's components? -
A7: Of course you can. However,
Rust Constructor's advanced front-end resources do provide some practical functions that may not be replaceable. -
Q8: How to view the official documentation of
Rust Constructor? -
A8: What you are seeing now is the core content of the documentation. If you still have questions, please check
Rust Constructor Guide. This is the official tutorial ofRust Constructor, but it may not be up-to-date. -
Q9: Under what form is
Rust Constructoropen-sourced? How to contribute? -
A9: The source code of
Rust Constructoris open-sourced under theMITlicense. Due to personal reasons, I do not recommend contributing to this project. If you have any ideas, please fork this project and maintain it yourself. -
Q10: I still have unresolved issues, what should I do?
-
A10: Please raise an
issuein this project repository, and I will try my best to solve all problems.
License
MIT © 2026 ChepleBob
Epilogue
If you like this project, please give me a star on GitHub. You can also join our organization Binder.