rhai/src/packages/pkg_std.rs

38 lines
1.3 KiB
Rust
Raw Normal View History

2021-04-17 09:15:54 +02:00
#[cfg(feature = "no_std")]
use std::prelude::v1::*;
2020-04-21 17:01:10 +02:00
use crate::def_package;
2021-12-20 04:42:39 +01:00
def_package! {
/// Standard package containing all built-in features.
///
/// # Contents
///
/// * [`CorePackage`][super::CorePackage]
2022-01-03 16:10:20 +01:00
/// * [`BitFieldPackage`][super::BitFieldPackage]
/// * [`LogicPackage`][super::LogicPackage]
2021-12-20 04:42:39 +01:00
/// * [`BasicMathPackage`][super::BasicMathPackage]
/// * [`BasicArrayPackage`][super::BasicArrayPackage]
/// * [`BasicBlobPackage`][super::BasicBlobPackage]
/// * [`BasicMapPackage`][super::BasicMapPackage]
/// * [`BasicTimePackage`][super::BasicTimePackage]
/// * [`MoreStringPackage`][super::MoreStringPackage]
2022-02-10 05:33:48 +01:00
pub StandardPackage(lib) {
2021-12-20 04:42:39 +01:00
lib.standard = true;
2021-12-20 04:42:39 +01:00
super::CorePackage::init(lib);
2022-01-03 16:10:20 +01:00
super::BitFieldPackage::init(lib);
super::LogicPackage::init(lib);
2021-12-20 04:42:39 +01:00
super::BasicMathPackage::init(lib);
#[cfg(not(feature = "no_index"))]
super::BasicArrayPackage::init(lib);
#[cfg(not(feature = "no_index"))]
super::BasicBlobPackage::init(lib);
#[cfg(not(feature = "no_object"))]
super::BasicMapPackage::init(lib);
#[cfg(not(feature = "no_std"))]
super::BasicTimePackage::init(lib);
super::MoreStringPackage::init(lib);
2021-11-23 07:58:54 +01:00
}
2021-12-20 04:42:39 +01:00
}