summaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/encode.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: Rename ItemArgument method to write_arg_ontoIan Jackson2025-11-261-9/+9
| | | | | | | tor_bytes also has a write_onto method. And types (especially utility types like `Ignored`) might conceivably implement both! No need for semver update since this was pub(crate) in the previous release.
* tor-netdoc: encode: Explain why NetdocEncoder contains a ResultIan Jackson2025-11-191-1/+2
|
* tor-netdoc: impl Default for NetdocEncoderIan Jackson2025-11-181-0/+7
| | | | | clippy points out that if argument-less `new` can exist, so should Default.
* tor-netdoc: Make much more of the encode module contents publicIan Jackson2025-11-181-13/+12
| | | | | My planned new derive for encoding will be pub, but cfg gated, like parse2 is.
* tor-netdoc: Add a note about the nature of NetdocBuilderIan Jackson2025-11-181-1/+13
|
* tor-netdoc: Split off Keyword::to_str into its own traitIan Jackson2025-11-181-2/+2
| | | | | My planned encoding derive macro is not going to use `decl_keyword!` but will need to call `NetdocEncoder::item`.
* tor-netdoc: Rename the `build` module to `encode`Ian Jackson2025-11-101-0/+435
The word "build" so often in Rust means builder pattern. This module contains functions for encoding.