Rent v0.8.14
Rent v0.8.14 reduces the work Rust applications need to repeat when compiling calls to a generated client.
Query and mutation execution, permission operations and transactions return an explicitly Send future
that hides the operation's implementation from its caller.
Familiar calls
Keep using the same typed builders and .await syntax:
let posts = client.post().all().await?;
let post = client
.create_post()
.title("A shared draft")
.author_id(maya.id)
.save()
.await?;Creating an operation future remains lazy. Database work and callbacks begin when the future is polled. Borrowed operations retain their input lifetimes.
Send requirements
Transaction callbacks, the futures they produce and their results must be Send. This also applies to
application error types used by transaction_app and test_transaction. Local values can still be borrowed
by a callback. A 'static lifetime is not required.
Use thread-safe shared ownership, such as Arc, when a callback needs it. Capturing Rc, or retaining
non-Send state across an .await, does not satisfy the new contract. Custom projection values and outputs
used by query execution must also be Send. Generic application helpers may need corresponding bounds.
See transactions and query execution for the complete usage contracts.
Upgrade
Pin the SDK, extension crates and CLI to v0.8.14, regenerate the client, and commit the consumer lockfile. Keep all Rent packages on the same source and revision. Existing schemas do not need a migration for this change. Applications do not need to add their own boxed-future wrappers around generated client operations.
