2021-04-17 09:15:54 +02:00
|
|
|
#[cfg(feature = "no_std")]
|
|
|
|
use std::prelude::v1::*;
|
2020-04-20 18:11:25 +02:00
|
|
|
|
2022-08-18 11:22:56 +02:00
|
|
|
use super::*;
|
2020-04-21 17:01:10 +02:00
|
|
|
use crate::def_package;
|
2022-11-23 04:36:30 +01:00
|
|
|
use crate::module::ModuleFlags;
|
2020-04-20 18:11:25 +02:00
|
|
|
|
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-09-14 09:17:36 +02:00
|
|
|
pub StandardPackage(lib) :
|
2022-08-18 11:22:56 +02:00
|
|
|
CorePackage,
|
|
|
|
BitFieldPackage,
|
|
|
|
LogicPackage,
|
|
|
|
BasicMathPackage,
|
|
|
|
#[cfg(not(feature = "no_index"))] BasicArrayPackage,
|
|
|
|
#[cfg(not(feature = "no_index"))] BasicBlobPackage,
|
|
|
|
#[cfg(not(feature = "no_object"))] BasicMapPackage,
|
2022-10-15 09:11:51 +02:00
|
|
|
#[cfg(not(feature = "no_time"))] BasicTimePackage,
|
2022-08-18 11:22:56 +02:00
|
|
|
MoreStringPackage
|
|
|
|
{
|
2022-11-23 04:36:30 +01:00
|
|
|
lib.flags |= ModuleFlags::STANDARD_LIB;
|
2021-11-23 07:58:54 +01:00
|
|
|
}
|
2021-12-20 04:42:39 +01:00
|
|
|
}
|