aboutsummaryrefslogtreecommitdiff
path: root/tor-dirmgr
Commit message (Collapse)AuthorAgeFilesLines
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-2716-6570/+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-262-0/+14
| |
* | fix segfault on static binTrinity Pointard2021-08-251-0/+1
|/ | | | | | see https://github.com/rusqlite/rusqlite/issues/914 sha256: 684ebc4b8c270fc63beba185f6c54ceeb98734f13aa7aeca9b64acb33432a21c
* Switch all uses of the log crate to the tracing.Jani Monoses2021-08-204-4/+4
| | | | 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-182-7/+11
| | | | | 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-113-10/+2
| | | | | | | | | | | | | | | | | | | | 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-305-4/+174
| | | | | | | | | | 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-204-14/+14
| | | | | | | | 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
* Allow tor-rtcompat to build with no runtimes.Nick Mathewson2021-07-011-0/+1
| | | | | | | | | | | | Thanks to cargo's version-2 feature resolver, we can require a runtime for tests only. I'm also making it so that the functions that create or fetch Runtimes only exist when one of the runtime features is enabled. For now that seems like a better solution than having those functions exist but panic. Closes #129.
* Merge remote-tracking branch 'origin/mr/34'Nick Mathewson2021-06-274-202/+204
|\
| * Add clippy warn needless pass by valueYUAN LYU2021-06-214-202/+203
| |
| * Add clippy warn needless borrowYUAN LYU2021-06-211-0/+1
| |
* | Remove "default-features=false" thing on tor-rtcompat for now.Nick Mathewson2021-06-241-1/+1
| |
* | Bump version dependencies to 0.0.0Nick Mathewson2021-06-241-9/+9
| |
* | Remove "publish = false"Nick Mathewson2021-06-241-1/+0
|/
* Fix some warnings about needless & from nightly clippyNick Mathewson2021-06-184-7/+7
|
* Remove anyhow dependency from tor-retry, and rename it to retry-errorNick Mathewson2021-06-171-1/+1
| | | | Now RetryError is parameterized on an underlying error type.
* Remove some (but not all) needless dependencies.Nick Mathewson2021-06-171-2/+0
|
* 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
|
* Add automatically generated README.md files to each crate.Nick Mathewson2021-05-251-0/+19
|
* 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
|
* Give every Cargo.toml a repository fieldNick Mathewson2021-05-191-0/+1
|
* Fill in "package.categories" on all Cargo.tomlNick Mathewson2021-05-191-0/+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
|