Skip to main content

windjammer_runtime/
lib.rs

1//! Windjammer Runtime Library
2//!
3//! This crate provides the actual Rust implementations for Windjammer's standard library.
4//! When you write `use std::http` in Windjammer, the compiler generates code that calls
5//! functions from this crate.
6
7// Re-export rand for property testing
8pub use rand;
9
10// Platform-specific implementations
11pub mod platform;
12
13// Core modules (fully implemented)
14pub mod fs;
15#[cfg(feature = "server")]
16pub mod http;
17pub mod json;
18pub mod mime;
19
20// Additional stdlib modules
21#[cfg(feature = "server")]
22pub mod async_runtime;
23pub mod bench;
24pub mod cli;
25pub mod collections;
26pub mod contracts;
27pub mod crypto;
28pub mod csv_mod;
29pub mod db;
30pub mod doc_test;
31pub mod encoding;
32pub mod env;
33pub mod fixtures;
34pub mod io;
35pub mod log_mod;
36pub mod math;
37pub mod mock;
38pub mod mock_function;
39pub mod mock_interface;
40pub mod path;
41pub mod process;
42pub mod property;
43pub mod random;
44pub mod regex_mod;
45pub mod setup_teardown;
46pub mod strings;
47pub mod sync;
48pub mod test;
49pub mod test_output;
50pub mod testing;
51pub mod thread;
52pub mod time;
53pub mod timeout;
54
55// Re-export commonly used types
56#[cfg(feature = "server")]
57pub use http::{Request, Response, Router, ServerResponse};