gorust 0.1.0

Go-style concurrency in Rust - bringing Go-style concurrency patterns to Rust with familiar primitives like goroutines and channels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// src/lib.rs
// 纯库版本,不包含宏定义

pub mod channel;
pub mod go_runtime;
pub mod scheduler;
pub mod sync;

// 导出公共接口
pub use channel::Channel;
pub use go_runtime::Runtime;
pub use scheduler::{go, yield_now};

// 导出的宏定义
pub use go_macros::make_chan;
pub use go_macros::runtime;
pub use go_macros::select;