anything 0.1.5

Calculate everything and nothing with perfect precision.
Documentation
//! [<img alt="github" src="https://img.shields.io/badge/github-udoprog/anything-8da0cb?style=for-the-badge&logo=github" height="20">](https://github.com/udoprog/anything)
//! [<img alt="crates.io" src="https://img.shields.io/crates/v/anything.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/anything)
//! [<img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-anything-66c2a5?style=for-the-badge&logoColor=white&logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoIGZpbGw9IiNmNWY1ZjUiIGQ9Ik00ODguNiAyNTAuMkwzOTIgMjE0VjEwNS41YzAtMTUtOS4zLTI4LjQtMjMuNC0zMy43bC0xMDAtMzcuNWMtOC4xLTMuMS0xNy4xLTMuMS0yNS4zIDBsLTEwMCAzNy41Yy0xNC4xIDUuMy0yMy40IDE4LjctMjMuNCAzMy43VjIxNGwtOTYuNiAzNi4yQzkuMyAyNTUuNSAwIDI2OC45IDAgMjgzLjlWMzk0YzAgMTMuNiA3LjcgMjYuMSAxOS45IDMyLjJsMTAwIDUwYzEwLjEgNS4xIDIyLjEgNS4xIDMyLjIgMGwxMDMuOS01MiAxMDMuOSA1MmMxMC4xIDUuMSAyMi4xIDUuMSAzMi4yIDBsMTAwLTUwYzEyLjItNi4xIDE5LjktMTguNiAxOS45LTMyLjJWMjgzLjljMC0xNS05LjMtMjguNC0yMy40LTMzLjd6TTM1OCAyMTQuOGwtODUgMzEuOXYtNjguMmw4NS0zN3Y3My4zek0xNTQgMTA0LjFsMTAyLTM4LjIgMTAyIDM4LjJ2LjZsLTEwMiA0MS40LTEwMi00MS40di0uNnptODQgMjkxLjFsLTg1IDQyLjV2LTc5LjFsODUtMzguOHY3NS40em0wLTExMmwtMTAyIDQxLjQtMTAyLTQxLjR2LS42bDEwMi0zOC4yIDEwMiAzOC4ydi42em0yNDAgMTEybC04NSA0Mi41di03OS4xbDg1LTM4Ljh2NzUuNHptMC0xMTJsLTEwMiA0MS40LTEwMi00MS40di0uNmwxMDItMzguMiAxMDIgMzguMnYuNnoiPjwvcGF0aD48L3N2Zz4K" height="20">](https://docs.rs/anything)
//!
//! Calculate everything and nothing with perfect precision.
//!
//! Anything provides the `any` binary, which is a small flexible program
//! intended to do calculations and query for numerical facts.
//!
//! You can install the `any` command by using:
//!
//! ```sh
//! cargo install anything
//! ```
//!
//! The `any` command can do a couple of really interesting things:
//!
//! * Unit conversions!
//!   * `any 3dl to m^3` gives us `0.0003 m³`.
//!   * `any 1000Gbtu to MWh` gives us `293055.555555555555… hr⋅MW`.
//! * Fact queries!
//!   * `any population finland / population world` gives us
//!     `0.000710822459005…`.
//! * Basic math!
//!   * `any 32500 / round(population finland)` gives us `0.00586566578555…`.
//! * Unit-aware calculations!
//!   * `any 3N / 10kg` gives us `0.3 m/s²`.
//! * And a bit more...
//!
//! You can think of `any` is a **much** smaller and local wolfram engine,
//! without the hassle of having to go online for your answers.

#![deny(missing_docs)]

mod compound;
mod config;
mod db;
mod error;
mod eval;
mod generated;
mod numeric;
mod powers;
mod prefix;
mod query;
pub mod rational;
#[doc(hidden)]
pub mod syntax;
mod unit;
mod unit_parser;
pub mod units;

pub use self::compound::Compound;
pub use self::db::{Constant, Db, Source};
pub use self::error::Error;
pub use self::numeric::Numeric;
pub use self::powers::Powers;
pub use self::query::{parse, query, Description, Options, Query};
pub use self::rational::Rational;
pub use self::unit::Unit;