summaryrefslogtreecommitdiffhomepage
path: root/mullvad-daemon/src/migrations/v1.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-07-15Run `crago +nightly clippy --fix`Markus Pettersson1-17/+15
2025-03-07Test that running migrations results in the most recent settings versionDavid Lönnhager1-40/+1
2024-04-22Fix broken lints in rustdocsSebastian Holmin1-1/+1
I ran `cargo doc` and fixed as many broken links as I could find.
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-2/+2
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
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-11Make settings migrations not depend on types that can changeLinus Färnstrand1-1/+16
2021-11-29Reformat code without blank_lines_upper_bound = 2Linus Färnstrand1-1/+0
2021-10-26Remove settings migration traitDavid Lönnhager1-53/+51
2021-10-26Refactor settings migrationDavid Lönnhager1-0/+215