rustuse
Unified facade crate for the published RustUse sets and child crates.
rustuse gives one dependency surface that exposes the current RustUse sets on main:
- constants primitives from
use-constants - chemistry primitives from
use-chemistry - math primitives from
use-math - Rust ecosystem primitives from
use-rust
The crate re-exports every concrete child crate directly at the top level and also groups them by set so consumers can choose the style they prefer.
Installation
[]
= "0"
Disable default features if you only want one set:
[]
= { = "0", = false, = ["constants"] }
Usage
Access child crates directly
use EARTH_RADIUS_MEAN;
use TAU;
use element_by_symbol;
use factorial;
use parse_version;
let oxygen = element_by_symbol.unwrap;
let count = factorial.unwrap;
let version = parse_version.unwrap;
assert!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Access crates through set modules
use earth;
use math;
use element_by_symbol;
use factorial;
use next_minor;
let radius = EARTH_RADIUS_MEAN;
let oxygen = element_by_symbol.unwrap;
let count = factorial.unwrap;
let version = next_minor;
let circumference = TAU * 3.0;
assert!;
assert!;
assert_eq!;
assert_eq!;
assert_eq!;
Set modules
rustuse::constantsgroupsuse-constantsand the focused constants child cratesrustuse::chemistrygroupsuse-chemistryand the published chemistry child cratesrustuse::mathgroupsuse-mathand all publisheduse-mathchild cratesrustuse::rustgroupsuse-rust,use-crate, anduse-version
Release scope
The published rustuse 0.1.2 release covers chemistry, constants, math, and rust. The
constants surface includes the focused crates from use-constants, including
use-earth-constants, once those crates are live on crates.io and the use-constants umbrella
crate has been published.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0, in
LICENSE-APACHE - MIT license, in
LICENSE-MIT