aboutsummaryrefslogtreecommitdiff
path: root/tor-dirmgr/src
Commit message (Collapse)AuthorAgeFilesLines
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2714-6492/+0
| | | | | This will cause some pain for now, but now is really the best time to do this kind of thing.
* Tweaks on patch to add clippy::unwrap_used lint.Nick Mathewson2021-08-272-5/+19
| | | | | | | The most frequent changes are: - Rewording messages about poisoned locks - Correcting some error types
* Merge remote-tracking branch 'origin/mr/67' into unwrap_usedNick Mathewson2021-08-276-5/+17
|\
| * WIP: Add the "unwrap_used" lint.S0AndS02021-08-246-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Check `unwrap_used` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_used This adds the following Clippy configuration to crates; #![deny(clippy::unwrap_used)] **Warning** while tests and compiler do not show any errors, the submitted changes are very much a Work In Progress and mistakes may have been made. Check https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/67 Merge Request thread for more details.
* | Updates for reproducible build docsNick Mathewson2021-08-261-0/+7
|/
* Switch all uses of the log crate to the tracing.Jani Monoses2021-08-203-3/+3
| | | | Issue #74
* Fix a few things that the "typos" tool didn't like.Nick Mathewson2021-08-202-3/+3
|
* Typo fixes.Nick Mathewson2021-08-201-1/+1
|
* Revisions based on new documented-panics lint.Nick Mathewson2021-08-181-7/+10
| | | | | I've tried to remove some of possible panics, and improve the documentation for when the others might occur.
* Merge remote-tracking branch 'origin/mr/60'Nick Mathewson2021-08-181-0/+6
|\
| * Add the "missing_panics_doc" lint.S0AndS02021-08-131-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | > Check `missing_panics_doc` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc This adds the following Clippy configuration to crates; #![deny(clippy::missing_panics_doc)] And adds necessary doc-comments to methods that may panic.
* | Add the "implicit_clone" lint.S0AndS02021-08-171-0/+1
|/ | | | | | | | | | | | | | > Check `implicit_clone` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#implicit_clone This adds, and addresses, the following Clippy configuration to crates; #![deny(clippy::implicit_clone)] And moves related line within `maint/add_warning.py` file. My intent is to mitigate extra edits after merging, so please let me know if I need to do this last bit differently.
* Use add_warnings.py for clippy::cast_losslessNick Mathewson2021-08-131-1/+1
|
* Add the "cast_lossless" lint.S0AndS02021-08-122-2/+3
| | | | | | | | | | | | > Check `cast_lossless` section of Clippy documentation for details; > > https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless This adds the following Clippy configuration to crates; #![deny(clippy::cast_lossless)] And applies suggested Clippy and `cargo fmt` fixes.
* Merge commit 'origin/mr/46^'Nick Mathewson2021-08-121-1/+1
|\
| * Change output type in DirResponse to Vec<u8>rls2021-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | Previously the DirResponse contained a String for the output. By changing it to a Vec<u8> the caller has to parse the Vec<u8> and deal with potential failures. With this change `fetch_multiple`'s `useful_responses` should also contain non-UTF-8 responses. This will case an Err to be returned in the `download_attempt` function if the DirResponse does not contain valid UTF-8.
* | fallbackdir: Regenerate listDavid Goulet2021-08-111-869/+879
| | | | | | | | | | | | Closes #160 Signed-off-by: David Goulet <[email protected]>
* | Upgrade to latest fslock and use its per-fd exclusion feature.Nick Mathewson2021-08-112-9/+1
| | | | | | | | | | | | | | | | | | | | The latest version of the fslock crate has an optional feature that allows file-locks to exclude one another even if they are opened within the same process. On Windows this behavior comes for free; on Unix it depends on an internal map of (dev,inode) pairs. Here we upgrade to the latest version of the fslock crate, and use this feature.
* | Update state.rs info messageBen Armstead2021-08-091-1/+1
| |
* | Add unnecessary_wraps to the big warning list.Nick Mathewson2021-08-061-0/+1
| |
* | Simplify SqliteStore::from_pathNick Mathewson2021-08-061-10/+4
| |
* | Fix typos and other spelling mistakesrls2021-07-318-18/+18
| |
* | Fix some CI warnings.Nick Mathewson2021-07-311-1/+1
|/
* Add a note about the other (current) daemon task.Nick Mathewson2021-07-301-1/+5
|
* Give DirMgr the ability to notify subscribers about events.Nick Mathewson2021-07-304-4/+173
| | | | | | | | | | This is not 100% what we'll want long term: - We might want more kinds of events - We'll probably want to generate them in a more reliable way - We might want some of this mechanism to be in a crate other than DirMgr. But for now, let's use this as a start and get experience with it.
* switch to maintained crates for memmap and tmpdirTrinity Pointard2021-07-203-11/+11
| | | | | | | | They don't have actual documented security issues but it makes `cargo audit` complain https://rustsec.org/advisories/RUSTSEC-2018-0017 https://rustsec.org/advisories/RUSTSEC-2020-0077
* Add clippy warn needless pass by valueYUAN LYU2021-06-214-202/+203
|
* Add clippy warn needless borrowYUAN LYU2021-06-211-0/+1
|
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-184-7/+7
|
* 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.
* Use the "typos" tool to fix some spellingNick Mathewson2021-05-262-2/+2
|
* Enable cargo_common_metadata warning.Nick Mathewson2021-05-251-0/+1
|
* Module docs for remaining cratesNick Mathewson2021-05-251-1/+7
|
* Revert change to type of NetParams value.Nick Mathewson2021-05-251-4/+4
| | | | | This truly is an i32, not a strings: it is a specified requirement in parsing consensus documents.
* Use macros and types to improve handling of Netdir parameters.Nick Mathewson2021-05-251-4/+4
| | | | (Squashed from typed-netdir-params)
* Fix some rustdoc warningsNick Mathewson2021-05-211-1/+1
|
* Add the "unreachable_pub" lint.Nick Mathewson2021-05-186-36/+49
| | | | | | 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.
* Always capitalize as RouterDesc, Microdesc.Nick Mathewson2021-05-183-18/+18
|
* Prefer "relay" to "server" when appropriate.Nick Mathewson2021-05-181-4/+4
|
* Improved tests for sqlite storage.Nick Mathewson2021-05-141-2/+77
|
* Consistency, renaming, and testing for dirmgrconfigNick Mathewson2021-05-143-27/+138
|
* Move override_net_params into DirMgrConfig.Nick Mathewson2021-05-141-19/+26
|
* Rename NetDirConfig to DirMgrConfig.Nick Mathewson2021-05-143-25/+25
|
* Add builders for remaining config types in tor-dirmgr.Nick Mathewson2021-05-142-10/+96
|
* WIP: more builders.Nick Mathewson2021-05-131-1/+71
|
* Add builders for authority and fallback objects.Nick Mathewson2021-05-102-19/+109
|
* Fix a comment typo and needless mutNick Mathewson2021-05-101-2/+2
|
* Remove more pieces of unused legacy storage code.Nick Mathewson2021-05-101-44/+0
|
* Remove untested legacy.rs code. Add a comment about where to find it.Nick Mathewson2021-05-102-172/+5
|
* Fix some warnings from nightly clippyNick Mathewson2021-05-071-2/+2
|