Titouan Rigoudy
|
d718e8d883
|
Define workspace and client crate.
|
4 years ago |
Titouan Rigoudy
|
27b65eec60
|
Support graceful stream shutdown in client and server.
This requires amending the FrameStream::read() interface to report
when EOF has been reached.
|
4 years ago |
Titouan Rigoudy
|
51464e2251
|
Implement FakeServer graceful shutdown.
|
4 years ago |
Titouan Rigoudy
|
7ba1b64451
|
Shut down writer when client runs out of requests.
|
4 years ago |
Titouan Rigoudy
|
903864f1cd
|
Define proto::core module.
|
4 years ago |
Titouan Rigoudy
|
45842cdf93
|
Rename value_codec.rs to value.rs.
|
4 years ago |
Titouan Rigoudy
|
381ec05247
|
Set indent width to 2.
|
4 years ago |
Titouan Rigoudy
|
587078403c
|
Run cargo fmt.
|
4 years ago |
Titouan Rigoudy
|
91d2387ffd
|
Rename codec.rs to frame.rs.
|
4 years ago |
Titouan Rigoudy
|
1b69daf783
|
Rename Connection to FrameStream.
|
4 years ago |
Titouan Rigoudy
|
12f85fbaa9
|
Move Connection into codec.rs.
|
4 years ago |
Titouan Rigoudy
|
83620698fd
|
Set 80-char line width.
|
4 years ago |
Titouan Rigoudy
|
70bf234947
|
Introduce simple Connection to send and receive frames.
|
4 years ago |
Titouan Rigoudy
|
e147ab7076
|
Update `bytes` dependency to 1.0.
|
4 years ago |
Titouan Rigoudy
|
da74ff8d4e
|
Re-use BytesMut for encoding and decoding.
Refactor LengthPrefixed{De, En}coder to Frame{De,En}coder.
|
5 years ago |
Titouan Rigoudy
|
c7471d65df
|
Extract prefix encoding logic into Prefixer.
|
5 years ago |
Titouan Rigoudy
|
59a9f6bf90
|
Rename base_codec.rs to value_codec.rs.
|
5 years ago |
Titouan Rigoudy
|
b18fe56f05
|
Rename Proto{En,De}code to Value{En,De}code.
|
5 years ago |
Titouan Rigoudy
|
7bb290f0ef
|
Introduce ProtoEncodeError and use it in ProtoEncoder.
Tests are not fixed yet.
|
5 years ago |
Titouan Rigoudy
|
6dee714bfd
|
Run cargo fmt.
|
6 years ago |
Titouan Rigoudy
|
0e2e684b26
|
Use doc comments in codec.rs some more.
|
6 years ago |
Titouan Rigoudy
|
f78448d3e8
|
Upgrade to Rust 2018 edition.
|
6 years ago |
Titouan Rigoudy
|
8faee7dbea
|
Rename {En,De}coder to LengthPrefixed{En,De}coder.
|
7 years ago |
Titouan Rigoudy
|
b55307f123
|
Introduce length-prefixed Tokio decoder.
|
7 years ago |
Titouan Rigoudy
|
a1971b047e
|
Implement length-prefixed encoding for Tokio.
|
7 years ago |
Titouan Rigoudy
|
9dbb5c37c2
|
Implement tokio_codec::Decoder for all message types.
|
7 years ago |
Titouan Rigoudy
|
94a5ba0229
|
Implement tokio_codec::Encoder for all message types.
|
7 years ago |
Titouan Rigoudy
|
c8a4e8fe74
|
Add src::proto::codec for Tokio integration.
|
7 years ago |
Titouan Rigoudy
|
e76ed364a6
|
Rename proto::codec to proto::base_codec.
|
7 years ago |
Titouan Rigoudy
|
da6aa38593
|
Run rustfmt.
|
7 years ago |
Titouan Rigoudy
|
f9de193b02
|
Fix unused imports.
|
7 years ago |
Titouan Rigoudy
|
5a980dbba1
|
Replace ProtoDecode with Decode, remove ProtoDecoder.
|
7 years ago |
Titouan Rigoudy
|
766d11d564
|
Remove DecodeError, use io::Error instead.
|
7 years ago |
Titouan Rigoudy
|
24da031b3b
|
Implement Proto{De,En}code for pairs.
|
7 years ago |
Titouan Rigoudy
|
2118586fee
|
Implement ProtoDecode for RoomJoinResponse.
|
7 years ago |
Titouan Rigoudy
|
25a3250667
|
Implement ProtoEncode for RoomJoinResponse.
|
7 years ago |
Titouan Rigoudy
|
0a58bfde91
|
Add round-trip encoding test for basic protocol types.
|
7 years ago |
Titouan Rigoudy
|
65ef05ed06
|
Implement Proto{De,En}code for ServerRequest.
|
7 years ago |
Titouan Rigoudy
|
de7025edc8
|
Implement ProtoDecode and ProtoEncode for peer messages.
|
7 years ago |
Titouan Rigoudy
|
1f94a399fc
|
Add ServerTransport.
|
7 years ago |
Titouan Rigoudy
|
fbaa25d57e
|
Run (deprecated, old, stable-compatible) rustfmt.
|
7 years ago |
Titouan Rigoudy
|
92c30a6c6d
|
Introduce bytes crate, use it for Proto{De,En}code{,r}.
|
7 years ago |
Titouan Rigoudy
|
87a6543cb9
|
Add vector serialization test to proto codec.
|
8 years ago |
Titouan Rigoudy
|
13a4ff6fa5
|
Add proto::codec module with encoding and decoding for basic types.
|
8 years ago |