Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adds support for zero-copy FromSql derive#1070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
PipelineBaron wants to merge4 commits intorust-postgres:master
base:master
Choose a base branch
Loading
fromPipelineBaron:zero-copy-fromsql-derive

Conversation

PipelineBaron
Copy link

Similar in spirit and implementation to howserde supports borrowed deserialization lifetimes. Likeserde, it uses'de as the lifetime of the trait (FromSql<'de>) and it adds all borrowed liftimes as lifetime bounds on'de.

Also likeserde all top level references automatically have their lifetimes borrowed, but container types carrying references must explicity be borrowed with the#[postgres(borrow)] annotation.

Follows up on:#574

Similar in spirit and implementation to how `serde` supports borroweddeserialization lifetimes. Like `serde`, it uses `'de` as the lifetimeof the trait (`FromoSql<'de>`) and it adds all borrowed liftimes aslifetime bounds on `'de`.Also like `serde` all top level references automatically have theirlifetimes borrowed, but container types carrying references mustexplicity be borrowed with the `#[postgres(borrow)]` annotation.
@PipelineBaron
Copy link
Author

Can anyone w/ maintainer privileges please kick off the test workflow 🙏

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sfacklersfacklerAwaiting requested review from sfackler

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@PipelineBaron@sfackler

[8]ページ先頭

©2009-2025 Movatter.jp