Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge patch #16

Merged
merged 24 commits into from
Nov 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename project to rh2
0x676e67 committed Aug 11, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
mmarchini mary marchini
commit f51b66b1301164dfb5baefaf3241140ef11384ea
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "h2-patch"
name = "rh2"
# When releasing to crates.io:
# - Update CHANGELOG.md.
# - Create git tag
@@ -8,8 +8,8 @@ license = "MIT"
authors = ["0x676e67 <gngppz@gmail.com>"]
description = "An HTTP/2 client and server"
homepage = "https://github.com/crates-patch"
documentation = "https://docs.rs/h2-patch"
repository = "https://github.com/crates-patch/h2-patch"
documentation = "https://docs.rs/rh2"
repository = "https://github.com/crates-patch/rh2"
readme = "README.md"
keywords = ["http", "async", "non-blocking"]
categories = ["asynchronous", "web-programming", "network-programming"]
2 changes: 1 addition & 1 deletion benches/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use h2_patch as h2;
use bytes::Bytes;
use h2::{
client,
server::{self, SendResponse},
RecvStream,
};
use http::Request;
use rh2 as h2;

use std::{
error::Error,
2 changes: 1 addition & 1 deletion examples/akamai.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use h2::client;
use h2_patch as h2;
use http::{Method, Request};
use rh2 as h2;
use tokio::net::TcpStream;
use tokio_rustls::TlsConnector;

2 changes: 1 addition & 1 deletion examples/client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use h2::client;
use h2_patch as h2;
use http::{HeaderMap, Request};
use rh2 as h2;

use std::error::Error;

2 changes: 1 addition & 1 deletion examples/server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use h2_patch as h2;
use rh2 as h2;
use std::error::Error;

use bytes::Bytes;
2 changes: 1 addition & 1 deletion tests/h2-fuzz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ license = "MIT"
edition = "2018"

[dependencies]
h2-patch = { path = "../.." }
rh2 = { path = "../.." }

env_logger = { version = "0.9", default-features = false }
futures = { version = "0.3", default-features = false, features = ["std"] }
2 changes: 1 addition & 1 deletion tests/h2-fuzz/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use futures::future;
use futures::stream::FuturesUnordered;
use futures::Stream;
use h2_patch as h2;
use http::{Method, Request};
use rh2 as h2;
use std::future::Future;
use std::io;
use std::pin::Pin;
2 changes: 1 addition & 1 deletion tests/h2-support/Cargo.toml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ publish = false
edition = "2018"

[dependencies]
h2-patch = { path = "../..", features = ["stream", "unstable"] }
rh2 = { path = "../..", features = ["stream", "unstable"] }

atty = "0.2"
bytes = "1"
2 changes: 1 addition & 1 deletion tests/h2-support/src/assert.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use h2_patch as h2;
use rh2 as h2;
#[macro_export]
macro_rules! assert_closed {
($transport:expr) => {{
2 changes: 1 addition & 1 deletion tests/h2-support/src/client_ext.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use bytes::Buf;
use h2::client::{ResponseFuture, SendRequest};
use h2_patch as h2;
use http::Request;
use rh2 as h2;

/// Extend the `h2::client::SendRequest` type with convenience methods.
pub trait SendRequestExt {
2 changes: 1 addition & 1 deletion tests/h2-support/src/frames.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use h2_patch as h2;
use rh2 as h2;
use std::convert::TryInto;
use std::fmt;

2 changes: 1 addition & 1 deletion tests/h2-support/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Utilities to support tests.

use h2_patch as h2;
use rh2 as h2;
#[macro_use]
pub mod assert;

2 changes: 1 addition & 1 deletion tests/h2-support/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::SendFrame;
use h2_patch as h2;
use rh2 as h2;

use h2::frame::{self, Frame};
use h2::proto::Error;
2 changes: 1 addition & 1 deletion tests/h2-support/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Re-export H2 crate
pub use h2_patch as h2;
pub use rh2 as h2;

pub use h2::client;
pub use h2::ext::Protocol;
2 changes: 1 addition & 1 deletion tests/h2-support/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use h2_patch as h2;
use rh2 as h2;

use bytes::{BufMut, Bytes};
use futures::ready;