summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | tor-keymgr: Move config/arti.rs to config.rsGabriela Moldovan2024-10-086-119/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The config will soon contain secondary C Tor keystore configuration too, so the `arti` namespacing is about to stop making sense. I recommend reviewing this commit using `git diff --color-moved=zebra --ignore-space-change`
| * | | | | tor-hsservice: Move HsNickname to tor-persist.Gabriela Moldovan2024-10-084-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are about to need this in `tor-keymgr`, where we're about to add a config for C Tor service keystores (the C Tor keystore config will have an associated `HsNickname` that specifies which of the arti hidden services it's supposed to be used with).
* | | | | | Merge branch 'dyn-time-2' into 'main'Ian Jackson2024-10-081-11/+15
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | tor-rtmock: dyn_time tests: Test the downcast fail path too See merge request tpo/core/arti!2500
| * | | | | tor-rtmock: dyn_time tests: rustfmtIan Jackson2024-10-081-3/+1
| | | | | |
| * | | | | tor-rtmock: dyn_time tests: Check DropCount on type-mismatch pathIan Jackson2024-10-081-1/+7
| | | | | |
| * | | | | tor-rtmock: dyn_time tests: Make try_downcast_string return S, not implIan Jackson2024-10-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it possible to use on a DropCounter and get a DropCounter back.
| * | | | | tor-rtmock: dyn_time tests: Break out try_downcast_stringIan Jackson2024-10-081-8/+8
| | | | | |
| * | | | | tor-rtmock: dyn_time tests: Rename try_downcast_dc from chkIan Jackson2024-10-081-2/+2
| |/ / / / | | | | | | | | | | | | | | | This will be clearer
* | | | | Merge branch 'update-feature-flag-docs' into 'main'Ian Jackson2024-10-081-3/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | docs: Add vanguard feature flag to README. See merge request tpo/core/arti!2507
| * | | | | arti: Remove outdated information from README.Wesley Aptekar-Cassels2024-10-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now support pluggable transports, so it's not true that there's no anti-censorship support.
| * | | | | docs: Add vanguard feature flag to README.Wesley Aptekar-Cassels2024-10-071-3/+3
| | |_|_|/ | |/| | |
* | | | | Merge branch 'memquota-macro-tidying' into 'main'Ian Jackson2024-10-081-21/+25
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-proto: memquota: Tidying up See merge request tpo/core/arti!2508
| * | | | | tor-proto: memquota: Rationalise macro innardsIan Jackson2024-10-071-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No functional change, but use of ${select1 ...} will make it easier to add more approaches.
| * | | | | tor-proto: memquota: Fix a docs typoIan Jackson2024-10-071-1/+1
| | | | | |
| * | | | | tor-proto: memquota: Rename SpecificAccount::Parent to ConstructedFromIan Jackson2024-10-071-11/+13
| |/ / / / | | | | | | | | | | | | | | | This was already a bit inaccurate and it's going to become more so.
* | | | | Merge branch 'circmgr-code-motion-for-tests' into 'main'Ian Jackson2024-10-081-193/+193
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | Circmgr code motion for tests See merge request tpo/core/arti!2513
| * | | | CircMgr: Move note_external_{failure, success} methods to generic impl.Wesley Aptekar-Cassels2024-10-031-27/+27
| | | | |
| * | | | CircMgr: Move get_or_launch_dir_specific method to generic impl.Wesley Aptekar-Cassels2024-10-031-18/+18
| | | | |
| * | | | CircMgr: Move get_or_launch_exit method to generic impl.Wesley Aptekar-Cassels2024-10-031-45/+45
| | | | |
| * | | | CircMgr: Move get_or_launch_dir method to generic impl.Wesley Aptekar-Cassels2024-10-031-8/+8
| | | | |
| * | | | CircMgr: Move skew_events method to generic impl.Wesley Aptekar-Cassels2024-10-031-11/+11
| | | | |
| * | | | CircMgr: Move retire_circ method to generic impl.Wesley Aptekar-Cassels2024-10-031-6/+6
| | | | |
| * | | | CircMgr: Move reconfigure method to generic impl.Wesley Aptekar-Cassels2024-10-031-67/+67
| | | | |
| * | | | CircMgr: Move retire_all_circuits method to generic impl.Wesley Aptekar-Cassels2024-10-031-11/+11
| | | | |
* | | | | Merge branch 'allow-onion-addrs-default-true' into 'main'gabi-2502024-10-073-13/+4
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | Default allow_onion_addrs to true. Closes #1402 See merge request tpo/core/arti!2506
| * | | | Default allow_onion_addrs to true.Wesley Aptekar-Cassels2024-10-073-13/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | This was disabled due to lack of vanguard support. Now that we support vanguards, we should enable this by default. Fixes: #1402
* | | | Merge branch 'params-required' into 'main'Nick Mathewson2024-10-071-3/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rpcserver: Remove TODO about optionality of params Closes #1665 See merge request tpo/core/arti!2510
| * | | | rpcserver: Remove TODO about optionality of paramsNick Mathewson2024-10-071-3/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | The spec no longer says that `params` is optional, so we can remove the TODO about making it optional. Closes #1665.
* | | | Merge branch 'fix-onion-service-client-feature-flag' into 'main'gabi-2502024-10-072-5/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arti-client: Mark tor-hsservice a dep of onion-service-client feature. Closes #1638 See merge request tpo/core/arti!2457
| * | | | arti-client: Fix restricted-discovery dependencies.Wesley Aptekar-Cassels2024-10-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | restricted-discovery should require tor-hsservice to be enabled. This previously caused this command to fail: cargo check -p arti-client --features restricted-discovery,vanguards
| * | | | arti-client: Fix incorrect feature gate for onion-service-client.Wesley Aptekar-Cassels2024-10-071-4/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, arti-client doesn't compile with just the features experimental-api and onion-service-client enabled, because it incorrectly depends on tor-hsservice. This fixes that by gating the use statement behind the correct feature. Fixes: #1638
* / / / tor-proto: Fix flaky circuit::test::accept_valid_sendme test.Wesley Aptekar-Cassels2024-10-071-4/+3
|/ / / | | | | | | | | | Fixes: #628
* | | Merge branch 'mq' into 'main'Ian Jackson2024-10-0727-62/+438
|\ \ \ | |_|/ |/| | | | | | | | Implement memory quota tracking See merge request tpo/core/arti!2493
| * | tor-proto: Remove the no-longer needed allowsIan Jackson2024-10-033-3/+0
| | |
| * | tor-proto: Make incoming stream requests participate in memquota (fmt)Ian Jackson2024-10-031-2/+2
| | |
| * | tor-proto: Make incoming stream requests participate in memquotaIan Jackson2024-10-032-3/+5
| | |
| * | tor-proto: Implement HasMemoryCost for StreamReqInfoIan Jackson2024-10-031-1/+8
| | | | | | | | | | | | | | | This is necessarily a bit fudged, since a StreamReqInfo is full of exciting things like ends of other MPSC queues.
| * | tor-proto: Make stream queues participate in memquota (fmt)Ian Jackson2024-10-031-2/+2
| | |
| * | tor-proto: Make stream queues participate in memquotaIan Jackson2024-10-032-8/+19
| | | | | | | | | | | | Change the typss of StreamMpscSender and StreamMpscReceiver.
| * | tor-proto: channel: Provide time_provider accessorsIan Jackson2024-10-031-0/+17
| | | | | | | | | | | | This will save circuits etc. keeping their own clone of the time provider.
| * | tor-proto: Make circuit->channel queues participate in memquotaIan Jackson2024-10-034-11/+53
| | | | | | | | | | | | | | | | | | | | | | | | We use the *channel*'s memquota account. This is arguably wrong, but it's hard to get right now. See #1652. Change the type of the queue, and the places it's constructed. The use sites can all stay the same.
| * | tor-proto: Introduce a fake_mpsc helper for channel testsIan Jackson2024-10-031-2/+11
| | | | | | | | | | | | | | | This provides a nice place to change in the tests, when we want to change the way the queue is made.
| * | tor-proto: Put a StreamAccount in DataStream etc.Ian Jackson2024-10-034-7/+29
| | |
| * | tor-proto: Put a StreamAccount in DataStream etc. (pre-fmt)Ian Jackson2024-10-031-2/+9
| | |
| * | tor-proto: Put a CircuitAccount in ClientCirc and circuit::ReactorIan Jackson2024-10-032-1/+18
| | |
| * | tor-proto: Plumb the ChannelAccount through to queue creation siteIan Jackson2024-10-038-16/+71
| | | | | | | | | | | | | | | This gets it as far as the outbound circuit->channel mpsc queue creation. Also, we provide an accessor for it.
| * | tor-proto: Plumb the ChannelAccount through to queue creation site (pre-fmt)Ian Jackson2024-10-033-3/+13
| | |
| * | tor-chanmgr: Make a memquota::ChannelAcocunt per channelIan Jackson2024-10-035-6/+20
| | | | | | | | | | | | | | | This delivers a fresh account per channel to the places where channels are actually made, but doesn't pass them to tor-proto yet.
| * | tor-chanmgr: Make a memquota::ChannelAcocunt per channel (pre-fmt)Ian Jackson2024-10-031-1/+4
| | |
| * | memquota: Add a toplevel account in tor-chanmgrIan Jackson2024-10-039-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Plumb through a top-level account. This doesn't have any channel-specific, circuit-specific or stream-specific accounts yet. tor-circmgr's and tor-hsclient's *tests* need fake account. In arti-relay, use a dummy account for now.