summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Whitespace fixes.Nick Mathewson2024-10-291-1/+1
| | |
| * | Remove re-export of "general::*" from tor-rtcompat.Nick Mathewson2024-10-291-17/+15
| | |
| * | Remove re-export of "unix" from tor_rtcompat.Nick Mathewson2024-10-2910-44/+34
| | |
| * | Extract general::SocketAddr and its unix friends to their own crate.Nick Mathewson2024-10-2912-536/+664
| |/ | | | | | | This is mostly code motion.
* | Merge branch 'tor-config-path' into 'main'Nick Mathewson2024-10-295-6/+109
|\ \ | | | | | | | | | | | | tor-config-path: new crate containing moved `tor_config::path` See merge request tpo/core/arti!2590
| * | tor-config-path: comment-out a test that relies on 'tor-config'Steven Engler2024-10-291-0/+4
| | |
| * | tor-config-path: added lint listSteven Engler2024-10-291-4/+42
| | |
| * | tor-config-path: moved `tor_config::path` to hereSteven Engler2024-10-294-506/+540
| | | | | | | | | | | | This is a direct move of the `path` module from tor-config.
| * | tor-config-path: added empty packageSteven Engler2024-10-294-0/+27
| |/
* | Merge branch 'backtrace-display' into 'main'Alexander Hansen Færøy2024-10-291-1/+1
|\ \ | |/ |/| | | | | | | | | tor-error: use `Display` for backtrace captured by `BugRepr` Closes #1713 See merge request tpo/core/arti!2588
| * tor-error: use `Display` for backtrace captured by `BugRepr`Steven Engler2024-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: ```text 2024-10-29T01:57:31Z ERROR arti: error: internal error (bug) at crates/arti/src/lib.rs:378:27: foo Backtrace [{ fn: "tor_error::internal::ie_backtrace::capture", file: "./crates/tor-error/src/internal.rs", line: 21 }, { fn: "tor_error::internal::Bug::new_inner", file: "./crates/tor-error/src/internal.rs", line: 105 }, { fn: "tor_error::internal::Bug::new", file: "./crates/tor-error/src/internal.rs", line: 94 }, { fn: "arti::main_main", file: "./crates/arti/src/lib.rs", line: 378 }, ... ``` After: ```text 2024-10-29T01:58:23Z ERROR arti: error: internal error (bug) at crates/arti/src/lib.rs:378:27: foo 0: tor_error::internal::ie_backtrace::capture at ./crates/tor-error/src/internal.rs:21:27 1: tor_error::internal::Bug::new_inner at ./crates/tor-error/src/internal.rs:105:24 2: tor_error::internal::Bug::new at ./crates/tor-error/src/internal.rs:94:9 3: arti::main_main at ./crates/arti/src/lib.rs:378:27 ... ```
* | Merge branch 'config-paths' into 'main'opara2024-10-292-61/+17
|\ \ | |/ |/| | | | | tor-config: use 'path' feature of shellexpand See merge request tpo/core/arti!2583
| * tor-config: remove `CfgPathError::BadUtf8`Steven Engler2024-10-281-20/+1
| |
| * tor-config: use 'path' feature of shellexpandSteven Engler2024-10-282-41/+16
| |
* | Merge branch 'orport' into 'main'opara2024-10-282-85/+99
|\ \ | |/ |/| | | | | tor-chanmgr: revert `PendingChannelHandle` drop behaviour, and try to prevent problematic code paths See merge request tpo/core/arti!2566
| * tor-chanmgr: rename `replace_pending_channel` to ↵Steven Engler2024-10-242-9/+10
| | | | | | | | `upgrade_pending_channel_to_open`
| * tor-chanmgr: `remove_pending` now takes a `PendingChannelHandle`Steven Engler2024-10-241-18/+8
| |
| * tor-chanmgr: improve cleanup procedure of pending channelsSteven Engler2024-10-242-47/+92
| | | | | | | | | | | | | | | | | | | | An attempt to make sure that there are no code paths which forget to remove a pending channel from the channel map. This also adds error-level log messages and panics during debug builds if a `PendingChannelHandle` is dropped without properly passing it to `MgrState::remove_pending_channel` or `MgrState::replace_pending_channel`.
| * Revert "tor-chanmgr: `PendingChannelHandle` removes the channel when dropped"Steven Engler2024-10-212-56/+34
| | | | | | | | | | | | | | | | This reverts commit f85bc3cf849109aaa2c4da9fc8c06e7173a0543f. There were some small conflcits in `AbstractChanMgr::get_or_launch_internal`, so this wasn't a clean revert.
* | Remove echo structsNeel Chauhan2024-10-251-14/+0
| |
* | arti-rpcserver: Remove echo_on_sessionNeel Chauhan2024-10-251-12/+0
| |
* | Merge branch 'slug-colons' into 'main'Ian Jackson2024-10-241-0/+4
|\ \ | | | | | | | | | | | | tor-persist: Explain why colons will never be valid slug chars. See merge request tpo/core/arti!2576
| * | tor-persist: Explain why colons will never be valid slug chars.Gabriela Moldovan2024-10-231-0/+4
| | |
* | | Merge branch 'python-warnings-1' into 'main'Nick Mathewson2024-10-241-2/+3
|\ \ \ | | | | | | | | | | | | | | | | Fix various python warnings See merge request tpo/core/arti!2579
| * | | Python: simple annotations to allow mypy to pass.Nick Mathewson2024-10-241-1/+1
| | | |
| * | | python: one import per line.Nick Mathewson2024-10-241-1/+2
| | | |
* | | | tor-circmgr: Clarify that using guarded for client rend is an exception.Gabriela Moldovan2024-10-241-1/+14
| | | |
* | | | tor-circmgr: Rename Short/Extended to Naive/Guarded.Gabriela Moldovan2024-10-244-32/+32
| | | |
* | | | tor-circmgr: Try to clarify what a "circuit stem" is.Gabriela Moldovan2024-10-241-2/+3
| | | |
* | | | tor-circmgr: Post-renaming documentation fixes.Gabriela Moldovan2024-10-244-14/+14
| | | |
* | | | tor-circmgr: s/stub/stem throughout.Gabriela Moldovan2024-10-244-100/+100
| | | |
* | | | tor-circmgr: s/HsCircStubKind/HsCircStemKind.Gabriela Moldovan2024-10-242-27/+27
| | | | | | | | | | | | | | | | As per #1479
* | | | tor-circmgr: s/HsCircStubKind/HsCircStemKind.Gabriela Moldovan2024-10-245-60/+60
| | | | | | | | | | | | | | | | As per #1479
* | | | tor-circmgr: Use the new vanguards terminology throughout.Gabriela Moldovan2024-10-243-75/+75
|/ / / | | | | | | | | | | | | | | | | | | | | | This is the first step towards clarifying the questions from !2230. Corresponding torspec changes: https://gitlab.torproject.org/tpo/core/torspec/-/merge_requests/282 Part of #1479
* | | Run "black" to reformat all our pythonNick Mathewson2024-10-241-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Black" is an "opinionated" python formatter, whose opinionatedness is somewhat in the spirit of rustfmt. This MR runs black with default settings on all of our python code in Arti. It was produced by the following commands ``` # Everything in python/ black python/ # Everything with a .py extension fd '.py$' -X black # Everything with a python shebang. git grep -l '#! */usr/bin/env *python' | xargs black ```
* | | rpc: Tweak release_owned to give an error on second removal of "connection".Nick Mathewson2024-10-231-16/+20
| | |
* | | rpc: Use a const for the "connection" object ID.Nick Mathewson2024-10-231-2/+9
| | |
* | | rpc: Simplify method-dispatch-bypass logic a bitNick Mathewson2024-10-235-34/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes the separate function for asking whether to bypass the dispatch code. Instead, it gives the "invoke with bypass" function an error to return when no dispatch is warranted, and moves the whole responsibility for method dispatch or non-dispatch back into tor-rpcbase. I had to add an ObjectId argument to `invoke_rpc_method` to make this work, but that's probably a good thing. Additionally, this commit tweaks the derive-deftly macro to prevent you from asking for dispatch bypass on special methods, where it isn't implemented (and doesn't really make sense).
* | | rpc: Re-run cbindgen.Nick Mathewson2024-10-231-1/+0
| | |
* | | rpc: Add support for dropping the special "connection" object ID.Nick Mathewson2024-10-231-9/+19
| | |
* | | rpc: correct msg and doc for InvalidInput::NullPointerNick Mathewson2024-10-231-2/+2
| | | | | | | | | | | | | | | Previously we implied that it was only for strings, which isn't the case.
* | | rpc: Move "rpc:release" to be a method on the rpc object.Nick Mathewson2024-10-232-33/+25
| | | | | | | | | | | | | | | | | | | | | Now, instead of telling the session or the connection to drop the object ID, we tell the object ID to go away. Closes #1663.
* | | rpcserver: detect and use methods that bypass method dispatch.Nick Mathewson2024-10-231-3/+8
| | |
* | | rpc: do not attempt to dispatch methods with bypassed dispatch.Nick Mathewson2024-10-231-0/+12
| | |
* | | rpc: Add a mechanism for method that bypass regular dispatchNick Mathewson2024-10-231-2/+34
| | | | | | | | | | | | | | | | | | | | | I'm about to use this for rpc:release, which is special because it doesn't actually look at the type of the object that it's invoked on. Later it might be useful for manipulating weakrefs, cloning referenes, detecting reference equality, etc.
* | | rpc: Remove unimplemented rpc:downgrade method for now.Nick Mathewson2024-10-231-9/+0
| | | | | | | | | | | | | | | If and when we implement this, it will likely be different; arti#868 has some thoughts on the implications.
* | | rpc: Move some object-id-manipulation methods to a new module.Nick Mathewson2024-10-233-50/+63
|/ / | | | | | | | | These will have different implementations soon; this is a more logical place for them.
* | linkspec: Fix nightly warning about elided lifetimeNick Mathewson2024-10-221-1/+1
| | | | | | | | | | | | This warning shows up when running `cargo +nightly doc`. Apparently nightly doesn't like it when we have elided a lifetime that has a perfectly good name.
* | Make memquota feature part of full in artiIan Jackson2024-10-222-2/+3
| | | | | | | | Mark it no longer experimental, but part of full. And document it.
* | Make memquota feature part of full in arti-clientIan Jackson2024-10-222-3/+4
| | | | | | | | Mark it no longer experimental, but part of full. And document it.