This is when I learned that there is also a long-running processes format that uses packet-line to communicate. Thus it doesn't belong in transport anymore, which was the previous 'best fit'. Since it's a serialization format, setting up its own crate makes quite some sense.
Showing the changes to git-protocol/src (1 of 27 files). Show all
Unified · Split
| @@ -1,4 +1,4 @@ | |||
| 1 | use git_transport::RemoteProgress; | 1 | use git_packetline::RemoteProgress; |
| 2 | use nom::{ | 2 | use nom::{ |
| 3 | bytes::complete::{tag, take_till, take_till1}, | 3 | bytes::complete::{tag, take_till, take_till1}, |
| 4 | combinator::{map_res, opt}, | 4 | combinator::{map_res, opt}, |