Expand description
§webrust - Python-like Rust for Web Applications
webrust bridges the elegance of Python with the power and safety of Rust, providing a seamless web-based interface for interactive applications.
§Quick Start
use webrust::prelude::*;
#[gui]
fn main() {
println("@(blue, bold)Welcome to webrust!");
let name: String = input("What's your name?");
let age: i32 = input("How old are you?");
println("Hello @(green){name}@(reset)! You are {age} years old.");
// Mathematical expressions
println("Einstein's equation: $(E = mc^2)");
// Python-like ranges
for i in 1.to(5) {
println("Count: {i}");
}
// Data tables
let data = vec![vec!["Alice", "25"], vec!["Bob", "30"]];
table(&data).header(["Name", "Age"]);
}§Core Features
- Python-like syntax with Rust’s type safety
- Advanced f-strings with rich formatting
- Real-time input validation
- LaTeX mathematical rendering
- Intelligent data tables
- Rich text styling system
- Automatic web interface
The crate automatically starts a web server and opens your browser, providing an interactive interface with no additional setup required.
§webrust - Python-like Rust for Web Applications
A comprehensive, intelligent system that bridges Python simplicity with Rust power.
Re-exports§
pub use serde;pub use serde_json;pub use io::*;pub use iter::*;pub use data::*;