# BREP
Part of the [next.BREP.io](https://next.brep.io) Rust B-rep kernel: `cargo add BREP` · [licence summary](#licence)
Umbrella crate for the **BREP** CAD kernel family. One dependency that
re-exports the geometry kernel and, behind feature flags, the higher layers of
the stack — so downstream code says `use brep::kernel::…` / `use brep::render::…`
instead of depending on each sibling crate directly.
| `kernel` | *(always)* | [`BREP_kernel`](https://crates.io/crates/BREP_kernel) | The BREP geometry kernel: exact NURBS B-rep, booleans, fillets and chamfers, sweeps and lofts, STEP/IGES exchange, tessellation. |
| `gizmos` | `gizmos` | [`BREP_gizmos`](https://crates.io/crates/BREP_gizmos) | In-scene gizmos / overlay widgets (pure geometry + hit-testing). |
| `render` | `render` | [`BREP_render`](https://crates.io/crates/BREP_render) | Windowing-agnostic wgpu render/pick engine. |
| `app` | `app` | [`BREP_app`](https://crates.io/crates/BREP_app) | The eframe (egui + wgpu) CAD application. |
| `reconstruction` | `reconstruction` | [`BREP_reconstruction`](https://crates.io/crates/BREP_reconstruction) | RANSAC recognition-to-kernel reconstruction. |
The kernel is always re-exported; everything above it is opt-in so a headless
geometry consumer never compiles `wgpu` / `eframe`.
```toml
[dependencies]
BREP = "0.36" # kernel only (headless)
BREP = { version = "0.36", features = ["render"] } # + the wgpu render engine
BREP = { version = "0.36", features = ["full"] } # app + render + gizmos
```
Additional features: `reconstruction` (opt-in recognition integration), `full`
(an alias for `app`, which also enables `render` and `gizmos`), and `parallel`
(forwards to the kernel's rayon parallelism: tessellation and STEP import). `full` does not enable
`reconstruction` or `parallel`; request those separately when needed.
> **Package vs. lib name:** the crates.io package is `BREP`; the Rust library is
> `brep` (lowercase, lint-clean). This mirrors the whole family — package
> `BREP_render` / lib `brep_render`, etc.
This is version 0.36.0. The optional reconstruction feature re-exports the
reconstruction library directly; rendering also consumes it transitively.
Licence: the Autodrop3d licence in `LICENSE.md`, shipped in the crate
(`license-file` in the manifest).
## Licence
In plain words: the crates are free to use as they are, including in a commercial project. If you
fix or change something in the kernel, send the change back as a pull request to
[github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL](https://github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL). If you do not want to share your
changes, buy a commercial licence from [Autodrop3d LLC](https://autodrop3d.com); with it you never
have to share your code back.
The exact terms are in `LICENSE.md`, shipped in the crate (`license-file` in the manifest) and at
[LICENSE.md](https://github.com/mmiscool/next.BREP.io_RUST_BREP_KERNEL/blob/master/LICENSE.md); if this summary and the file ever differ, the file wins.