Rent v0.8.17
Rent v0.8.17 removes extra setup from permission fixtures and gives seed programs explicit database and Cargo feature options. It also fixes integer tenant-key migrations and makes baseline diagnostics easier to act on.
| Improvement | What changes |
|---|---|
| Permission fixtures | Create declared PostgreSQL functions alongside the schema. Numeric tenant scopes accept unquoted integers. |
| Application seeds | Choose a database URL and match the application's Cargo features. |
| Tenant-key migrations | Scoped integer tenant primary keys no longer receive an unused implicit identity on PostgreSQL, MySQL or MariaDB. |
| Baseline diagnostics | Missing rename sources identify the relevant previousName annotation. |
Upgrade
Use v0.8.17 for the SDK, extension crates and CLI, regenerate the client, and commit the application lockfile. Updating a Cargo dependency does not replace an installed CLI.
For permission fixtures, remove setup that
precreates managed functions. Supply an empty, dedicated PostgreSQL database
with --database-url. Rent loads the functions declared in the project's
rent.toml. A database that already contains managed functions is rejected.
Seed programs can use --database-url, --features,
--all-features and --no-default-features. The URL becomes DATABASE_URL in
the child process. Arguments after -- still go to your seed program.
Tenant IDs remain required and immutable. Keep a separate system allocator if
the database assigns your tenant numbers. Existing @rent.manual annotations
can stay. Review any migration removing an old, unused identity before applying
it, especially if handwritten SQL depends on that identity. SQLite retains its
rowid behavior. See tenant identity.
When creating a fresh baseline, remove completed @rent.previousName and
@@rent.previousName hints. For an existing migration chain, verify its history
before removing a hint.
The query guide also explains how to use application ID wrappers in collection
filters through the existing
IntoBase trait.
