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 ffi;
34pub mod fixtures;
35pub mod io;
36pub mod log_mod;
37pub mod marker;
38pub mod math;
39pub mod mock;
40pub mod mock_function;
41pub mod mock_interface;
42pub mod path;
43pub mod process;
44pub mod property;
45pub mod random;
46pub mod regex_mod;
47pub mod setup_teardown;
48pub mod strings;
49pub mod sync;
50pub mod test;
51pub mod test_output;
52pub mod testing;
53pub mod thread;
54pub mod time;
55pub mod timeout;
56
57// Re-export commonly used types
58#[cfg(feature = "server")]
59pub use http::{Request, Response, Router, ServerResponse};
60
61// Prelude for common imports
62pub mod prelude {
63    pub use crate::marker::PhantomData;
64    pub use crate::testing::*;
65}