[Teton] Move console/shell to rust. WIP
This commit is contained in:
parent
76f8795a46
commit
18e512cf1f
17 changed files with 409 additions and 5 deletions
|
|
@ -3,3 +3,17 @@
|
|||
use core::include;
|
||||
|
||||
include!(concat!(env!("OUT_DIR"), "/yunq.rs"));
|
||||
|
||||
use mammoth::init::INIT_ENDPOINT;
|
||||
|
||||
static mut YELLOWSTONE_INIT: Option<YellowstoneClient> = None;
|
||||
|
||||
pub fn from_init_endpoint() -> &'static mut YellowstoneClient {
|
||||
unsafe {
|
||||
if let None = YELLOWSTONE_INIT {
|
||||
YELLOWSTONE_INIT = Some(YellowstoneClient::new(INIT_ENDPOINT));
|
||||
}
|
||||
|
||||
YELLOWSTONE_INIT.as_mut().unwrap()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue