1
0

respecting the re-export of protocol models

This commit is contained in:
EAimTY 2023-02-05 18:51:49 +09:00
parent feb0eaea66
commit b67e27c9c3
9 changed files with 9 additions and 13 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "tuic"
version = "5.0.0-pre-alpha4"
version = "5.0.0-pre-alpha5"
authors = ["EAimTY <ea.imty@gmail.com>"]
description = "Delicately-TUICed 0-RTT proxy protocol"
categories = ["network-programming"]

View File

@ -1,6 +1,4 @@
use crate::protocol::{
Address, Authenticate, Connect, Dissociate, Header, Heartbeat, Packet, VERSION,
};
use crate::{Address, Authenticate, Connect, Dissociate, Header, Heartbeat, Packet, VERSION};
use bytes::BufMut;
use futures_util::{AsyncWrite, AsyncWriteExt};
use std::{

View File

@ -1,5 +1,5 @@
use super::side::{self, Side};
use crate::protocol::{Authenticate as AuthenticateHeader, Header};
use crate::{Authenticate as AuthenticateHeader, Header};
use std::fmt::{Debug, Formatter, Result as FmtResult};
use uuid::Uuid;

View File

@ -1,5 +1,5 @@
use super::side::{self, Side};
use crate::protocol::{Address, Connect as ConnectHeader, Header};
use crate::{Address, Connect as ConnectHeader, Header};
use register_count::Register;
use std::fmt::{Debug, Formatter, Result as FmtResult};

View File

@ -1,5 +1,5 @@
use super::side::{self, Side};
use crate::protocol::{Dissociate as DissociateHeader, Header};
use crate::{Dissociate as DissociateHeader, Header};
use std::fmt::{Debug, Formatter, Result as FmtResult};
/// The model of the `Dissociate` command

View File

@ -1,5 +1,5 @@
use super::side::{self, Side};
use crate::protocol::{Header, Heartbeat as HeartbeatHeader};
use crate::{Header, Heartbeat as HeartbeatHeader};
use std::fmt::{Debug, Formatter, Result as FmtResult};
pub struct Heartbeat<M> {

View File

@ -1,6 +1,6 @@
//! An abstraction of a TUIC connection, with packet fragmentation management and task counters. No I/O operation is involved internally
use crate::protocol::{
use crate::{
Address, Authenticate as AuthenticateHeader, Connect as ConnectHeader,
Dissociate as DissociateHeader, Heartbeat as HeartbeatHeader, Packet as PacketHeader,
};

View File

@ -2,7 +2,7 @@ use super::{
side::{self, Side},
Assemblable, AssembleError, UdpSessions,
};
use crate::protocol::{Address, Header, Packet as PacketHeader};
use crate::{Address, Header, Packet as PacketHeader};
use parking_lot::Mutex;
use std::{
fmt::{Debug, Formatter, Result as FmtResult},

View File

@ -1,6 +1,4 @@
use crate::protocol::{
Address, Authenticate, Connect, Dissociate, Header, Heartbeat, Packet, VERSION,
};
use crate::{Address, Authenticate, Connect, Dissociate, Header, Heartbeat, Packet, VERSION};
use futures_util::{AsyncRead, AsyncReadExt};
use std::{
io::{Error as IoError, Read},