WebRust v1.0.0 - Interactive Data Visualization Framework
Python-like simplicity meets Rust performance with integrated business intelligence capabilities
WebRust transforms Rust development by providing Python's elegance with zero-cost abstractions, now featuring interactive data visualization, professional table generation, and complete business intelligence workflows.
Mission
WebRust aims to lower the barrier to Rust adoption by providing familiar Python-like ergonomics while maintaining Rust's performance and safety guarantees. Our goal is to demonstrate that systems programming can be both powerful and approachable.
By bridging the gap between Python's ease of use and Rust's capabilities, WebRust serves as both a practical development tool and a proof-of-concept for ergonomic systems programming paradigms.
What's New in v1.0.0
Interactive Data Visualization
- Professional Charts - Line, bar, pie, and scatter plots with ECharts integration
- Seamless Integration - Charts work directly with tables and GUI system
- Business Intelligence - Complete dashboard creation capabilities
- Real-time Rendering - Interactive charts with hover effects and zoom
Complete Analysis Workflow
use *;
Core Features
Zero-Configuration GUI
Transform any Rust function into a professional web application:
Professional Styling
CSS-like styling with responsive layouts:
println
.width // Dynamic width
.align // Center alignment
.weight // Border thickness
.style // Border style
.radius // Rounded corners
.background; // Background color
Smart Data Visualization
Automatic table generation from any data structure:
let mut scores = new;
scores.insert;
scores.insert;
table.header;
Python-like Strings
Familiar string methods with Rust performance:
let result = "python,rust,go".split_by.join; // "python → rust → go"
let clean = " hello world ".trim.title; // "Hello World"
let padded = "42".zfill; // "000042"
Mathematical Expressions
LaTeX integration for scientific computing:
println;
println;
Business Intelligence Example
Create professional dashboards with minimal code:
use *;
use HashMap;
Quick Start
1. Add WebRust to your project:
[]
= "1.0.0"
2. Create your first interactive dashboard:
use *;
3. Run and enjoy:
Your browser opens automatically with an interactive dashboard!
Chart Types
Line Charts
Perfect for trends and time series:
chart
.title
.x_axis_label
.y_axis_label
.series_name
.color;
Bar Charts
Great for comparisons:
chart
.title
.color;
Pie Charts
Ideal for proportions:
let pie_data = PieData;
chart.title;
Scatter Plots
Perfect for correlations:
chart
.title
.x_axis_label
.y_axis_label
.color;
Professional Styling
WebRust provides complete control over visual presentation:
Borders and Layout
println
.width // Responsive width
.align // Text alignment
.weight // Border thickness (1-5)
.style // Border style
.radius // Rounded corners
.color // Border color
.background; // Background
Color System
println;
println;
println;
Smart Tables
Automatic table generation with professional formatting:
// From vectors
let data = vec!;
table.header;
// From HashMaps
let mut scores = new;
scores.insert;
scores.insert;
table;
// Pivot tables
let sales_data = vec!;
table.header;
String Processing
Python-compatible string methods with Rust performance:
// Smart splitting - one method, multiple patterns
let csv = "name,age,city".split_by; // Comma-separated
let words = "hello world\ttab".split_by; // Whitespace
let lines = "L1\nL2\nL3".split_by; // Line breaks
// Case transformations
let text = "hello world";
println!; // "HELLO WORLD"
println!; // "Hello World"
println!; // "Hello world"
// Padding and formatting
println!; // "000042"
println!; // "***text***"
println!; // "left------"
// Validation
println!; // true
println!; // true
println!; // true
Scientific Computing
LaTeX integration for mathematical expressions:
Installation & Setup
Prerequisites
- Rust 1.70+
- Web browser (Chrome, Firefox, Safari, Edge)
Add to Cargo.toml
[]
= "1.0.0"
Optional Features
[]
= { = "1.0.0", = ["full"] }
Real-World Applications
Financial Dashboard
Scientific Analysis
Sales Analytics
Architecture
WebRust v1.0.0 features a modular architecture:
- Core GUI (
webrust::io::gui) - Web server and browser management - Data Visualization (
webrust::data::chart) - Interactive chart generation - Table System (
webrust::data::table) - Intelligent table formatting - String Processing (
webrust::data::string) - Python-like string methods - Styling Engine (
webrust::io::print) - Professional layout and design - Macro System (
webrust-macros) - F-string processing and GUI transformation
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
License
WebRust is licensed under the MIT License. See LICENSE for details.
WebRust v1.0.0 - Where Python Meets Rust Performance
Experience the perfect fusion of Python's elegance and Rust's power with professional business intelligence capabilities.
Built with care for the Rust community