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// Profiling (Tracy zones; optional `tracy` feature)
21pub mod profiling;
22
23// Additional stdlib modules
24pub mod async_runtime;
25pub mod bench;
26pub mod cli;
27pub mod collections;
28pub mod contracts;
29pub mod crypto;
30pub mod csv_mod;
31pub mod db;
32pub mod doc_test;
33pub mod encoding;
34pub mod env;
35pub mod ffi;
36pub mod fixtures;
37pub mod io;
38pub mod log_mod;
39pub mod marker;
40pub mod math;
41pub mod mock;
42pub mod mock_function;
43pub mod mock_interface;
44pub mod path;
45pub mod process;
46pub mod property;
47pub mod random;
48pub mod regex_mod;
49pub mod setup_teardown;
50pub mod strings;
51pub mod subprocess;
52pub mod sync;
53pub mod test;
54pub mod test_output;
55pub mod testing;
56pub mod thread;
57pub mod time;
58pub mod timeout;
59
60// Re-export commonly used types
61#[cfg(feature = "server")]
62pub use http::{Request, Response, Router, ServerResponse};
63
64// Prelude for common imports
65pub mod prelude {
66    pub use crate::marker::PhantomData;
67    pub use crate::testing::*;
68}