mica-std 0.5.0

The standard library of Mica, a simple, user-friendly, embeddable scripting language
Documentation
//! The Mica standard library. Provides functions that can be registered in engines.

#![allow(clippy::or_fun_call)]

mod builtins;
mod core;
mod gc;
#[cfg(feature = "io")]
mod io;
mod iterators;

use mica_hl::Engine;

pub use crate::builtins::lib;
pub use crate::core::load_core;
#[cfg(feature = "io")]
pub use crate::io::load_io;

/// Loads the full standard library into the engine.
pub fn load(engine: &mut Engine) -> Result<(), mica_hl::Error> {
   load_core(engine)?;
   #[cfg(feature = "io")]
   load_io(engine)?;

   Ok(())
}