1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-04 13:52:21 +00:00
UltimateTrainingModpack/src/lib.rs

21 lines
345 B
Rust
Raw Normal View History

2020-04-08 00:21:52 -04:00
#![no_std]
use skyline::{Allocator, log};
2020-04-08 00:21:52 -04:00
#[global_allocator]
pub static ALLOCATOR: Allocator = Allocator;
extern crate alloc;
use alloc::vec;
#[no_mangle]
pub fn main() {
let x = vec![1, 2, 3];
log("Hello from Skyline Rust Plugin!\n");
if x[1] == 2 {
log("x[1] == 2\n");
} else {
log("x[1] != 2\n");
}
}