lungo generate --report-writes FILE appends one JSON line to FILE for each file it writes
into an output or removes from one, as it does so: {"path", "sha256"} for a file it wrote,
with the SHA-256 of its bytes, and {"path", "removed": true} for one it removed, each path
absolute. Every file of a replaced output is reported, build-info.json among them. With
--link, each platform product it writes is reported. A tool that runs generate in a tree
it must later put back can now say exactly which files to put back.
The CLI reference describes --report-writes.
TypeScript
A generated package’s index.d.ts carries the Lean program’s docstrings: a type,
constructor, structure field, function or host operation documented in Lean has that
docstring as its JSDoc, a function’s and an operation’s followed by its Lean name and type.
A declaration without a docstring keeps the line naming the Lean declaration it stands for.
Every declaration of index.d.ts is documented: the descriptor functions (pointType()),
the fields of each interface and of each member of a union (a constructor’s documentation on
its kind), leanTypes, load, LoadOptions and its fields, and the members of the
facilities interface.
leanTypes no longer names any: each type’s descriptor is
(...args: L.Type<unknown>[]) => L.Type<unknown>. A package’s declarations use no any.
The generated-packages reference describes the documentation.
Generator plugins
The generate request is version 4. Its boundary carries the program’s docstrings: doc
of each type, function and operation, and ctors of each type with the docstrings of its
constructors and of its structure fields. The plugin reference describes them.
Rust library
BuildOutcome carries written: every file a generation wrote into the output or removed
from it, none when the output was reused.
lungo-protocol‘s TypeDecl, CtorDecl, FieldDecl, Export and ExternRequirement
carry the declaration’s docstring (doc), and the worker protocol is version 5.
lungo-codegen‘s boundary carries them to the generators: NamedType::doc,
NamedType::ctors (CtorDocs), Function::doc and Operation::doc.
Other changes
None to lungo’s runtime, or to the packages it generates for Rust, C, Go, Python and Swift.
A layout fingerprint is unchanged by docstrings: packages generated before and after this
release agree on the types they share.