summaryrefslogtreecommitdiff
path: root/crates/tor-config-path/src/addr.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-config-path: Fix another Windows warningTobias Stoeckmann2025-08-251-0/+1
| | | | | Only Unix systems use the variable path_resolver. Annotate it as unused for all other systems.
* Switch Cargo.toml files to edition 2024.Nick Mathewson2025-08-071-1/+1
| | | | | | | | | | | | | | 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.
* Fix Windows compile warningsTobias Stoeckmann2025-08-051-0/+2
| | | | | Use unix-specific crates only if needed and suppress clippy warnings of unused variables if their usage is unix-specific.
* config-path, dirmgr, general-addr: Remove unnecessary parentheses.Gabriela Moldovan2025-07-151-1/+1
| | | | This resolves some nightly clippy warnings.
* AF_UNIX terminology: Rename two error structsIan Jackson2025-03-241-4/+4
| | | | | | 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-3/+3
| | | | Change `..UnixAddress...` to `...AfUnixAddress..`.
* Fix AF_UNIX terminology in docs, comments, and error messagesIan Jackson2025-03-241-8/+8
|
* Fix not(unix) build error introduced in cb090c7b4c.Alexander Hansen Færøy2025-01-261-2/+2
| | | | | | | This patch fixes a relatively harmless build error introduced for non-unix builds. Additional comma introduced in b5aa8f7a88.
* CfgAddr: Function to check whether substitutions applyNick Mathewson2024-11-191-0/+10
| | | | We'll need this for implementing the connect point logic.
* update `CfgPath::path` to use a `CfgPathResolver`Steven Engler2024-11-181-14/+26
| | | | | | | | | | | | | | | | This is a big change across multiple crates since there isn't a good way to break it up. This changes the signature of `CfgPath::path` to: ``` pub fn path(&self, path_resolver: &CfgPathResolver) -> Result<PathBuf, CfgPathError> { ``` Making this change means that our global `CfgPathResolver` needs to be stored in the 'arti-client' library instead of `tor-config-path`, and must be passed through to anything that calls `path` to expand the variables.
* Merge branch 'remove-deadcode' into 'main'Nick Mathewson2024-11-121-41/+0
|\ | | | | | | | | tor-config-path: remove exploratory code in comment See merge request tpo/core/arti!2610
| * tor-config-path: remove exploratory code in commentNick Mathewson2024-11-041-41/+0
| | | | | | | | | | I meant to remove this after confirming that the current approach works; but apparently I never did.
* | tor-config-path: update `unix_literal` test to use `USER_HOME`Steven Engler2024-11-041-2/+2
|/ | | | I think `USER_HOME` was intended here.
* New CfgAddr type to represent SocketAddrs in configuration.Nick Mathewson2024-10-311-0/+379
This type behaves like a variant of `general::SocketAddr` that allows the Unix variant to be a CfgPath.