Skip to content

Extract HttpRepository into tuf-hyper, port to hyper 1.x#419

Open
erickt wants to merge 1 commit into
theupdateframework:developfrom
erickt:extract-hyper
Open

Extract HttpRepository into tuf-hyper, port to hyper 1.x#419
erickt wants to merge 1 commit into
theupdateframework:developfrom
erickt:extract-hyper

Conversation

@erickt

@erickt erickt commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

This extracts HttpRepository into its own crate, so its easier for users to not pull in the http stack unless it is necessary. It also updates hyper to 1.x, and adds some examples on how to create a client using tuf-hyper.

This extracts HttpRepository into its own crate, so its easier for
users to not pull in the http stack unless it is necessary. It also
updates hyper to 1.x, and adds some examples on how to create a client
using tuf-hyper.
cx: &mut Context<'_>,
mut cursor: ReadBufCursor<'_>,
) -> Poll<io::Result<()>> {
let buf = unsafe { cursor.as_mut() };

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a comment for this unsafe like "No bytes of buf are un-initialized by this function"

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants