aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-config-path/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'remove-lint' into 'main'Jim Newsome2026-07-151-1/+1
|\ | | | | | | | | | | | | Removed unnecessary lint Closes #2556 See merge request tpo/core/arti!4210
| * add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
| |
| * Removed unnecessary lintpryty262026-07-151-1/+1
| | | | | | | | Removed unnecessary lint
* | multiple crates: Fix clippy warningshjrgrn2026-07-101-2/+2
|/
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+2
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* config-path: Convert tests to use dd(TorConfig).Nick Mathewson2026-05-181-7/+5
|
* Allow clippy::collapsible_if to triggerGabriela Moldovan2026-02-161-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.
* maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | This adds the lint to all our crates.
* Remove unnecessary `doc(cfg(...))` attributesNeel Chauhan2025-12-041-1/+0
| | | | | | | | | Fixes part of #2193. (Edits from nickm: I selected the cases here that I could verify were correct from immediate context.) Edited-by: Nick Mathewson <[email protected]>
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-2/+2
| | | | Run maint/add_warning
* Remove "doc_auto_cfg" incantation from all crates.Nick Mathewson2025-09-291-1/+1
| | | | This feature has been removed from nightly, in favor of doc_cfg.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-3/+7
| | | | | | | | | | | | | | 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.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* tor-config-path: Removed dependency on `once_cell`hashcatHitman2025-06-141-4/+4
| | | | | | - Replaced `once_cell::sync::Lazy` with `std::sync::LazyLock`. Signed-off-by: hashcatHitman <[email protected]>
* clippy: deny `mod_module_files`Steven Engler2025-01-061-0/+1
| | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* Move base CfgPathResolver for arti-client back to tor-config-path.Nick Mathewson2024-12-091-0/+7
| | | | | This time, we make explicit that it is a _base_ resolver, and that it is client-only.
* add_warnings, *: Allow clippy::needless_lifetimesNick Mathewson2024-12-031-0/+1
| | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765.
* tor-config-path: Note an unused error variantNick Mathewson2024-11-191-0/+2
|
* tor-config-path: add more documentation to `CfgPathResolver`Steven Engler2024-11-181-0/+9
|
* tor-config-path: remove `Option` from resolver valueSteven Engler2024-11-181-13/+18
|
* arti-client: moved two tests from tor-config-pathSteven Engler2024-11-181-23/+0
| | | | Also updated to use the `PATH_RESOLVER` resolver.
* update `CfgPath::path` to use a `CfgPathResolver`Steven Engler2024-11-181-91/+64
| | | | | | | | | | | | | | | | This is a big change across multiple crates since there isn't a good way to break it up. This changes the signature of `CfgPath::path` to: ``` pub fn path(&self, path_resolver: &CfgPathResolver) -> Result<PathBuf, CfgPathError> { ``` Making this change means that our global `CfgPathResolver` needs to be stored in the 'arti-client' library instead of `tor-config-path`, and must be passed through to anything that calls `path` to expand the variables.
* tor-config-path: begin using the `CfgPathResolver`Steven Engler2024-11-181-20/+28
|
* tor-config-path: add unused `CfgPathResolver`Steven Engler2024-11-181-1/+60
|
* tor-config-path: moved 'impl Display for CfgPath' blockSteven Engler2024-11-181-9/+9
|
* tor-config-path: moved two testsSteven Engler2024-11-181-35/+35
| | | | | These tests were in the 'test_serde' module, which wasn't the right place for them.
* tor-config-path: re-enable 'test_parse' testSteven Engler2024-11-041-9/+18
| | | | | The old code used a shortcut to access the `Figment` directly, but we need to do the whole config builder thing to be able to parse the toml.
* New CfgAddr type to represent SocketAddrs in configuration.Nick Mathewson2024-10-311-0/+3
| | | | | This type behaves like a variant of `general::SocketAddr` that allows the Unix variant to be a CfgPath.
* tor-config-path: comment-out a test that relies on 'tor-config'Steven Engler2024-10-291-0/+4
|
* tor-config-path: added lint listSteven Engler2024-10-291-4/+42
|
* tor-config-path: moved `tor_config::path` to hereSteven Engler2024-10-291-0/+504
| | | | This is a direct move of the `path` module from tor-config.
* tor-config-path: added empty packageSteven Engler2024-10-291-0/+0