summaryrefslogtreecommitdiff
path: root/tor-config/src
Commit message (Collapse)AuthorAgeFilesLines
* Add noop_method_call warning.Nick Mathewson2021-05-271-0/+1
| | | | | | This would have saved ahf and me a lot of confusion in debugging a situation where we were cloning a reference of a type that didn't implement Clone.
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* Module docs for remaining cratesNick Mathewson2021-05-251-2/+8
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-182-2/+3
| | | | | | This is a somewhat obnoxious change in its scope and requirements, but it makes it easier to understand what the real public and private parts of our APIs are.
* Resolve clippy warnings from Rust 1.52.Nick Mathewson2021-05-071-5/+1
| | | | | | | | | | Rust 1.52 just came out, and there are new clippy lints to deal with: * It spots more cases when we could use Option::map * It spots more cases when we could use Iterator::flatten * When we build a struct instance, it wants us to list the fields in the same order that the struct declares them.
* Add trait_duplication_in_bounds warning.Nick Mathewson2021-05-031-0/+1
|
* Add unseparated_literal_suffix lint, and fix it.Nick Mathewson2021-05-031-0/+1
|
* Add a few more clippy warningsNick Mathewson2021-05-031-0/+5
|
* Add some more clippy warnings to our list.Nick Mathewson2021-04-271-1/+6
|
* Enforce (and obey) clippy lints about exhaustive enums, structs.Nick Mathewson2021-04-271-0/+3
| | | | | | | | These lints force us to declare our exported enums and exhaustive-looking structs as non-exhaustive (so that we can add to them in the future without breaking our API) or to explicitly disable the warning for a given enum/struct (to say that we _intend_ for additions to be a breaking change).
* More tests in tor-configNick Mathewson2021-04-211-0/+73
|
* tor-config: fix a new clipppy warning.Nick Mathewson2021-03-291-1/+1
|
* Allow spaces in command-line arguments againNick Mathewson2021-03-121-1/+3
|
* Avoid most regex features.Nick Mathewson2021-03-101-10/+5
|
* Avoid unwrap() in tor-configNick Mathewson2021-03-041-5/+8
|
* Add some tests for tor_config::CfgPathNick Mathewson2021-02-122-1/+46
|
* Implement storage-directory configuration.Nick Mathewson2021-02-122-3/+116
| | | | | | | This affects the cache_dir and the as-yet-unused state_dir. It uses the shellexpand and directories crates so that the default values can be constant strings that use variables to refer to the right default locations.
* Initial support for configuration from file and/or command-line.Nick Mathewson2021-02-021-0/+62
|
* Start a 'tor-config' crateNick Mathewson2021-02-012-0/+198
This crate is mainly intended to wrap the config.rs code if necessary, and to give a way for interacting with it on the command line.