Sable Core
Core utilities, math primitives, and foundational types for the Sable engine.
Modules
- [
math] — Vector, matrix, and quaternion types - [
handle] — Generational index handles for safe resource references - [
color] — Color types with various color space support - [
time] — Time tracking and delta time utilities
Feature Flags
f64— Use 64-bit floats instead of 32-bit for math typesparallel— Enable parallel iteration with rayon and concurrent data structuresasync— Enable async time utilities with tokio
Parallelization
With the parallel feature (enabled by default), you can use parallel iteration:
use *;
// Parallel iteration over handle allocator values
allocator.par_values.for_each;
// Thread-safe concurrent allocator
use ConcurrentHandleAllocator;
let allocator = new;
Async Support
With the async feature, async time utilities are available:
use ;
async