Correctness- and interoperability-oriented Tangled CLI
camlet docs development.md
2.1 kB · 60 lines
Markdown
at main

Development environment #

Reproducible toolchain #

The checked-in Nix flake is the authoritative development and verification environment. flake.lock pins the toolchain and dependencies. The flake supports the systems declared in flake.nix; its default shell contains everything required to build Camlet and run the complete verification gate:

nix develop

The full shell also includes OCaml LSP and odoc:

nix develop .#full

Run the required checks directly through that environment:

nix develop -c scripts/check

Building the executable #

Build the checked-in Nix package for a reproducible, wrapped executable:

nix build
./result/bin/camlet version

nix build runs the package checks configured by the flake. For faster incremental work against the complete current working tree, build Dune's install tree inside the development shell and invoke the public executable directly:

dune build @install
./_build/install/default/bin/camlet version

Neither workflow requires dune exec.

Package metadata #

dune-project is the source for the generated camlet.opam package definition. camlet.opam.locked records the resolved compiler and package dependency closure, while .ocamlformat selects the formatter policy. Do not manually maintain a second dependency list in this document.

Package metadata identifies Roel <roel@decort.tech> as author and maintainer, uses the Tangled repository as the project homepage and public bug tracker, and declares Apache-2.0. Private vulnerability reports follow SECURITY.md. The required check includes opam lint camlet.opam.

Registry maintenance #

The public-peer policy in lib/adapter_http/peer_policy.ml contains a dated allowlist derived from IANA's IPv6 Global Unicast Address Space registry. Compare that table with the current IANA registry before each release and at least quarterly. Update the source date, prefixes, and boundary tests together; do not broaden the check to all of 2000::/3, because unlisted space remains reserved.