respecting the re-export of protocol models
This commit is contained in:
parent
feb0eaea66
commit
b67e27c9c3
@ -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"]
|
||||
|
@ -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::{
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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
|
||||
|
@ -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> {
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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},
|
||||
|
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user