Skip to main content

Crate tor_config_path

Crate tor_config_path 

Source
Expand description

Β§tor-config-path

Low-level file path handling for configuration of the Arti Tor implementation.

Β§Overview

This crate is part of Arti, a project to implement Tor in Rust.


License: MIT OR Apache-2.0

Re-exportsΒ§

pub use arti_client_paths::arti_client_base_resolver;
pub(crate) use std::collections::HashMap; πŸ”’
pub(crate) use Path; πŸ”’
pub(crate) use PathBuf; πŸ”’
pub(crate) use Deserialize; πŸ”’
pub(crate) use Deserialize; πŸ”’
pub(crate) use Serialize; πŸ”’
pub(crate) use Serialize; πŸ”’
pub(crate) use std::borrow::Cow; πŸ”’
pub(crate) use directories::BaseDirs; πŸ”’
pub(crate) use std::sync::LazyLock; πŸ”’
pub(crate) use ErrorKind; πŸ”’
pub(crate) use HasKind; πŸ”’

ModulesΒ§

addr
Support for shell expansion in general::SocketAddr.
arti_client_paths πŸ”’
Base paths for use with arti clients.

StructsΒ§

CfgPath
A path in a configuration file: tilde expansion is performed, along with expansion of variables provided by a CfgPathResolver.
CfgPathResolver
A variable resolver for paths in a configuration file.
LiteralPath πŸ”’
Inner implementation of PathInner:Literal

EnumsΒ§

CfgPathError
An error that has occurred while expanding a path.
PathInner πŸ”’
Inner implementation of CfgPath

FunctionsΒ§

expand πŸ”’
Helper: expand a directory given as a string.
home
Return the user’s home directory used when expanding paths.