aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-guardmgr/src/bridge/config/err.rs
Commit message (Collapse)AuthorAgeFilesLines
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-4/+4
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Make ChannelMethod non-exhaustiveIan Jackson2022-11-241-0/+12
| | | | | | | | | Enums with variants conditional on cargo features must be non-exhaustive, because cargo features are supposed to be additive, meaning that enabling a feature (which might happen due to some random distant thing) ought not to break things using that enum. There were surprisingly few places to fix this.
* bridge non-support: Provide a better BridgeConfigBuilderIan Jackson2022-11-211-0/+5
| | | | | This type now does all the things people expect of it: you can (try to) deserialize it, parse it from a string, and call build on it.
* bridge config: Feature-gate the error variantsIan Jackson2022-11-211-0/+9
| | | | | | | This leaves this enum empty of actual errors, when bridge-client is disabled. We're going to add the not supported variant in a moment.
* bridge config: Move error to its own fileIan Jackson2022-11-211-0/+106
The dummy module is going to need an error type just like this but with only the disabled variant. To avoid that dummy enum getting out of step with the nontrivial one, we're going to make them the same. So as a first step, break this out into its own file.