#![deny(missing_docs)]
#[cfg(feature = "native")]
use std::sync::Arc;
#[cfg(feature = "native")]
use flowrlib::lib_manifest::{ImplementationLocator::Native, LibraryManifest};
#[cfg(feature = "native")]
use flowrlib::manifest::MetaData;
#[cfg(feature = "native")]
pub mod control;
#[cfg(feature = "native")]
pub mod data;
#[cfg(feature = "native")]
pub mod fmt;
#[cfg(feature = "native")]
pub mod img;
#[cfg(feature = "native")]
pub mod math;
#[cfg(feature = "native")]
pub fn get_manifest() -> LibraryManifest {
let metadata = MetaData {
name: "flowstdlib".into(),
version: env!("CARGO_PKG_VERSION").into(),
description: "Flow Standard Library".into(),
author_name: "Andrew Mackenzie".into(),
author_email: "andrew@mackenzie-serres.net".into(),
};
let mut manifest = LibraryManifest::new(metadata);
manifest.locators.insert("lib://flowstdlib/data/zip/Zip".to_string(),
Native(Arc::new(data::zip::zip::Zip)));
manifest.locators.insert("lib://flowstdlib/fmt/to_string/ToString".to_string(),
Native(Arc::new(fmt::to_string::to_string::ToString)));
manifest.locators.insert("lib://flowstdlib/img/format_png/FormatPNG".to_string(),
Native(Arc::new(img::format_png::format_png::FormatPNG)));
manifest.locators.insert("lib://flowstdlib/math/divide/Divide".to_string(),
Native(Arc::new(math::divide::divide::Divide)));
manifest.locators.insert("lib://flowstdlib/control/join/Join".to_string(),
Native(Arc::new(control::join::join::Join)));
manifest.locators.insert("lib://flowstdlib/control/tap/Tap".to_string(),
Native(Arc::new(control::tap::tap::Tap)));
manifest.locators.insert("lib://flowstdlib/fmt/reverse/Reverse".to_string(),
Native(Arc::new(fmt::reverse::reverse::Reverse)));
manifest.locators.insert("lib://flowstdlib/fmt/to_number/ToNumber".to_string(),
Native(Arc::new(fmt::to_number::to_number::ToNumber)));
manifest.locators.insert("lib://flowstdlib/math/add/Add".to_string(),
Native(Arc::new(math::add::add::Add)));
manifest.locators.insert("lib://flowstdlib/control/compare/Compare".to_string(),
Native(Arc::new(control::compare::compare::Compare)));
manifest.locators.insert("lib://flowstdlib/math/subtract/Subtract".to_string(),
Native(Arc::new(math::subtract::subtract::Subtract)));
manifest.locators.insert("lib://flowstdlib/data/compose_array/ComposeArray".to_string(),
Native(Arc::new(data::compose_array::compose_array::ComposeArray)));
manifest.locators.insert("lib://flowstdlib/data/buffer/Buffer".to_string(),
Native(Arc::new(data::buffer::buffer::Buffer)));
manifest
}