1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! # BREP
//!
//! Umbrella crate for the BREP CAD kernel family. It re-exports the geometry
//! kernel unconditionally and the higher layers behind feature flags, so a
//! single `BREP` dependency scales from headless geometry to the full app:
//!
//! | Module | Feature | Backing crate |
//! |-------------|------------|----------------|
//! | [`kernel`] | *(always)* | `BREP_kernel` |
//! | [`gizmos`] | `gizmos` | `BREP_gizmos` |
//! | [`render`] | `render` | `BREP_render` |
//! | [`app`] | `app` | `BREP_app` |
//!
//! `full` turns everything on; `parallel` forwards to the kernel's rayon
//! tessellation.
//!
//! ```toml
//! BREP = "0.2" # kernel only
//! BREP = { version = "0.2", features = ["render"] } # + the wgpu render engine
//! BREP = { version = "0.2", features = ["full"] } # everything, incl. the eframe app
//! ```
//!
//! ```no_run
//! use brep::kernel; // always present
//! # #[cfg(feature = "render")]
//! use brep::render; // with `features = ["render"]`
//! ```
/// The BREP geometry kernel — always available.
pub use brep_kernel as kernel;
/// In-scene gizmos and overlay widgets. Enable the `gizmos` feature.
pub use brep_gizmos as gizmos;
/// The windowing-agnostic wgpu render/pick engine. Enable the `render` feature.
pub use brep_render as render;
/// The eframe (egui + wgpu) CAD application. Enable the `app` feature.
pub use brep_app as app;