rustuse
Composable facade for RustUse utility crates.
rustuse provides a single top-level entry point for published RustUse domain facades. Each enabled feature exposes one domain facade crate at the root of this crate, such as rustuse::use_geometry, rustuse::use_web, or rustuse::use_math.
The root rustuse crate does not expose every focused child crate directly. Focused child crates are accessed through their domain facade re-exports or by depending on the focused child crate directly.
Installation
Enable the domain facades you need:
Enable multiple domains:
Enable all published RustUse domain facades:
Or configure features manually:
[]
= { = "0.2", = ["geometry", "web", "math"] }
The default feature set is empty, so rustuse only exposes the facades you explicitly enable.
Usage
Import an enabled domain facade from the crate root:
use use_geometry as geometry;
Use multiple facades together:
use use_geometry as geometry;
use use_math as math;
use use_web as web;
Enable full for broad exploration:
use use_color as color;
use use_physics as physics;
use use_time as time;
use use_wave as wave;
These imports require the corresponding Cargo features to be enabled.
Architecture
The rustuse crate maintains a facade-only dependency structure:
- Top-level inventory: one published facade crate per domain.
- Feature-gated access: each domain facade is enabled explicitly through a Cargo feature.
- Root-level re-exports: enabled facades are exposed as
rustuse::use_*. - Child crate access: focused child crates are reached through domain facade re-exports or direct dependencies.
- No child-crate flattening:
rustusedoes not expose every focused crate directly.
This keeps the root crate small, predictable, and stable as domain workspaces grow.
License
Licensed under either of the following, at your option:
- Apache License, Version 2.0, in
LICENSE-APACHE - MIT license, in
LICENSE-MIT