summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Run cargo update on other dependencies.Nick Mathewson2021-09-251-4/+4
| |
* | update fslock to compile androidTrinity Pointard2021-09-254-12/+5
| |
* | Run cargo upate.Nick Mathewson2021-09-231-12/+12
| |
* | Upgrade memmap2, directories, and dirs dependencies.Nick Mathewson2021-09-234-10/+10
| |
* | refactor a bit reproducible_build.shTrinity Pointard2021-09-201-57/+56
| |
* | try use cache and make MacOS bin available as artifactTrinity Pointard2021-09-201-0/+4
| |
* | add reproducible builds for MacOSTrinity Pointard2021-09-204-15/+73
| |
* | Move version-controlled Cargo.lock to /.Nick Mathewson2021-09-205-19/+2
| | | | | | | | | | | | | | Previously I'd hoped to have it only apply to reproducible builds, but the work of keeping it up-to-date and checking it for drift seems to have been tripping us up. Let's try doing it the other way for now, and we'll see how that goes.
* | update lock fileDaniel Eades2021-09-191-5/+4
| |
* | remove unused depDaniel Eades2021-09-191-1/+0
| |
* | Update misc/Cargo.lock.Nick Mathewson2021-09-171-4/+8
| |
* | Enable js feature for getrandom for WASM.Jani Monoses2021-09-172-0/+7
| | | | | | | | By default rand does not build for WASM browser targets.
* | Update misc/Cargo.lockNick Mathewson2021-09-161-51/+50
| |
* | Stop using anyhow in tor-dirclient.Jani Monoses2021-09-163-2/+9
| |
* | tor-netdir: Add a by_id_pair() function to look up a relay by both IDs.Nick Mathewson2021-09-161-1/+21
| |
* | Merge remote-tracking branch 'origin/mr/82'Nick Mathewson2021-09-164-11/+11
|\ \
| * | Do not use set_ prefix on derive_builder settersJani Monoses2021-09-164-11/+11
| | |
* | | Add small qualifiers on android.mdNick Mathewson2021-09-161-0/+5
| | |
* | | fix typo and change upstream linkTrinity Pointard2021-09-151-7/+6
| | |
* | | document android buildingTrinity Pointard2021-09-141-0/+152
|/ /
* | Update maint/Cargo.lock again.Nick Mathewson2021-09-131-8/+8
| |
* | Merge remote-tracking branch 'origin/mr/80'Nick Mathewson2021-09-132-130/+120
|\ \
| * | update misc/Cargo.lockTrinity Pointard2021-09-121-130/+117
| | |
| * | CI: make fail when new deps not in misc/Cargo.lockTrinity Pointard2021-09-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Currently adding new deps can cause builds to not be reproducibles because that new dependancies don't have their versions frozen in misc/Cargo.lock. This make so CI reject commits in that situation, with a message telling what to do to fix the issue.
* | | derive 'Default' where possibleDaniel Eades2021-09-112-17/+2
|/ /
* | Add identity-based accessors (and indices) to NetDir.Nick Mathewson2021-09-101-36/+152
| | | | | | | | | | | | (Thank goodness for rust; we messed up the coherency in C here so many times, but I'm pretty sure that this time around we can't have gotten it wrong.)
* | Merge remote-tracking branch 'origin/mr/77'Nick Mathewson2021-09-103-12/+22
|\ \
| * | Create a separate logging section in config.Jani Monoses2021-09-093-12/+22
| | |
* | | Use derive_builder for Authority and FallbackDir.Nick Mathewson2021-09-104-125/+23
| | |
* | | Suppress a cognitive-complexity lint in testsNick Mathewson2021-09-091-0/+1
| | |
* | | Typo fixesNick Mathewson2021-09-095-11/+11
| | |
* | | Add guard-related network parameters.Nick Mathewson2021-09-091-3/+118
| | |
* | | Add an IntegerDays numeric type.Nick Mathewson2021-09-091-0/+54
| | |
* | | Use macros and traits to simplify the declaration of parameters.Nick Mathewson2021-09-092-135/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we'd have to declare the field for a parameter in one place, its default in a second, and its consensus key in a third. That's error-prone and not so fun! This patch changes the way we declare parameters so that we declare a structure once, and macros expand it to all do the right thing. This required a few new traits and implementations to ensure uniformity across the types that can go in parameters: We need every parameter type to implement TryFrom<i32> and to implement SaturatingFromInt32. Eventually we might want SaturatingFromInt32 to be a more generic SaturatingFrom, but that's not for now.
* | | Use derive_builder for the rest of tor_dirmgr::configNick Mathewson2021-09-092-83/+24
| | |
* | | Use derive_builder for DownloadScheduleConfigNick Mathewson2021-09-081-66/+7
| | |
* | | Use derive_builder for NetworkConfig.Nick Mathewson2021-09-084-148/+43
|/ /
* | run CI only on amd64 runnersTrinity Pointard2021-09-081-0/+7
| |
* | Merge remote-tracking branch 'origin/mr/73'Nick Mathewson2021-09-083-7/+33
|\ \
| * | Make journald an optional feature.Jani Monoses2021-09-072-7/+9
| | |
| * | Do not log to journald by defaultJani Monoses2021-09-071-1/+1
| | |
| * | Allow logging to journald.Jani Monoses2021-09-073-7/+31
| | | | | | | | | | | | | | | Log to journald when available, add journald config option. Separate logging setup into its own function.
* | | Fix clippy warnings in tests with --all-featuresNick Mathewson2021-09-082-10/+9
| | |
* | | Fix/suppress a few more clippy lints in tests.Nick Mathewson2021-09-086-9/+14
| | | | | | | | | | | | | | | I'm alright with allowing cognitive-complexity violations in the tests.
* | | Merge remote-tracking branch 'origin/mr/71'Nick Mathewson2021-09-0884-113/+197
|\ \ \
| * | | run clippy on test modulesDaniel Eades2021-09-081-1/+1
| | | |
| * | | fix/silence clippy lints in test modulesDaniel Eades2021-09-0884-112/+197
| | | |
* | | | Check for correct-ish decoding of all parameters.Nick Mathewson2021-09-081-4/+77
| | | |
* | | | Add validation function to WeightSetNick Mathewson2021-09-081-1/+18
| | | | | | | | | | | | | | | | | | | | Our relay selection code can give wrong answers if we overflow u64::MAX, so let's make sure we never do that.
* | | | Replace weighted-choice code with rand::seq::SliceRandom.Nick Mathewson2021-09-083-231/+159
|/ / / | | | | | | | | | | | | | | | | | | | | | Doing this makes the code faster, lets us throw away some code, and makes it easier to add a "choose-N-disjoint relays" implementation. See large comment about plusses and minuses of new code. (Note that the old implementation wasn't constant-time either.)