aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-rpc-connect/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
|
* Removed unnecessary lintpryty262026-07-151-1/+1
| | | | Removed unnecessary lint
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+2
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* rpc-connect: classify newer io errorkinds.Nick Mathewson2026-05-071-2/+4
| | | | | | In Rust 1.83 and 1.85, io::ErrorKind added a few new variants. Here we classify them as "Decline" or "Abort" in our connection point code.
* rpc: add a "superuser" element to connect points.Nick Mathewson2026-03-161-0/+11
| | | | Currently does nothing.
* Allow clippy::collapsible_if to triggerGabriela Moldovan2026-02-161-0/+1
| | | | | | | | | `clippy::collapsible_if` started triggering after bumping the MSRV to 1.88. Since this triggers from a lot of places, and since there even are a couple of instances where we explicitly allow `clippy::collapsible_ifs`, I've opened #2342 for deciding what to do about it.
* Merge branch 'unused-async-lint' into 'main'gabi-2502026-01-281-0/+1
|\ | | | | | | | | | | | | maint/add_warning: Deny clippy::unused_async Closes #2328 See merge request tpo/core/arti!3613
| * maint/add_warning: Run script to add new warningGabriela Moldovan2026-01-271-0/+1
| | | | | | | | This adds the lint to all our crates.
* | rpc-connect: Implement json address-file format.Nick Mathewson2026-01-271-2/+6
| |
* | rpc: Add rpc-client-side support for inet-auto addressesNick Mathewson2026-01-271-0/+9
| |
* | rpc: Add rpc-server-side support for inet-auto addresses.Nick Mathewson2026-01-271-0/+10
|/
* rpc-connect-point: Decline (not abort) on more invalid address formats.Nick Mathewson2025-12-171-0/+17
| | | | | | | | | | When we see an address schema we don't recognize, we're supposed to _decline_ the connect point rather than aborting. Closes #2303. See discussion at #1844. Additionally, we tolerate more kinds of invalid address, in order to permit future planned extensions.
* Fix name of clippy lint to unchecked_time_subtraction (2)Ian Jackson2025-11-061-2/+2
| | | | Run maint/add_warning
* Remove "doc_auto_cfg" incantation from all crates.Nick Mathewson2025-09-291-1/+1
| | | | This feature has been removed from nightly, in favor of doc_cfg.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-4/+4
| | | | | | | | | | | | | | First, run ``` git grep -l "^edition =" | xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;' ``` Second, manually verify that all Cargo.toml files have changed, and nothing else has changed. Third, run cargo fmt again.
* Temporarily suppress mismatched_lifetime_syntaxes.Gabriela Moldovan2025-07-071-0/+1
| | | | See #2060.
* tor-rpc-connect: standardized MSRV TODOhashcatHitman2025-04-161-1/+1
| | | | | - Part of a series of commits aimed at replacing all MSRV-related TODOs with a standardized format, which should be easier to find when the MSRV is bumped.
* Add some allow(unused)Ian Jackson2025-03-271-0/+3
| | | | | Fixes several warnings from cargo check --workspace --no-default-features
* AF_UNIX terminology: Rename two error structsIan Jackson2025-03-241-1/+1
| | | | | | We change `NoUnixAddressSupport` to `NoAfUnixSocketSupport` because it doesn't make much sense to talk about support for the addresses separately from support for the sockets.
* AF_UNIX terminology: Rename two error variantsIan Jackson2025-03-241-5/+5
| | | | Change `..UnixAddress...` to `...AfUnixAddress..`.
* RPC: Abolish an unused and misnamed error variantIan Jackson2025-03-241-4/+0
| | | | | This variant breaches the new guidelines about AF_UNIX terminology. And its purpose is unclear and it's not used.
* rpc-connect: Remove remaining TODO RPCsNick Mathewson2025-01-271-4/+1
| | | | I have checked the relevant code, and it seems okay.
* rpc: Document windows USER_DEFAULT connect point.Nick Mathewson2025-01-151-1/+0
|
* tor-rpc-connect: move cookie auth support to its own module.Nick Mathewson2025-01-151-1/+1
|
* Merge branch 'mod-module-files' into 'main'Nick Mathewson2025-01-071-0/+1
|\ | | | | | | | | clippy: deny `mod_module_files` See merge request tpo/core/arti!2689
| * clippy: deny `mod_module_files`Steven Engler2025-01-061-0/+1
| | | | | | | | | | | | Denies 'mod.rs' files for consistency. https://rust-lang.github.io/rust-clippy/master/index.html#mod_module_files
* | Merge branch 'bug1776' into 'main'Nick Mathewson2025-01-061-1/+0
|\ \ | |/ |/| | | | | | | | | rpc-connect: Remove cfg(unix) of SYSTEM_DEFAULT_CONNECT_POINT Closes #1776 See merge request tpo/core/arti!2667
| * rpc-connect: Remove cfg(unix) of SYSTEM_DEFAULT_CONNECT_POINTNick Mathewson2024-12-111-1/+0
| | | | | | | | | | | | | | When we switched this definition to use `cfg_if`, we overlooked the `#[cfg(unix)]`. Fixes #1776.
* | rpc-connect: Use try_lock when acquiring fslockNick Mathewson2024-12-191-0/+5
| | | | | | | | | | This lets us bail when another process has bound to our connect point, rather than blocking indefinitely.
* | connpt: Make unix socket handling more robust.Nick Mathewson2024-12-191-17/+2
|/ | | | | | | | | | Grab an associated lock file... - ... then delete the socket file (if it's present) ... - ... then bind to it. On exit: - remove the socket - then drop the lock.
* connpt: use cfg-if to declare connect point defaults.Nick Mathewson2024-12-091-20/+27
|
* connpts: Add default connect points as constants.Nick Mathewson2024-12-091-0/+60
|
* add_warnings, *: Allow clippy::needless_lifetimesNick Mathewson2024-12-031-0/+1
| | | | | | | | In 1.83, this warning triggers on many of our crates. We're thinking of fixing them all, but for now, we're going to disable the warning. This is part of #1765.
* connect point: Add server support.Nick Mathewson2024-11-191-0/+2
| | | | | ("Server support" here means binding to a socket and reading a cookie file.)
* connect point: Add client support.Nick Mathewson2024-11-191-0/+90
| | | | | ("Client support" here means connecting to a socket and reading a cookie file.)
* rpc-connect: Types for cookie authentication.Nick Mathewson2024-11-191-0/+1
| | | | (Cookie authentication is described in rpc-cookie-sketch.md)
* rpc-connect: Move tempdir() helper to a new moduleNick Mathewson2024-11-191-0/+2
|
* RPC connect points: Facility to load from files.Nick Mathewson2024-11-191-0/+35
|
* tor-connect-point: new crate to manage RPC connect pointsNick Mathewson2024-11-191-0/+97
See doc/dev/rpc-book/src/rpc-connect-sketch.md for details.