| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Upgrading `tonic` is a prerequisite to later on upgrading `hyper` to
version 1.0.
As of version 1.0, `hyper` no longer uses `tokio`s `AsyncWriter`
and `AsyncReader` traits, instead defining its own versions,
see <https://github.com/hyperium/hyper/issues/3110>. As tonic
`0.12` is updated to use the `hyper 1.0` ecosystem, it changed
some of its trait-bounds to the new `hyper` traits. The `hyper-utils`
crate provides the wrapper `TokioIo`, which converts between the two.
`prost` had to be upgraded as well, for compatibility.
|
|
|
|
Also regroup networking-related crates
|
|
|
|
|
|
My experiments show that on Linux this change yield ~25-30% smaller
binaries and ~20-30% faster compiles.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Add local wireguard go import
- Activate DAITA and add `wgActivateDaita` and `wgReceiveEvent` FFI
- Implement `start_daita` on Wireguard-go tunnel type
- Mention DAITA in `wireguard-go-rs` description
- Do not compile `wireguard-go-rs` on Windows
- Handle DAITA closed on `nil` event
- Handle daita action timeouts in libwg
- Remove noisy log lines
- Remove `maybenot_on_action` callback
- Remove unused link to `../build/lib` for `talpid-wireguard`
- Bump the `wireguard-go` submodule to a signed release tag in Mullvad's
`wireguard-go` fork.
- Update path to `libwg/go.sum` in verification script
Also:
- Use u64 instead of *mut void as log context
- Make Tunnel::set_config take a &mut self
- Use dyn Error instead of i32s for wg errors
Co-authored-by: Joakim Hulthe <joakim@hulthe.net>
|
|
|
|
|
|
|
|
|
|
Removes superfluous lifetime definitions. Simplifying the code
|
|
* macro_use_extern_crate - Forbid #[macro_use] to bring macros into
global scope. Even using `extern crate` is deprecated by now, so just
extra protection against that
* explicit_outlives_requirements - Warn aginst explicit lifetime bounds
that can be inferred from the code. Keeps noise away.
* absolute_paths_not_starting_with_crate - Catches Rust 2015 style
absolute paths and denies them.
* missing_abi - Force explicitly stating the ABI of `extern` items. Less
implicit code
* unused_lifetimes - Warn if you have lifetimes that are not used. Same
reason as warning against unused variables
* unused_macro_rules - Warn if you have a declarative macro with a rule
that is never used. Basically same reason as warning on unused
variables. Removes dead code
|
|
Prevents some cases of supply chain attacks where code is made to look
like one thing, but does something else
|
|
Implement a system built on 'queries' for selecting appropriate relays.
A query is a set of constraints which dictates which relay(s) that *can*
be chosen by the relay selector.
The user's settings can naturally be expressed as a query. The semantics
of merging two queries in a way that always prefer user settings is
defined by the new `Intersection` trait.
Split `mullvad-relay-selector` into several modules:
- `query.rs`: Definition of a query on different types of relays. This
module is integral to the new API of `mullvad-relay-selector`
- `matcher.rs`: Logic for filtering out candidate relays based on a
query.
- `detailer.rs`: Logic for deriving connection details for the selected
relay.
- `tests/`: Integration tests for the new relay selector. These tests
only use the public APIs of `RelaySelector` and make sure that the
output matches the expected output in different scenarios.
|
|
|
|
`err_derive` is unmaintained and will probably stop working with rust
edition 2024. `thiserror` is almost a drop-in replacement. This commit
simply replaces all occurences of `derive(err_derive::Error)` with
`derive(thiserror::Error)` and fixes the attributes, but the Error and
Display impls should be identical.
|
|
Refactor some parts of `talpid-core` to `talpid-future`.
|
|
|
|
|
|
|
|
Since Rust 1.75.0 the `version` field is optional. The version
defaults to "0.0.0" if it's not specified, and `publish` defaults
to false if no version has been given. So by not specifying
a version we get both `version = "0.0.0" and `publish = false`
"for free"
|
|
|
|
|
|
|
|
|
|
|