1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//! 数据中心 #![no_std] #![feature(const_fn_fn_ptr_basics)] extern crate alloc; pub mod event; pub mod link; pub mod request; mod var; use unmp::id::Id; use unmp::net; pub fn init(id: Id) { let mut cfg = net::Config::new(id); cfg.set_relay(false); net::init(cfg); }