summaryrefslogtreecommitdiff
path: root/crates/tor-config/src/derive.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-config: future-proof #[cfg] attribute.Nick Mathewson2026-02-241-17/+17
|
* tor-config: Add an option to reject configured-out optionsNick Mathewson2026-02-241-6/+55
|
* tor-config: Have macros document more types and fnsNick Mathewson2026-02-241-0/+2
|
* tor-config: Fix cfg() on sub_buildersNick Mathewson2026-02-241-0/+12
| | | | | Previously, it used the sub_builder rule, which doesn't make sense when the value is a stub place-holder to tell us whether to warn.
* tor-config: fix and improve ExtendBuilder override.Nick Mathewson2026-02-171-3/+7
| | | | | | | | 1. When we are told to `extend_with`, we should obey that directive even if we have a sub_builder etc. 2. Provide an `extend_with_replace` function for the common case where we want to just replace one object with another.
* tor-config: derive list builders with the visibility of their setters.Nick Mathewson2026-02-171-1/+1
|
* tor-config: new derive_deftly(TorConfig) template.Nick Mathewson2025-12-091-0/+3039
This template is meant to replace most of our use of derive_builder for configuration objects. Where possible and reasonable, it delegates to existing macros, and automatically infers what special patterns we use for individual types. In other cases, it uses compile-time errors to inform the caller about pattern violations.