| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-config: future-proof #[cfg] attribute. | Nick Mathewson | 2026-02-24 | 1 | -17/+17 |
| | | |||||
| * | tor-config: Add an option to reject configured-out options | Nick Mathewson | 2026-02-24 | 1 | -6/+55 |
| | | |||||
| * | tor-config: Have macros document more types and fns | Nick Mathewson | 2026-02-24 | 2 | -0/+3 |
| | | |||||
| * | tor-config: Fix cfg() on sub_builders | Nick Mathewson | 2026-02-24 | 1 | -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. | ||||
| * | Merge branch 'config-migrate-part1' into 'main' | gabi-250 | 2026-02-20 | 2 | -4/+16 |
| |\ | | | | | | | | | Port several crates to derive_deftly(TorConfig) See merge request tpo/core/arti!3691 | ||||
| | * | tor-config: fix and improve ExtendBuilder override. | Nick Mathewson | 2026-02-17 | 2 | -3/+15 |
| | | | | | | | | | | | | | | | | | 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 Mathewson | 2026-02-17 | 1 | -1/+1 |
| | | | |||||
| * | | Document resolve_option_general behavior | moumenalaoui | 2026-02-18 | 1 | -10/+39 |
| |/ | |||||
| * | Allow clippy::collapsible_if to trigger | Gabriela Moldovan | 2026-02-16 | 1 | -0/+1 |
| | | | | | | | | | | `clippy::collapsible_if` started triggering after bumping the MSRV to 1.88. Since this triggers from a lot of places, and since there even are a couple of instances where we explicitly allow `clippy::collapsible_ifs`, I've opened #2342 for deciding what to do about it. | ||||
| * | Merge branch 'feature/cmdline-paths' into 'main' | Nick Mathewson | 2026-02-09 | 1 | -2/+10 |
| |\ | | | | | | | | | Allow to set paths in CLI arguments See merge request tpo/core/arti!3556 | ||||
| | * | Expand allowable unquoted syntax for configuration arguments in CLI. | carti-it | 2026-02-09 | 1 | -2/+10 |
| | | | | | | | | | The set of allowable characters now includes colon, dot, slash, and backslash. This makes it a bit more convenient to pass in paths. | ||||
| * | | tor-config: remove `resolve_alternative_specs` function | Steven Engler | 2026-02-01 | 1 | -81/+0 |
| | | | |||||
| * | | arti: remove `resolve_listen_port!` macro | Steven Engler | 2026-01-29 | 1 | -3/+5 |
| | | | | | | | | | | | | | I'm undecided whether we want to keep `resolve_alternative_specs` around, but it seems possible/likely that we'll want it in the future, so I think we can keep it. | ||||
| * | | maint/add_warning: Run script to add new warning | Gabriela Moldovan | 2026-01-27 | 1 | -0/+1 |
| |/ | | | | This adds the lint to all our crates. | ||||
| * | tor-config: small typo fix in docs | Steven Engler | 2026-01-07 | 1 | -1/+2 |
| | | |||||
| * | tor_config::listen: Warn on explicit port zero. | Nick Mathewson | 2025-12-16 | 1 | -2/+17 |
| | | |||||
| * | tor_config::Listen: Add methods to check for auto and port 0. | Nick Mathewson | 2025-12-16 | 1 | -0/+37 |
| | | |||||
| * | tor_config::Listen: Add "auto" items | Nick Mathewson | 2025-12-16 | 1 | -7/+55 |
| | | | | | These are a nicer syntax than using port "0" explicitly. | ||||
| * | tor_config::Listen: Deprecate localhost_port_legacy. | Nick Mathewson | 2025-12-16 | 1 | -1/+5 |
| | | | | | Nothing actually uses it any more, which is good. | ||||
| * | tor_config::Listen: Refactor legacy methods. | Nick Mathewson | 2025-12-16 | 1 | -22/+26 |
| | | | | | | Have the part of them that does the "no multiple addresses" work be common, so that we can simplify how they actually behave. | ||||
| * | tor-config: Make derive(Flattenable) use $crate. | Nick Mathewson | 2025-12-09 | 1 | -4/+3 |
| | | |||||
| * | Revert "tor-config: Code to serialize Option<Option<Duration>> via humantime" | Nick Mathewson | 2025-12-09 | 3 | -28/+0 |
| | | | | | This reverts commit c7c8eb5a03439ce31319389183e64cb0db539fc9. | ||||
| * | tor-config: new derive_deftly(TorConfig) template. | Nick Mathewson | 2025-12-09 | 2 | -0/+3040 |
| | | | | | | | | | 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. | ||||
| * | tor-config: New Buildable trait. | Nick Mathewson | 2025-12-09 | 1 | -2/+18 |
| | | | | | | | | | This trait will be implemented by every type that our derive_deftly(TorConfig) template generates. It will, among other things, help us figure out the Builder type for a given config type in cases where string-pasting magic is intractable, or where we want to use assert_not_impl to double-check the attributes. | ||||
| * | tor-config: Helper types for setters to take as arguments | Nick Mathewson | 2025-12-09 | 2 | -0/+135 |
| | | | | | | The derive-deftly TorConfig template will use these as appropriate for the inputs to setter functions, based on field types. | ||||
| * | tor-config: Code to serialize Option<Option<Duration>> via humantime | Nick Mathewson | 2025-12-09 | 3 | -0/+28 |
| | | |||||
| * | tor_config: Make ListBuilders implement ExtendBuilder. | Nick Mathewson | 2025-12-09 | 1 | -0/+11 |
| | | |||||
| * | tor-config: Give Flattenable template a location. | Nick Mathewson | 2025-12-09 | 1 | -0/+1 |
| | | | | | | | If we don't do this, then any attempt to use it from a derive-deftly template will cause a warning about referring to it as $crate::macroname. | ||||
| * | tor-config: Allow Flattenable to apply to types with generics. | Nick Mathewson | 2025-12-09 | 1 | -1/+2 |
| | | |||||
| * | map_builder: Alternative syntax for use by derive(TorConfig) | Nick Mathewson | 2025-12-09 | 1 | -5/+51 |
| | | | | | | | | | | | derive_deftly wants to expand types before passing them to macro_rules macros, which is quite reasonable. But map_builder wants its input collection type to be an `ident`, not a `path`. (And macro_rules doesn't accept `path` before a `<`.) To fix this, we're providing an alternative syntax for map_builder, where the inputs are the map type and the builder map type. | ||||
| * | extend_builder: Implement ExtendBuilder for HashMap. | Nick Mathewson | 2025-12-09 | 1 | -1/+17 |
| | | |||||
| * | tor-config: missing #[allow(dead_code)] in derive_list_builder_helper | Nick Mathewson | 2025-12-09 | 1 | -0/+1 |
| | | |||||
| * | tor-config: missing $crate in derive_list_builder_helper | Nick Mathewson | 2025-12-09 | 1 | -1/+1 |
| | | |||||
| * | tor-config: obviate need for Educe in derive_list_builder_helper | Nick Mathewson | 2025-12-09 | 1 | -2/+11 |
| | | | | | | | We were only using it for Default, and it is easier to implement Default by hand than it is to keep this particular layer in our leaning tower of macros. | ||||
| * | tor-config: improve comments about adding functionality | Steven Engler | 2025-12-02 | 1 | -5/+7 |
| | | |||||
| * | tor-config: add more comments to `ListenItem` | Steven Engler | 2025-12-02 | 1 | -1/+10 |
| | | |||||
| * | tor-config: rename `Listen::is_localhost_only` to `is_loopback_only` | Steven Engler | 2025-12-02 | 1 | -2/+10 |
| | | | | | Assumes that 0.37.0 will be the next version number. | ||||
| * | tor-config: add new `CustomizableListen` | Steven Engler | 2025-12-02 | 1 | -101/+193 |
| | | |||||
| * | tor-config: fix some localhost vs loopback names/comments | Steven Engler | 2025-11-14 | 1 | -4/+5 |
| | | |||||
| * | tor-config: made `InvalidListen` private | Steven Engler | 2025-11-14 | 1 | -1/+1 |
| | | | | | There was no reason for this to be public. | ||||
| * | tor-config: simplify a match statement | Steven Engler | 2025-11-14 | 1 | -8/+4 |
| | | | | | This does a little extra cloning, but I think is easier to read. | ||||
| * | tor-config: add serde error messages to `ListenSerde` and `ListenItemSerde` | Steven Engler | 2025-11-14 | 1 | -2/+13 |
| | | | | | | | | | | | | | | | | | | | | | For example the old message would look like: ```text target/debug/arti: error: read configuration: Config contents not as expected: Couldn't load configuration: data did not match any variant of untagged enum ListenSerde for key "default.proxy.socks_listen" in command line ``` The new message looks like: ```text target/debug/arti: error: read configuration: Config contents not as expected: Couldn't load configuration: value was not a bool, `u16` integer, string, or list of integers/strings for key "default.proxy.socks_listen" in command line ``` | ||||
| * | tor-config: add more tests for `Listen` | Steven Engler | 2025-11-14 | 1 | -0/+81 |
| | | |||||
| * | tor-config: remove unneeded `Serialize`/`Deserialize` | Steven Engler | 2025-11-13 | 1 | -2/+1 |
| | | |||||
| * | tor-config: fix error source for `ConfigLoadError` | Steven Engler | 2025-11-13 | 1 | -1/+7 |
| | | |||||
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 13 | -14/+14 |
| | | | | | Run maint/add_warning | ||||
| * | tor-config: remove stale comment on `ConfigurationSources::try_from_cmdline` | Steven Engler | 2025-10-08 | 1 | -2/+0 |
| | | |||||
| * | tor-config: add `ConfigurationSources::options()` | Steven Engler | 2025-10-08 | 1 | -0/+7 |
| | | |||||
| * | Remove "doc_auto_cfg" incantation from all crates. | Nick Mathewson | 2025-09-29 | 1 | -1/+1 |
| | | | | | This feature has been removed from nightly, in favor of doc_cfg. | ||||
| * | config: clarify TODO on PaddingLevel. | Nick Mathewson | 2025-09-17 | 1 | -1/+3 |
| | | |||||
