Skip to content

Commit 7944e0f

Browse files
gretchenfrageRalith
authored andcommitted
proto: Fix missing re-exports
1 parent 8c66491 commit 7944e0f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: quinn-proto/src/frame.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use crate::{
1818
#[cfg(feature = "arbitrary")]
1919
use arbitrary::Arbitrary;
2020

21+
/// A QUIC frame type
2122
#[derive(Copy, Clone, Eq, PartialEq)]
2223
pub struct FrameType(u64);
2324

@@ -55,7 +56,7 @@ pub(crate) trait FrameStruct {
5556
macro_rules! frame_types {
5657
{$($name:ident = $val:expr,)*} => {
5758
impl FrameType {
58-
$(pub const $name: FrameType = FrameType($val);)*
59+
$(pub(crate) const $name: FrameType = FrameType($val);)*
5960
}
6061

6162
impl fmt::Debug for FrameType {

Diff for: quinn-proto/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ pub use crate::connection::{
4646
WriteError, Written,
4747
};
4848

49+
#[cfg(feature = "rustls")]
50+
pub use rustls;
51+
4952
mod config;
5053
pub use config::{
5154
AckFrequencyConfig, ClientConfig, ConfigError, EndpointConfig, IdleTimeout, MtuDiscoveryConfig,
@@ -56,7 +59,7 @@ pub mod crypto;
5659

5760
mod frame;
5861
use crate::frame::Frame;
59-
pub use crate::frame::{ApplicationClose, ConnectionClose, Datagram};
62+
pub use crate::frame::{ApplicationClose, ConnectionClose, Datagram, FrameType};
6063

6164
mod endpoint;
6265
pub use crate::endpoint::{

0 commit comments

Comments
 (0)