Skip to main content

molecular_formulas/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "fuzzing"), no_std)]
3
4/// The crate is solely dependent on the alloc crate,
5/// not the standard library.
6extern crate alloc;
7
8pub mod errors;
9pub mod molecular_formula;
10pub(crate) mod molecular_tree;
11pub mod nodes;
12pub mod parsable;
13mod serde_impl;
14mod utils;
15pub use molecular_formula::*;
16pub use molecular_tree::*;
17pub use nodes::*;
18pub use parsable::*;
19pub(crate) use utils::{display_charge, display_isotope};
20pub mod fuzzing;
21
22/// Prelude module re-exporting commonly used items.
23pub mod prelude {
24    /// Re-exports from the elements_rs crate.
25    pub use elements_rs::{Element, ElementVariant, Isotope, MassNumber};
26
27    pub use crate::{molecular_formula::*, molecular_tree::*, nodes::*, parsable::*};
28}