summaryrefslogtreecommitdiff
path: root/crates/arti/src/cfg.rs
Commit message (Collapse)AuthorAgeFilesLines
* arti: make "memquota" feature a no-opSteven Engler2025-07-311-31/+17
|
* arti: cfg::test Rework refactorplaybahn2025-05-191-9/+8
|
* arti: cfg::test: Fix TODO + Minor refactorplaybahn2025-04-261-76/+56
|
* arti,arti-client: Add an option to override required protocolsNick Mathewson2025-04-161-0/+1
| | | | | (This isn't a boolean, because we really don't want people ignoring all possible required protocols.)
* metrics: config tests: Correct a commentIan Jackson2025-04-081-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2918#note_3185867
* metrics: config: Correct the docs on the MetricsConfig typeIan Jackson2025-04-081-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2918#note_3185866
* metrics: config: Correct the docs on the listen config fieldIan Jackson2025-04-081-9/+4
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2918#note_3185864
* arti: cfg tests: Improve formatting of an assertIan Jackson2025-04-081-3/+6
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2918#note_3185859
* arti: Optionally set up a Prometheus metrics exporterIan Jackson2025-04-081-0/+106
| | | | | | | | | | | | | New cargo feature `metrics`, currently experimental. New config option `metrics.prometheus.listen`. Uses standard `Listen` syntax, but not every configuration is supported due to upstream limitations. If the config option is set, use metrics-exporter-prometheus to offer an HTTP scrape endpoint. Or, if compiled out, fail. Currently there are no actual metrics exported at all.
* arti: cfg tests: On mismatch, report which config fileIan Jackson2025-04-081-2/+2
| | | | | Otherwise it can be very confusing pushing the bump in the carpet back and forth.
* Add examples and tests for RPC options.Nick Mathewson2025-03-251-1/+60
| | | | Closes #1830.
* arti: warn when rpc options are set without rpc feature.Nick Mathewson2025-03-251-0/+21
| | | | Closes #1309.
* arti: Disable RPC reconfiguration for nowNick Mathewson2024-12-191-1/+1
|
* arti: Move RpcConfig to rpc.rsNick Mathewson2024-12-191-29/+4
|
* tor-config: removed re-export of `CfgPath`Steven Engler2024-11-041-4/+4
| | | | | Also updated other packages to get `CfgPath` directly from `tor-config-path' instead of 'tor-config'.
* tor-memquota: Declare memquota feature stable, and defaultIan Jackson2024-10-221-1/+0
| | | | | | | | And document the Cargo features. This compiles in the memquota support for people who depend directly on tor-memquota. But all our in-tree dependencies turn off default features, so this doesn't have any effect for in-tree crates.
* arti cfg tests: Clarify here and thereIan Jackson2024-10-221-1/+2
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2561#note_3097443
* arti cfg tests: Fix typoIan Jackson2024-10-221-1/+1
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2561#note_3097442
* minimal features test: Introduce new --cfg arti_features_preciseIan Jackson2024-10-221-1/+6
| | | | | Work around awkward cargo behaviour and allow us to more reliably test disabled features, even if they're enabled by default at lower levels.
* tor-keymgr: Move C Tor keystore configs under ctor key.Gabriela Moldovan2024-10-081-2/+3
| | | | | | | This way we have a more intuitive layout, where all C Tor keystore configuration is under the `ctor` key. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2481#note_3090486
* tor-keymgr: Add configuration for C Tor client keystores.Gabriela Moldovan2024-10-081-1/+9
| | | | | This is intentionally partially mis-indented to make this more reviewable (in case the reviewer isn't using `ignore-all-space`).
* arti-client: Use the configured C Tor keystores, if any.Gabriela Moldovan2024-10-081-8/+1
|
* tor-keymgr: Add configuration for C Tor service keystores.Gabriela Moldovan2024-10-081-0/+10
|
* Merge branch 'warn_on_nonlocal' into 'main'Nick Mathewson2024-10-011-2/+13
|\ | | | | | | | | Warn on nonlocal addresses in configuration, PT results See merge request tpo/core/arti!2454
| * Mark resolve_listen_port as deprecated.Nick Mathewson2024-09-301-2/+9
| |
| * arti::cfg: Add a note to avoid new uses of a macro.Nick Mathewson2024-09-251-0/+4
| |
* | Merge branch 'silence-warning' into 'main'gabi-2502024-09-301-0/+1
|\ \ | | | | | | | | | | | | arti: Silence unused_mut warning. See merge request tpo/core/arti!2431
| * | arti: Silence unused_mut warning.Gabriela Moldovan2024-09-181-0/+1
| |/ | | | | | | The `config` is only mutated if `onion-service-service` is enabled.
* | arti: add an example for onion service "reject" optionNick Mathewson2024-09-261-0/+4
| | | | | | | | There was previously no example here.
* | Upgrade to derive_more version 1.0.0Nick Mathewson2024-09-251-5/+3
|/ | | | | | The `derive_more` crate broke backward compatibility with this version, so this change involved quite a few manual fixups. With luck, they'll keep compatibility for some while in the future.
* Provide a MemoryQuotaTracker in TorClientIan Jackson2024-09-041-1/+0
| | | | Nothing uses this yet.
* arti: Proper testing of the memory limit config parsingIan Jackson2024-09-041-2/+53
| | | | | | Including testing that uncommenting the example generates a config with tracking enabled, and that the example low_water is the default value for the example max.
* arti cfg tests: Provide resolve_return_resultsIan Jackson2024-09-041-0/+6
|
* arti cfg tests: strip_prefix: Leave section markers unchangedIan Jackson2024-09-041-1/+6
|
* arti cfg tests: strip_prefix: Document error behaviourIan Jackson2024-09-041-1/+3
|
* Look for memquota configuration in the TorClient configurationIan Jackson2024-09-041-1/+28
| | | | Tests are not entirely trivial and will come in a moment.
* Merge branch 'ci' into 'main'Ian Jackson2024-08-271-1/+2
|\ | | | | | | | | Run tests of every crate, with all features disabled See merge request tpo/core/arti!2350
| * arti: Fix an unused Result in tests if pts disabledIan Jackson2024-08-191-1/+2
| | | | | | | | | | Fixes compilation with cargo test --no-default-features -p arti --features=tokio,rustls
* | tor-hsservice: Pass watch_configuration down to restricted discovery config.Gabriela Moldovan2024-08-211-7/+23
|/ | | | | | We need to know if `watch_configuration` is set in the descriptor publisher reactor to know whether we should be watching the `restricted_discovery.key_dirs` directories.
* arti: Add the restricted_discovery configuration to the example config.Gabriela Moldovan2024-08-051-9/+61
| | | | This also adds a test for it.
* Work around clippy::doc_lazy_continuation false positivesIan Jackson2024-07-081-1/+1
| | | | | | | See https://github.com/rust-lang/rust-clippy/issues/13001 I think it's OK to change this in our tree, nevertheless.
* arti: Add vanguards settings to example config.Gabriela Moldovan2024-06-031-1/+1
|
* Add a test for transport configurationNick Mathewson2024-04-021-0/+46
| | | | | | | (Previously, nothing actually parsed these values in our configuration.) Closes #1333.
* Merge branch 'encapsulate_config_rs' into 'main'Nick Mathewson2024-03-131-8/+18
|\ | | | | | | | | Encapsulate usage of config-rs inside tor-config. See merge request tpo/core/arti!2040
| * tor-config: Put config::Config inside a wrapper type.Nick Mathewson2024-03-131-1/+1
| | | | | | | | This will let us replace Config with something better.
| * Use ConfigurationSource::Verbatim in our tests.Nick Mathewson2024-03-131-7/+17
| |
* | Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|/
* arti-client: Add VanguardsConfig to TorClientConfig.Gabriela Moldovan2024-03-111-0/+11
|
* Fix typos in doc commentsTobias Stoeckmann2024-03-061-1/+1
|
* arti: define RpcConfig only if neededTobias Stoeckmann2024-02-291-1/+1
| | | | The RpcConfig struct is only used if feature rpc is selected.