wasm4/
lib.rs

1//! # Examples
2//!
3//! ```no_run
4#![doc = include_str!("../examples/ticking.rs")]
5//! ```
6#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7#![cfg_attr(not(feature = "std"), no_std)]
8// TODO: #![deny(missing_docs)]
9
10#[doc(hidden)]
11#[path = "private.rs"]
12pub mod __private;
13pub mod draw;
14pub mod rt;
15pub mod sound;
16mod utils;
17
18pub use self::utils::OutOfDomainError;
19pub use wasm4_sys as sys;
20
21pub fn trace(msg: &str) {
22    unsafe { sys::traceUtf8(msg.as_ptr(), msg.len()) }
23}