summaryrefslogtreecommitdiff
path: root/crates/arti/Cargo.toml
Commit message (Collapse)AuthorAgeFilesLines
* Bump all crate versions to 0.0.1Nick Mathewson2021-10-291-5/+5
|
* Improve and future-proof the `arti` CLIeta2021-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This switches out `arti`'s argument-parsing library with `clap`, which is a lot more featureful (and very widely used within the Rust ecosystem). We also now use a lot of `clap`'s features to improve the CLI experience: - The CLI now expects a subcommand (currently, either "help", or "proxy" for the existing SOCKS proxy behaviour). This should let us add additional non-SOCKS-proxy features to arti in future. - `clap` supports default values determined at runtime, so the way the default config file is loaded was changed: now, we determine the OS-specific path for said file before invoking `clap`, so the help command can show it properly. - The behaviour of `tor_config` was also changed; now, one simply specifies a list of configuration files to load, together with whether they're required. - That function also way overused generics; this has been fixed. - Instead of using the ARTI_LOG environment variable to configure logging, one now uses the `-l, --log-level` CLI option. (The intent is for this option to be more discoverable by users.) - The `proxy` subcommand allows the user to override the SOCKS port used on the CLI without editing the config file.
* Upgrade to latest tracing-{subscriber,journald}Nick Mathewson2021-10-231-2/+2
|
* Rename tor_client/arti_tor_client to arti_client.Nick Mathewson2021-10-211-4/+4
| | | | | | Solves a name conflict with the existing tor_client create. Closes #130.
* arti: On startup, increase the NOFILE resource limit.Nick Mathewson2021-10-141-0/+1
| | | | | | | | | | | The default soft limit is typically enough for process usage on most Unixes, but OSX has a pretty low default (256), which you can run into easily under heavy usage. With this patch, we're going to aim for as much as 16384, if we're allowed. Fixes part of #188.
* proxy: Mark ENFILES and EMFILES as survivable.Nick Mathewson2021-10-141-0/+6
| | | | | | | | I don't love this approach, but those errors aren't distinguished by ErrorKind, so we have to use libc or winapi, apparently. At least nothing here is unsafe. Addresses part of #188.
* Require up-to-date x25519-dalek, async_executors, and argh.Nick Mathewson2021-10-091-1/+1
| | | | | | | | I tried using -Z minimal-versions to downgrade all first-level dependencies to their oldest permitted versions, and found that we were apparently depending on newer features of all three crates. I'm kind of surprised there were only three.
* Re-export configuration types from tor-client.Nick Mathewson2021-10-091-3/+1
|
* Make journald an optional feature.Jani Monoses2021-09-071-1/+2
|
* Allow logging to journald.Jani Monoses2021-09-071-0/+1
| | | | | Log to journald when available, add journald config option. Separate logging setup into its own function.
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+36
This will cause some pain for now, but now is really the best time to do this kind of thing.