Skip to main content

chematic_rxn/
lib.rs

1#![forbid(unsafe_code)]
2//! `chematic-rxn` — reaction SMILES parser and writer for chematic.
3//!
4//! Provides:
5//! - [`Reaction`]: reactants, agents, products as `Vec<Molecule>`.
6//! - [`parse_reaction`]: parse a reaction SMILES string `"R>>P"` or `"R>A>P"`.
7//! - [`write_reaction`]: serialize back to reaction SMILES.
8//! - [`RxnError`]: parse error type.
9
10pub mod reaction;
11
12pub use reaction::{Reaction, RxnError, parse_reaction, write_reaction};