cargo-playdate 0.3.4

Build tool for neat yellow console.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![no_std]
#![no_main]
#[allow(unused_imports)]
extern crate alloc;
extern crate playdate as pd;
extern crate {crate_name};

use core::ffi::c_int;
use core::ptr::NonNull;
use pd::sys::EventLoopCtrl;
use pd::sys::ffi::{{PlaydateAPI, PDSystemEvent}};
use pd::sys::eventHandlerShim;
use {crate_name}::event_handler;


// Needed to tell rustc that it should be in the output after DCE, LTO and stripping.
#[used] pub static EVENT_HANDLER: extern "Rust" fn(NonNull<PlaydateAPI>, PDSystemEvent, u32) -> EventLoopCtrl = event_handler;
#[used] pub static EVENT_HANDLER_SHIM: extern "C" fn(*const PlaydateAPI, PDSystemEvent, u32) -> c_int = eventHandlerShim;