safe-vex 4.4.0

A modular, safe and data-orientated rust wrapper over the Purdue PROS library for Vex Robotics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Defines the global allocator for the PROS runtime

use core::alloc::Layout;
use newlib_alloc::Alloc;

/// Sets the global allocator
#[global_allocator]
static ALLOCATOR: Alloc = Alloc;

#[alloc_error_handler]
fn handle(layout: Layout) -> ! {
    panic!("memory allocation failed: {:#?}", layout);
}