Skip to content

Commit

Permalink
proto: Fix missing re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchenfrage committed Nov 12, 2024
1 parent 974f324 commit 953db94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion quinn-proto/src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use crate::{
#[cfg(feature = "arbitrary")]
use arbitrary::Arbitrary;

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

Expand Down Expand Up @@ -55,7 +56,7 @@ pub(crate) trait FrameStruct {
macro_rules! frame_types {
{$($name:ident = $val:expr,)*} => {
impl FrameType {
$(pub const $name: FrameType = FrameType($val);)*
$(pub(crate) const $name: FrameType = FrameType($val);)*
}

impl fmt::Debug for FrameType {
Expand Down
5 changes: 4 additions & 1 deletion quinn-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ pub use crate::connection::{
WriteError, Written,
};

#[cfg(feature = "rustls")]
pub use rustls;

mod config;
pub use config::{
AckFrequencyConfig, ClientConfig, ConfigError, EndpointConfig, IdleTimeout, MtuDiscoveryConfig,
Expand All @@ -56,7 +59,7 @@ pub mod crypto;

mod frame;
use crate::frame::Frame;
pub use crate::frame::{ApplicationClose, ConnectionClose, Datagram};
pub use crate::frame::{ApplicationClose, ConnectionClose, Datagram, FrameType};

mod endpoint;
pub use crate::endpoint::{
Expand Down

0 comments on commit 953db94

Please sign in to comment.