Diamond / cuts

Small packages.
Reproducible builds.

Find reusable Diamond libraries, inspect their published releases, and install them with facet.

Get started ↓

Published releases

Loading releases…

Start with a cut

Install Diamond and facet using the build instructions. In a new project:

facet init my_app
facet add logger --registry https://cuts.dilang.tech --version '^0.4.0'
facet update

Commit diamond.cut and facet.lock. On another machine, run facet install to reproduce the locked versions and verified archives. Use facet update when you intend to resolve newer versions.

A yanked release remains available to existing locks but is excluded from new resolution. A taken-down release is unavailable.

Publishing

Launch publishing is limited to operator-approved maintainers with scoped credentials. Public self-service registration is not available. Check your cut before requesting publication:

facet check path/to/my_cut
facet pack path/to/my_cut my_cut.tar
facet verify my_cut.tar

Versions are immutable. Publish changed contents under a new cut version. See the cut contract for dependency, archive, and publishing requirements.