tobogganSe connecter

packages

The Louise packages, each released on its own

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Packages: a minimum-compiler key in louise.toml; v0.1.1 (issue #296)

Release v0.1.0's embedded std predates bytes.read_u8/read_u16be/
read_u32be/to_string_range (cfeb9b0), which packages/postgres uses, so
no released compiler can build the in-repo packages — while
`louise self update --check` rightly says 0.1.0 is the newest release.
A user on the release got type errors about std internals, not an
actionable message.

A manifest can now say [package] louise = ">= 0.1.1": one comparison
(>=, >, <=, <, =, or a bare x.y.z for =; ADR 0020 defers dependency
semver, and this is a compiler requirement, not one of those). The
resolver checks it for the root and for every dependency, against the
running compiler's version, passed into resolve() explicitly. A
violation is a manifest error on the requirement's span —
`dependency `postgres` of `app` needs louise >= 0.1.1; this compiler
is 0.1.0` — so the CLI prints it and the language server shows it in
the manifest (E0801). Compilers before 0.1.1 do not know the key
([package] never denied unknown fields) and ignore it, which is fine:
the key exists to tell them apart from what comes after.

Version moves from self_update.rs to louise_package's new version.rs,
public, next to a minimal VersionReq; self update's behaviour and tests
are unchanged (its version tests moved with it).

packages/postgres requires >= 0.1.1. uuid and argon2 use only std API
that v0.1.0 already had (checked against git log v0.1.0..HEAD -- std/),
so they stay unconstrained.

The workspace version becomes 0.1.1, so tagging v0.1.1 after the merge
passes release.yml's tag==version smoke test and gives self update
something to offer. docs/reference/language.md documents the key;
docs/contributing.md notes how a release is cut.

olivier · il y a 1 mois · e2dc4d981f805017e8edf6ff40229e4e09cbd13a

Parents cee0990

1 fichiers modifiés, 3 ajouts, 0 suppressions