summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* arti-relay: add 'test-all-crates' and 'matrix-check' exceptionsSteven Engler2024-11-131-0/+4
|
* arti-relay: add 'default-runtime' featureSteven Engler2024-11-131-2/+4
|
* tor-chanmgr: fix reconfigure bug when given `CheckAllOrNothing`Steven Engler2024-11-121-2/+9
| | | | We shouldn't actually reconfigure anything if given `CheckAllOrNothing`.
* cargo: Update `thiserror` to `2`Clara Engler2024-11-1254-79/+79
|
* fs-mistrust: Remove outdated thiserror syntaxClara Engler2024-11-121-1/+1
| | | | | | This commit removes an outdated syntax in a `thiserror` macro which will be removed in `thiserror` version 2. The change this commit makes is backwards compatible in itself.
* Merge branch 'remove-debug-panic' into 'main'Alexander Hansen Færøy2024-11-122-7/+1
|\ | | | | | | | | tor-chanmgr: remove panics in debug builds See merge request tpo/core/arti!2625
| * tor-chanmgr: remove panics in debug buildsSteven Engler2024-11-112-7/+1
| | | | | | | | | | | | These were supposed to fail loudly in debug builds by panicking, but panics are mostly useless for debugging in async applications that use a runtime which catches panics. So we'll just log the error instead.
* | 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.
* | Merge branch 'tor-proto_benchmarks' into 'main'gabi-2502024-11-1111-0/+643
|\ \ | | | | | | | | | | | | tor-proto: Add benchmarks for cell encryption and decryption See merge request tpo/core/arti!2608
| * | tor-proto: change the case of the macrosLionel Goffaux2024-11-082-6/+6
| | |
| * | tor-proto: condition benchmarks to the bench featureLionel Goffaux2024-11-061-0/+4
| | |
| * | tor-proto: put every bench_utils mod behind the bench featureLionel Goffaux2024-11-064-4/+4
| | |
| * | tor-proto: add macro for encryption/decryption bench setupLionel Goffaux2024-11-062-96/+47
| | |
| * | tor-proto: use as_nanos for CpuTimeLionel Goffaux2024-11-061-1/+5
| | |
| * | tor-proto: change the visibility of the RelayBody inner structLionel Goffaux2024-11-061-1/+1
| | |
| * | tor-proto: remove inlines attributesLionel Goffaux2024-11-062-4/+0
| | |
| * | tor-proto: add a bench featureLionel Goffaux2024-11-062-0/+2
| | |
| * | tor-proto: rename CPUTime to CpuTimeLionel Goffaux2024-11-065-16/+15
| | |
| * | tor-proto: Add benchmarks for cell encryption and decryptionLionel Goffaux2024-11-0411-0/+687
| |/
* | Merge branch 'proto-typo' into 'main'Ian Jackson2024-11-061-2/+2
|\ \ | | | | | | | | | | | | tor-proto: Document RecvWindow::take more accurately. See merge request tpo/core/arti!2611
| * | tor-proto: Document RecvWindow::take more accurately.Gabriela Moldovan2024-11-041-2/+2
| | | | | | | | | | | | The docs here seem wrong, so I am updating them.
* | | tor-dirmgr: don't support changing `DirMgrConfig::cache_trust`Steven Engler2024-11-052-0/+5
| | | | | | | | | | | | | | | `DirMgrConfig::update_from_config` uses the old value and not the new value, so it should be reported using `Reconfigure::cannot_change`.
* | | arti-client: add doc comment to `TorClient::reconfigure`Steven Engler2024-11-051-0/+4
| | |
* | | Merge branch 'remove-haskind' into 'main'Ian Jackson2024-11-053-16/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-hscrypto: Abolish the HasKind impl of HsIdParseError. Closes #1483 See merge request tpo/core/arti!2607
| * | | arti-client: Clarify when BadOnionAddress is returned.Gabriela Moldovan2024-11-041-0/+2
| | | | | | | | | | | | | | | | | | | | We only ever return `BadOnionAddress` is we are asked to connect to a .onion address that doesn't parse.
| * | | tor-hscrypto: Abolish the HasKind impl of HsIdParseError.Gabriela Moldovan2024-11-043-16/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Also changes the `ErrorKind` of `BadOnionAddress` to `ForbbiddenStreamTarget`. See context in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2246#note_3045683 Closes #1483
* | | tor-config-path: update `unix_literal` test to use `USER_HOME`Steven Engler2024-11-041-2/+2
| |/ |/| | | | | I think `USER_HOME` was intended here.
* | tor-config: added breaking changes to 'semver.md'Steven Engler2024-11-041-0/+3
| |
* | tor-config-path: re-enable 'test_parse' testSteven Engler2024-11-042-9/+20
| | | | | | | | | | The old code used a shortcut to access the `Figment` directly, but we need to do the whole config builder thing to be able to parse the toml.
* | tor-config: removed re-export of `CfgPath`Steven Engler2024-11-0418-16/+27
| | | | | | | | | | Also updated other packages to get `CfgPath` directly from `tor-config-path' instead of 'tor-config'.
* | tor-config: remove unused dependenciesSteven Engler2024-11-041-5/+1
| |
* | tor-config: remove 'expand-paths' featureSteven Engler2024-11-041-3/+2
|/
* Merge branch 'cfgaddr' into 'main'Nick Mathewson2024-11-023-2/+387
|\ | | | | | | | | New CfgAddr type to represent SocketAddrs in configuration. See merge request tpo/core/arti!2597
| * New CfgAddr type to represent SocketAddrs in configuration.Nick Mathewson2024-10-313-2/+387
| | | | | | | | | | This type behaves like a variant of `general::SocketAddr` that allows the Unix variant to be a CfgPath.
* | Merge branch 'semver' into 'main'Jim Newsome2024-10-317-24/+0
|\ \ | | | | | | | | | | | | Remove obsolete semver files post 1.3.0 release See merge request tpo/core/arti!2603
| * | Remove obsolete semver files post 1.3.0 releaseIan Jackson2024-10-317-24/+0
| |/
* | tor-relay-crypto: Rename RelaySigningKeypairSpecifier's timestamp to ↵Gabriela Moldovan2024-10-311-3/+9
| | | | | | | | | | | | | | valid_until. As per our discussion in https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2577#note_3099356
* | tor-relay-crypto: Add tests for relay key specifier serialization.Gabriela Moldovan2024-10-312-0/+55
| |
* | tor-relay-crypto: Add a denotator to RelaySigningKeypairSpecifier.Gabriela Moldovan2024-10-314-10/+65
| | | | | | | | | | | | | | This will enable us to store more than one `K_relaysign_ed` in the keystore. Closes #1692
* | tor-persist: Add a slug timestamp type.Gabriela Moldovan2024-10-313-0/+136
| | | | | | | | | | | | | | | | The new `Iso8601TimeSlug` is useful for encoding a timestamp as a `Slug` (i.e. in a filename). This is needed, for example, for #1692, to encode a timestamp as key denotator.
* | tor-relay-crypto: Add a specifier for the public part of the identity keypair.Gabriela Moldovan2024-10-311-0/+9
| | | | | | | | | | | | | | We'll eventually need this specifier (for example, if the `KS_relayid_ed` private key stored offline, the public part of the keypair will be stored in the online keystore, and will be retrievable using the new `RelayIdentityPublicKeySpecifier` specifier).
* | tor-relay-crypto: Fix typo in doc comment.Gabriela Moldovan2024-10-311-1/+1
| |
* | tor-relay-crypto: Use the KS_ prefix for RelayIdentityKeySpecifier.Gabriela Moldovan2024-10-312-5/+5
|/ | | | | | | | | | According to its docs, `RelayIdentityKeySpecifier` was meant to be the key specifier for the relay identity keypair, so its role prefix should be `KS_`. This also renames `RelayIdentityKeySpecifier` to `RelayIdentityKeypairSpecifier` for clarity (we're about to add another specifier here, for the public relay identity key).
* Merge branch 'versions' into 'main'Ian Jackson2024-10-3051-438/+438
|\ | | | | | | | | Version bumps for release of 1.3.0 See merge request tpo/core/arti!2599
| * Bump arti crate version to 1.3.0Ian Jackson2024-10-303-3/+3
| | | | | | | | | | | | | | | | I think we should bump the minor version because of the new features, particularly supporting .onion domains as a client by default, and the OOM DoS resistance features (#351). cargo set-version --offline --bump=minor -p arti
| * Bump minor versions of crates with only non-functional changesIan Jackson2024-10-301-1/+1
| | | | | | | | ./maint/bump_nodep fs-mistrust
| * Bump minor versions of crates with new APIs/implsIan Jackson2024-10-3020-23/+23
| | | | | | | | | | cargo set-version --bump=patch -p slotmap-careful cargo set-version --bump=patch -p safelog
| * Bump unstable tor-* and arti-* crates to 0.24.0Ian Jackson2024-10-3048-411/+411
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cargo set-version -p tor-async-utils 0.24.0 cargo set-version -p tor-basic-utils 0.24.0 cargo set-version -p tor-bytes 0.24.0 cargo set-version -p tor-cell 0.24.0 cargo set-version -p tor-cert 0.24.0 cargo set-version -p tor-chanmgr 0.24.0 cargo set-version -p tor-checkable 0.24.0 cargo set-version -p tor-circmgr 0.24.0 cargo set-version -p tor-config 0.24.0 cargo set-version -p tor-config-path 0.24.0 cargo set-version -p tor-consdiff 0.24.0 cargo set-version -p tor-dirclient 0.24.0 cargo set-version -p tor-dirmgr 0.24.0 cargo set-version -p tor-error 0.24.0 cargo set-version -p tor-general-addr 0.24.0 cargo set-version -p tor-geoip 0.24.0 cargo set-version -p tor-guardmgr 0.24.0 cargo set-version -p tor-hsclient 0.24.0 cargo set-version -p tor-hscrypto 0.24.0 cargo set-version -p tor-hsrproxy 0.24.0 cargo set-version -p tor-hsservice 0.24.0 cargo set-version -p tor-key-forge 0.24.0 cargo set-version -p tor-keymgr 0.24.0 cargo set-version -p tor-linkspec 0.24.0 cargo set-version -p tor-llcrypto 0.24.0 cargo set-version -p tor-log-ratelim 0.24.0 cargo set-version -p tor-memquota 0.24.0 cargo set-version -p tor-netdir 0.24.0 cargo set-version -p tor-netdoc 0.24.0 cargo set-version -p tor-persist 0.24.0 cargo set-version -p tor-proto 0.24.0 cargo set-version -p tor-protover 0.24.0 cargo set-version -p tor-ptmgr 0.24.0 cargo set-version -p tor-relay-crypto 0.24.0 cargo set-version -p tor-relay-selection 0.24.0 cargo set-version -p tor-rpcbase 0.24.0 cargo set-version -p tor-rtcompat 0.24.0 cargo set-version -p tor-rtmock 0.24.0 cargo set-version -p tor-socksproto 0.24.0 cargo set-version -p tor-units 0.24.0 cargo set-version -p arti-client 0.24.0 cargo set-version -p arti-relay 0.24.0 cargo set-version -p arti-rpc-client-core 0.24.0 cargo set-version -p arti-rpcserver 0.24.0
* | cargo: Run fixup-features (formatting)Ian Jackson2024-10-3011-11/+24
| | | | | | | | Manual fixup. I filed #1719 about the fact that I had to do this.