pconvert_rust/lib.rs
1//! The [Rust](https://www.rust-lang.org) version of the famous [P(NG)Convert](https://github.com/hivesolutions/pconvert) from Hive Solutions.
2//! This Rust crate can be used as a **crate** in another rust project, as a **Web Assembly module** (able to be used within JavaScript that targets web browsers) or as a **python package**.
3//!
4//! # WebAssembly (WASM) Module
5//!
6//! Follow [this guide](https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm) on how to install `wasm-pack`.
7//!
8//! To build, use the `wasm-extension` feature:
9//!
10//! ```console
11//! $ wasm-pack build -- --features wasm-extension
12//! ```
13//!
14//! # Python package
15//!
16//! This crate can be installed as a python package through the use of `pip`. Simply run:
17//!
18//! ```console
19//! $ pip install pconvert-rust/.
20//! ```
21//!
22//! ## License
23//!
24//! P(NG)Convert Rust is currently licensed under the [Apache License, Version 2.0](http://www.apache.org/licenses/).
25
26pub mod benchmark;
27pub mod blending;
28pub mod compose;
29pub mod constants;
30pub mod errors;
31pub mod parallelism;
32pub mod utils;
33
34#[cfg(feature = "python-extension")]
35pub mod pymodule;
36
37#[cfg(feature = "wasm-extension")]
38pub mod wasm;
39
40#[cfg(test)]
41pub mod test;