summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/migrations/v4.rs
AgeCommit message (Collapse)AuthorFilesLines
2024-03-27Refactor `mullvad-relay-selector`Markus Pettersson1-1/+1
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.
2023-11-13Remove unnecessary `mut`Sebastian Holmin1-1/+1
2023-08-30Fix clippy lintsEmīls1-1/+1
2023-08-07Get rid of "extern crate serde" and import derive macros explicitlyLinus Färnstrand1-0/+1
2023-02-13Rename settings error variantsDavid Lönnhager1-10/+12
2022-06-21Fix the large majority of clippy warningsJonathan1-4/+3
This commit fixes most of the remaining clippy warnings in the codebase. These warnings were the more semantically difficult ones to fix. There are some warnings that remain from the rebase that will be fixed in the upcoming PR.
2022-06-13Perform a clippy --fixjonathan1-1/+0
This is a giant commit which performs only a clippy --fix. Auditing can happen in two ways, either by reading every line or by running a `cargo clippy --fix` on the previous commit and make sure that the result is the same.
2022-01-11Remove unecessary Android stuff from settings migration codeLinus Färnstrand1-4/+0
2022-01-11Fix Android dependencies and importsLinus Färnstrand1-0/+2
2022-01-11Make settings migrations not depend on types that can changeLinus Färnstrand1-5/+25
2021-11-29Reformat code without blank_lines_upper_bound = 2Linus Färnstrand1-3/+0
2021-10-26Remove settings migration traitDavid Lönnhager1-72/+70
2021-10-26Refactor settings migrationDavid Lönnhager1-0/+283