6 releases
0.4.7 | Sep 27, 2021 |
---|---|
0.4.6 | Sep 20, 2021 |
0.3.4 | Sep 12, 2021 |
0.2.1 |
|
0.1.0 |
|
#1223 in Encoding
29KB
730 lines
ssh_mux_format
This crate is now renamed to ssh_format.
Data format used to communicate with openssh mux server.
Format details:
- All integers are encoded in big endian;
- Boolean are encoded as
u32
according to here; char
are encoded asu32
;- Strings and bytes are encoded as length(
u32
) + content, same assshbuf_put_string
; Option::None
are omitted whileOption::Some(v)
has the same encoding asv
since openssh mux protocol allows optional parameter at the end of the message;- struct/tuple are encoded as-is, unit struct/tuple are omitted;
- sequence are encoded as if it is a tuple according to here, thus it cannot be deserialized;
- Variant is encoded as index(
u32
) + content encoded as-is (it is expected to manually implementSerialize
andDeserialize
to ensure thevariant_index
is the one you expected); - Serializing/Deserializing map is unsupported;
Feature
is_human_readable
enablesSerializer::is_human_readable
andDeserializer::is_human_readable
.
Dependencies
~100–330KB