| Crates.io | blockly-rust-compiler |
| lib.rs | blockly-rust-compiler |
| version | 0.1.1 |
| created_at | 2025-12-17 13:31:03.502588+00 |
| updated_at | 2025-12-17 13:31:03.502588+00 |
| description | Rust compiler integration library for visual programming with Blockly - validate and check generated code |
| homepage | https://github.com/Quadraxis77/Rust_Visual_Editor |
| repository | https://github.com/Quadraxis77/Rust_Visual_Editor |
| max_upload_size | |
| id | 1990200 |
| size | 73,505 |
A visual programming environment for Rust, WGSL, and Bevy built with Blockly.
Simplest way: Double-click Start Rust Visual Editor.lnk in the project root
Or manually:
web folderindex.html to open in your browserNote: For advanced features like the Rust compiler service, you'll need to run a local server (see Development section).
.
├── web/ # Frontend application
│ ├── index.html # Main entry point
│ ├── app.js # Application logic
│ ├── blocks/ # Block definitions (Rust, WGSL, Bevy)
│ ├── generators/ # Code generators
│ ├── core/ # Core modules (validators, managers)
│ ├── toolbox/ # Toolbox configurations
│ └── utils/ # Utility functions
├── integration/ # Rust backend (compiler service)
│ ├── Cargo.toml
│ └── src/
└── examples/ # Example workspaces
The visual editor works standalone without the backend:
cd web
python -m http.server 8000
To enable code checking features:
cd integration
cargo run --bin compiler_service
The service runs on http://localhost:3030
The visual editor supports multi-file projects with visual connection lines showing file relationships.
1. Create Your Files
main.rs, utils.rs, config.rs)2. Link Files Together
.rs extension)
utils.rs, enter utils3. Import Items
use utils::helper_function;use utils::*;4. Make Items Public
pub fn helper_function() { ... }main.rs:
📄 File: main.rs
🔗 mod utils;
🔗 mod config;
use utils::calculate;
use config::Settings;
fn main() {
let result = calculate(10);
println!("Result: {}", result);
}
utils.rs:
📄 File: utils.rs
pub fn calculate(x: i32) -> i32 {
x * 2
}
config.rs:
📄 File: config.rs
pub struct Settings {
pub debug: bool
}
🔗 mod blocks to their target filesSee LICENSE file for details.