summaryrefslogtreecommitdiff
path: root/crates/tor-config/src/cmdline.rs
Commit message (Collapse)AuthorAgeFilesLines
* Convert tor-config to use figment.Nick Mathewson2024-04-221-35/+19
| | | | | There are probably ways to make this a bit more elegant, but at least the tests still pass.
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-231-0/+1
|
* Run maint/add_warning to actually apply new lint allowsIan Jackson2023-07-101-0/+1
|
* Use bool::then_some() as appropriateNick Mathewson2023-04-111-1/+1
| | | | | | Now that we require a version of Rust that allows `b.then_some(v)`, clippy complains about our use of `b.then(|| v)`.
* Allow clippy::unchecked_duration_subtraction in testsNick Mathewson2023-01-271-0/+1
| | | | | This panics on error, and we're fine with a panic on misbehavior in tests.
* Upgrade toml to version 0.6.Nick Mathewson2023-01-251-27/+41
| | | | | | | This required rewriting some of our error handling code in command-line processing, since the toml crate now displays and reports errors differently. (Admittedly, this code still is kind of ugly, but at least it is nicely hidden.)
* test lint blocks: Add many many automaticallyIan Jackson2022-12-121-0/+8
| | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* arti-config: Move cmdline to tor-configIan Jackson2022-05-111-0/+205
| | | | | | This does not know anything about arti, only about TOML and Config. Code motion, plus necessary import adjustments.
* Move top-level configuration downwards from `arti` to `arti-config`.Nick Mathewson2021-11-181-185/+0
| | | | | | | | To do this at all neatly, I had to split out `tor-config` from `arti-config` again, and putting the lower level stuff (paths, builder errors) into tor-config. I also changed our use of derive_builder to always use a common error type, to avoid error type proliferation.
* Remove #![allow(clippy::unwrap_used)] in cmdline.rsNick Mathewson2021-10-211-1/+0
|
* Fix most warnings from nightly.Nick Mathewson2021-10-191-0/+1
| | | | (One represents code that I forgot to write.)
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+2
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+183
This will cause some pain for now, but now is really the best time to do this kind of thing.