aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | hashx/bench, equix/bench: Enable debug symbolsMicah Elizabeth Scott2023-08-012-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Propagates this setting from the outer Cargo.toml to the new benchmark crates, since they no longer get the setting by being included in the main workspace. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | hashx/bench, equix/bench: check in matching Cargo.lock filesMicah Elizabeth Scott2023-08-014-2/+2208
| | | | | | | | | | | | | | | | | | | | | | | | It might be useful to keep these locked down for benchmark reproducibility. Currently the hashx and equix crates are fully separate. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | equix, hashx: Benchmark against C implementationMicah Elizabeth Scott2023-08-0111-440/+464
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a small batch of improvements for the equix and hashx benchmarks. The headline feature is that we are now including the C implementations (slightly modified from tevador's, hosted as part of c-tor) and using them in apples-to-apples comparisons. Minor features: - Benchmarks moved to new nested crates, preventing their dependencies from spilling into the main workspace build. - Tests are now grouped - We also test the performance of memory reuse where possible - Code cleanup for per-runtime options These benchmark builds will now automatically pull in the c-tor git repo and build portions of it with a Rust wrapper. This uses the 'cc' and 'bindgen' crates, so it requires a C compiler and libclang on the host system. Signed-off-by: Micah Elizabeth Scott <[email protected]>
* | Merge branch 'misc_upgrades' into 'main'Nick Mathewson2023-08-022-3/+3
|\ \ | | | | | | | | | | | | Upgrade to sanitize-filename 0.5.0 See merge request tpo/core/arti!1453
| * | Upgrade to sanitize-filename 0.5.0Nick Mathewson2023-08-012-3/+3
|/ /
* | Merge branch 'update-hss-dep' into 'main'Nick Mathewson2023-08-011-1/+1
|\ \ | | | | | | | | | | | | hsservice: Upgrade tor-keymgr dep See merge request tpo/core/arti!1463
| * | hsservice: Upgrade tor-keymgr depNick Mathewson2023-08-011-1/+1
|/ / | | | | | | | | | | This breakage was caused by increasing the version of tor-keymgr and independently merging !1452, which added a dependency on the old version.
* | Merge branch 'remove_semver' into 'main'Ian Jackson2023-08-0111-31/+0
|\ \ | | | | | | | | | | | | Remove semver.md files now that 1.1.7 is out. See merge request tpo/core/arti!1460
| * | Remove semver.md files now that 1.1.7 is out.Nick Mathewson2023-08-0111-31/+0
| | |
* | | Merge branch 'ipts2bis' into 'main'Ian Jackson2023-08-011-16/+42
|\ \ \ | | | | | | | | | | | | | | | | dev notes: Draft IPT algorithm: Overhaul for latest version of torspec!154 See merge request tpo/core/arti!1444
| * | | dev notes: Draft IPT algorithm: Make IPT persistence optionalIan Jackson2023-07-281-2/+11
| | | | | | | | | | | | | | | | As per current version of torpsec!154
| * | | dev notes: Draft IPT algorithm: Reuse relays when cycling IPTIan Jackson2023-07-281-10/+22
| | | |
| * | | dev notes: Draft IPT algorithm: Maintain k*N, not 2NIan Jackson2023-07-281-3/+7
| | | | | | | | | | | | | | | | Make this a separate parameter.
| * | | dev notes: Draft IPT algorithm: Minor clarificationsIan Jackson2023-07-261-3/+4
| | | |
* | | | Merge branch 'bump_version' into 'main'gabi-2502023-08-012-4/+41
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Script to bump patchlevel without touching other crates Closes #945 See merge request tpo/core/arti!1461
| * | | | Script to bump patchlevel without touching other cratesNick Mathewson2023-08-012-4/+41
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Closes #945. Based on @diziet's comment in #945, with a little extra safety and paranoia. We use this for cases when there are trivial changes only in one of our crates.
* | | | Merge branch 'hss_apis' into 'main'Nick Mathewson2023-08-0110-85/+554
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hsservice: Initial data structures and APIs Closes #972, #971, and #970 See merge request tpo/core/arti!1452
| * | | | hsservice: Add a sketched API for HsDir publishers.Nick Mathewson2023-07-312-0/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As with the other APIs here, I'd expect that the implementors will need to refactor this a lot. Closes #972.
| * | | | A couple of notes on intropoint establisher API.Nick Mathewson2023-07-311-1/+10
| | | | |
| * | | | hsservice: Add a draft API for intropoint establisher.Nick Mathewson2023-07-312-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from @diziet's !1439 and lightly cleaned up so that it compiles. Closes #971.
| * | | | hsservice: Adapt API sketches from onion-service-notes.mdNick Mathewson2023-07-314-0/+45
| | | | |
| * | | | hsservice: Adapt data structures from onion-service-notes.mdNick Mathewson2023-07-318-85/+294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, removed some older structures that don't make sense in the current design. Closes #970
* | | | | Merge branch 'pt-not-found-err' into 'main'Ian Jackson2023-08-013-10/+205
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | Add error if [[bridges.transports]] isn't written in config file Closes #880 See merge request tpo/core/arti!1229
| * | | | Add error if [[bridges.transports]] isn't written in config fileSaksham Mittal2023-08-013-10/+205
|/ / / /
* | | | Merge branch 'bump_versions_117' into 'main'arti-v1.1.7Nick Mathewson2023-08-0146-256/+256
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Vesion bumps for 1.1.7. See merge request tpo/core/arti!1458
| * | | | Bump patchlevel versions of crates with trivial changesNick Mathewson2023-08-0122-42/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These crates have had trivial changes only: typically, changes to documentation or to clippy warnings. There's no good reason to update which version of them other crates depend on, so we only bump _their_ patchlevels. ``` tor-async-utils caret safelog tor-events tor-units tor-rtcompat tor-rpcbase tor-llcrypto tor-protover tor-bytes tor-hscrypto tor-socksproto tor-cert tor-cell tor-consdiff tor-congestion arti-rpcserver arti-testing arti-bench arti-config arti-hyper ```
| * | | | Increment patchlevel versions of crates with minor changesNick Mathewson2023-08-0136-146/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These crates are at version 0.x.y, so we don't need to distinguish new-feature changes from other changes: ``` tor-basic-utils fs-mistrust tor-error tor-geoip tor-checkable tor-linkspec tor-netdoc tor-netdir tor-persist tor-ptmgr tor-hsservice ``` This crate has a breaking change, but only when the semver-breaking feature `experimental-api` is enabled: ``` tor-config ``` This crate is at version 1.x.y, but has no new public APIs, and therefore does not need a minor version bump: ``` arti ```
| * | | | Update minor versions on crates that have had breaking changesNick Mathewson2023-08-0120-73/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These crates had first-order breaking changes: ``` retry-error tor-keymgr tor-proto tor-hsclient tor-rtmock ``` Additionally, these broke because they re-exposed RetryError: ``` tor-circmgr ``` Additionally, these broke because they may re-expose something from tor-proto: ``` arti-client tor-chanmgr tor-dirclient tor-dirmgr tor-guardmgr ``` Additionally, these broke for other fiddly reasons: `tor-ptmgr` implements traits from tor-chanmgr, which has a breaking change above. `arti-hyper` exposes types from arti-client in its API.
* | | | | Merge branch 'changelog_117_part2' into 'main'Nick Mathewson2023-08-011-8/+102
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Changelog 117 part2 See merge request tpo/core/arti!1457
| * | | | | changelog 1.1.7: Acknowledgments and links.Nick Mathewson2023-08-011-3/+97
| | | | | |
| * | | | | changelog: spelling fixes.Nick Mathewson2023-08-011-5/+5
| |/ / / /
* | | | | Merge branch 'fixup-features' into 'main'Nick Mathewson2023-08-016-7/+7
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Run "fixup features" in preparation for a release. See merge request tpo/core/arti!1456
| * | | | Run "fixup features" in preparation for a release.Nick Mathewson2023-08-016-7/+7
| |/ / /
* | | | Merge branch 'changelog_117' into 'main'Nick Mathewson2023-08-011-0/+138
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | First draft of a changelog for 1.1.7 See merge request tpo/core/arti!1454
| * | | | Apply 1 suggestion(s) to 1 file(s)gabi-2502023-08-011-1/+1
| | | | |
| * | | | Changelog: add breaking changes from semver.mdNick Mathewson2023-08-011-0/+4
| | | | |
| * | | | Begin work on a changelog for 1.1.7.Nick Mathewson2023-08-011-0/+134
| |/ / /
* | | | Merge branch 'update_20230801' into 'main'gabi-2502023-08-011-258/+238
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Run cargo update in preparation for a release. See merge request tpo/core/arti!1455
| * | | Run cargo update in preparation for a release.Nick Mathewson2023-08-011-258/+238
|/ / /
* | | Merge branch 'ticket889_prototype' into 'main'Nick Mathewson2023-07-2846-26/+7446
|\ \ \ | |_|/ |/| | | | | | | | Rust implementation of onion service client puzzles (Proposal 327) See merge request tpo/core/arti!1368
| * | check_licenses: Whitelist for crates that may use LGPL-3.0-onlyMicah Elizabeth Scott2023-07-271-6/+18
| | | | | | | | | | | | | | | | | | | | | Narrows the previous check, allowing this particular LGPL only for the hashx and equix crates. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | equix, hashx: Additional comment tweaksMicah Elizabeth Scott2023-07-275-12/+68
| | | | | | | | | | | | | | | | | | More review feedback. Thanks nickm! Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | equix, hashx: Prepare for an initial LGPL releaseMicah Elizabeth Scott2023-07-273-5/+17
| | | | | | | | | | | | | | | | | | | | | This replaces the 'TODO' marker from earlier commits, using tevador's copyright and license (LGPL 3.0 only) for the hashx and equix crates. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | tor-hspow, equix, hashx: Comment tweaksMicah Elizabeth Scott2023-07-2726-296/+438
| | | | | | | | | | | | | | | | | | Making a few comment tweaks suggested in review feedback. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | tor-hspow: Simplify and optimize Challenge::newMicah Elizabeth Scott2023-07-271-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Challenges are now built using try_extend_from_slice instead of iterators. There's no CPU benchmark in this crate yet, but I can confirm that the resulting code is shorter. With this patch, the entirety of Challenge:new() is automatically inlined at call sites. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | hashx: Simplify RegisterWriterMapMicah Elizabeth Scott2023-07-271-28/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I originally wrote this in an overcomplicated way, to avoid frequent initialization of a RegisterWriter array. It turns out that RegisterWriter can be fairly compact, so this extra level of indirection isn't necessary or measurably helpful. This still manages to avoid declaring RegisterWriter as Copy, by using Default to initialize the array instead of an array constructor. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | tor-hspow, equix, hashx: Make all error types CloneMicah Elizabeth Scott2023-07-274-9/+17
| | | | | | | | | | | | | | | | | | | | | This uses an Arc to hold std::io::Error for low-level HashX runtime errors. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | hashx: Simplify hash_to_bytes, only support fixed output widthMicah Elizabeth Scott2023-07-272-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In response to review feedback. The byte output is only needed for unit tests right now, since Equi-X uses u64 output exclusively. The optimization for shorter output widths can shave tiny amounts of time off hash benchmarks, but in this case it's more helpful to avoid introducing APIs that offer parameters with incomplete compile-time range checking. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | hashx: use RngCore for HashX's internal PRNGMicah Elizabeth Scott2023-07-278-302/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This refactors the random number generator used within HashX's program generator so that it uses the rand::RngCore trait. The basic SipHash powered u64 generator now implements RngCore, while a buffer layer wraps this and provides u8 and u32 values as needed by the generator. Some of this new RngCore layer is now exposed to the hashx crate's public API. The intent is to allow external code to test, benchmark, or fuzz the program generator by supplying its own random number stream. Benchmarks show a small but confusing performance improvement associated with this patch. About a 2% improvement in generation. This could be due to the Rng changes. No change in compiled hash execution performance. Even though this patch only touches program generation, benchmarks show a 4% speedup in interpreted execution. This seems most likely explained by instruction cache effects, but I'm not sure. Signed-off-by: Micah Elizabeth Scott <[email protected]>
| * | hashx: Implement Default for RuntimeOptionMicah Elizabeth Scott2023-07-271-11/+4
| | |