dependabot[bot] and Paul Spooren
c13badb697
build(deps): bump thiserror from 1.0.68 to 1.0.69
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.68 to 1.0.69.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.68...1.0.69 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-13 14:06:25 +01:00
dependabot[bot] and Paul Spooren
cc7757a0db
build(deps): bump serial_test from 3.1.1 to 3.2.0
...
Bumps [serial_test](https://github.com/palfrey/serial_test ) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/palfrey/serial_test/releases )
- [Commits](https://github.com/palfrey/serial_test/compare/v3.1.1...v3.2.0 )
---
updated-dependencies:
- dependency-name: serial_test
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-13 11:48:07 +01:00
Paul Spooren and Benjamin Lipp
d267916445
docs(cli): Improve help text
...
This commit does multiple things at once to improve the user experience:
* Always start with an upper case letter, no mixing
* Hide deprecated `keygen` command, it still works if called
* Extend and rework some documentation textx
* Drop false `log_level` text, it contains a logic error
* Wrap all documentation at 80 chars
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-11-13 11:36:16 +01:00
dependabot[bot] and Paul Spooren
582d27351a
build(deps): bump libfuzzer-sys from 0.4.7 to 0.4.8
...
Bumps [libfuzzer-sys](https://github.com/rust-fuzz/libfuzzer ) from 0.4.7 to 0.4.8.
- [Changelog](https://github.com/rust-fuzz/libfuzzer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/libfuzzer/compare/0.4.7...0.4.8 )
---
updated-dependencies:
- dependency-name: libfuzzer-sys
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-08 10:50:37 +01:00
dependabot[bot] and Paul Spooren
61136d79eb
build(deps): bump tokio from 1.41.0 to 1.41.1
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.41.0 to 1.41.1.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.41.0...tokio-1.41.1 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-08 10:50:27 +01:00
dependabot[bot] and Paul Spooren
71bd406201
build(deps): bump libc from 0.2.161 to 0.2.162
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.161 to 0.2.162.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.162/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.161...0.2.162 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-08 10:50:17 +01:00
Paul Spooren and GitHub
ce63cf534a
Merge pull request #485 from rosenpass/dependabot/github_actions/actions/checkout-4
...
build(deps): bump actions/checkout from 3 to 4
2024-11-08 10:47:58 +01:00
dependabot[bot] and GitHub
d3ff19bdb9
build(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-07 23:45:49 +00:00
Paul Spooren and GitHub
3b6d0822d6
Merge pull request #468 from aparcar/hello-config
2024-11-07 15:14:00 +01:00
Paul Spooren and GitHub
533afea129
Merge pull request #453 from aparcar/boot_race
2024-11-07 15:13:38 +01:00
Paul Spooren
da5b281b96
ci: add regression test for boot race condition
...
If two instances start up at the same time, they end up with different
keys on both ends. Test this with different delays of 2 (working), 1
(flaky) and 0 (broken) seconds.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-11-07 14:38:31 +01:00
Paul Spooren
b9e873e534
feat(config): Implenent todos from validate function
...
Readability of public/secret keys can be checked by simply loading the
key and thereby also checking that it's actually valid.
A user should either define `key_out` or a valid WireGuard peer (made of
`device` and `peer`). If neither is defined, let the user know that this
function will never do any good.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-11-07 14:34:57 +01:00
dependabot[bot] and Paul Spooren
a3b339b180
build(deps): bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-07 14:33:23 +01:00
Paul Spooren
b4347c1382
feat(cli): Print downstream error of config validation
...
The incredible helpful error message would never reach the enduser.
Attach it to upper layer print to help users fix the issues.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-11-07 14:23:46 +01:00
Paul Spooren
0745019e10
docs(cli): Create commented config file
...
The previous `gen-config` output contained no comments and was partly
misleading, i.e. the `pre_shared_key` is actually a path and not the
key itself. Mark things that are optional.
To keep things in sync, add a test that verifies that the configuration
is actually valid.
While at it, use 127.0.0.1 as peer address instead a fictitious domain
which would break the tests.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-11-07 14:23:46 +01:00
dependabot[bot] and Paul Spooren
2369006342
build(deps): bump actionsx/prettier from 2 to 3
...
Bumps [actionsx/prettier](https://github.com/actionsx/prettier ) from 2 to 3.
- [Release notes](https://github.com/actionsx/prettier/releases )
- [Commits](https://github.com/actionsx/prettier/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actionsx/prettier
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-07 14:17:32 +01:00
dependabot[bot] and Paul Spooren
0fa6176d06
build(deps): bump arbitrary from 1.3.2 to 1.4.1
...
Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary ) from 1.3.2 to 1.4.1.
- [Changelog](https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-fuzz/arbitrary/compare/v1.3.2...v1.4.1 )
---
updated-dependencies:
- dependency-name: arbitrary
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 16:17:02 +01:00
dependabot[bot] and Paul Spooren
22bdeaf8f1
build(deps): bump anyhow from 1.0.91 to 1.0.93
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.91 to 1.0.93.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.91...1.0.93 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 15:44:55 +01:00
dependabot[bot] and Paul Spooren
5731272844
build(deps): bump actions/cache from 3 to 4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 15:13:43 +01:00
dependabot[bot] and Paul Spooren
bc7cef9de0
build(deps): bump peaceiris/actions-gh-pages from 3 to 4
...
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages ) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases )
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md )
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 15:13:22 +01:00
dependabot[bot] and Paul Spooren
4cdcc35c3e
build(deps): bump cachix/install-nix-action from 21 to 30
...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action ) from 21 to 30.
- [Release notes](https://github.com/cachix/install-nix-action/releases )
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v30 )
---
updated-dependencies:
- dependency-name: cachix/install-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 15:12:58 +01:00
dependabot[bot] and Paul Spooren
a8f1292cbf
build(deps): bump cachix/cachix-action from 12 to 15
...
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action ) from 12 to 15.
- [Release notes](https://github.com/cachix/cachix-action/releases )
- [Commits](https://github.com/cachix/cachix-action/compare/v12...v15 )
---
updated-dependencies:
- dependency-name: cachix/cachix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 15:12:38 +01:00
dependabot[bot] and Paul Spooren
ae5c5ed2b4
build(deps): bump softprops/action-gh-release from 1 to 2
...
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release ) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases )
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md )
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 15:12:11 +01:00
Paul Spooren and Benjamin Lipp
c483452a6a
ci(dependabot): check for GitHub action updates
...
We already use Dependabot for cargo updates, use it for GitHub action
updates, too. Right now we see warnings every now and then because Node
wants another upgrade or some checkout stuff is about to be deprecated.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-11-06 13:43:09 +01:00
dependabot[bot] and Paul Spooren
4ce331d299
build(deps): bump serde from 1.0.213 to 1.0.214
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.213 to 1.0.214.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.213...v1.0.214 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 13:29:18 +01:00
dependabot[bot] and Paul Spooren
d81eb7e2ed
build(deps): bump thiserror from 1.0.65 to 1.0.68
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.65 to 1.0.68.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.65...1.0.68 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 13:22:56 +01:00
dependabot[bot] and Paul Spooren
61043500ba
build(deps): bump rustix from 0.38.37 to 0.38.39
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.38.37 to 0.38.39.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.37...v0.38.39 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 13:22:15 +01:00
dependabot[bot] and Paul Spooren
9c4752559d
build(deps): bump clap_complete from 4.5.35 to 4.5.37
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.5.35 to 4.5.37.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.35...clap_complete-v4.5.37 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-11-06 10:39:38 +01:00
dependabot[bot] and Paul Spooren
6aec7acdb8
build(deps): bump clap_complete from 4.5.29 to 4.5.35
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.5.29 to 4.5.35.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.29...clap_complete-v4.5.35 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-28 12:22:13 +01:00
dependabot[bot] and Paul Spooren
337cc1b4b4
build(deps): bump clap_mangen from 0.2.23 to 0.2.24
...
Bumps [clap_mangen](https://github.com/clap-rs/clap ) from 0.2.23 to 0.2.24.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_mangen-v0.2.23...clap_mangen-v0.2.24 )
---
updated-dependencies:
- dependency-name: clap_mangen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-28 11:18:35 +01:00
Karolin Varner
387a266a49
chore: Dependency updates
...
Merge branch 'dev/karo/updates'
2024-10-24 17:30:52 +02:00
dependabot[bot] and Karolin Varner
179970b905
build(deps): bump thiserror from 1.0.64 to 1.0.65
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.64 to 1.0.65.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.64...1.0.65 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-24 17:30:32 +02:00
dependabot[bot] and Karolin Varner
8b769e04c1
build(deps): bump anyhow from 1.0.89 to 1.0.91
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.89 to 1.0.91.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.89...1.0.91 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-24 17:29:48 +02:00
dependabot[bot] and Karolin Varner
810bdf5519
build(deps): bump tokio from 1.40.0 to 1.41.0
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.40.0 to 1.41.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.40.0...tokio-1.41.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-24 17:29:23 +02:00
dependabot[bot] and Karolin Varner
d3a666bea0
build(deps): bump serde from 1.0.210 to 1.0.213
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.210 to 1.0.213.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.210...v1.0.213 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-24 17:28:47 +02:00
Karolin Varner and GitHub
2b8f780584
Unit tests & api doc
...
Merge pull request #458 from rosenpass/dev/karo/docs_and_unit_tests
2024-10-24 17:25:56 +02:00
Karolin Varner
6aea3c0c1f
chore: Documentation and unit tests for rosenpass_util::io
2024-10-24 14:01:20 +02:00
Karolin Varner
e4fdfcae08
chore: Documentation and unit tests for rosenpass_util::functional
2024-10-24 14:01:20 +02:00
Karolin Varner
48e629fff7
feat: sideffect/mutating should take FnMut over Fn
2024-10-24 14:01:20 +02:00
Karolin Varner
6321bb36fc
chore: Formatting
2024-10-24 14:01:20 +02:00
Karolin Varner
2f9ff487ba
chore: Unused import
2024-10-24 14:01:20 +02:00
Karolin Varner
c0c06cd1dc
chore: Wrong formatting for module doc
2024-10-24 14:01:20 +02:00
Karolin Varner
e9772effa6
chore: Documentation and unit tests for rosenpass_util::file
2024-10-24 14:01:20 +02:00
Karolin Varner
cf68f15674
chore: Documentation and unit tests for rosenpass_util::fd
2024-10-24 14:01:20 +02:00
Karolin Varner
dd5d45cdc9
chore: Documentation and unit tests for rosenpass_util::controlflow
2024-10-24 14:01:20 +02:00
Karolin Varner and GitHub
17a6aed8a6
feat(cli): Automatically generate man page
...
Merge pull request #434 from aparcar/lil-cli-ng
2024-10-24 13:59:31 +02:00
Paul Spooren
3f9926e353
feat(cli): Automatically generate man page
...
Instead of using a static one, generate it via clap_mangen. To generate
the manpage run `rosenpass --generate-manpage <folder>`.
Right now clap does not support flattening of generated manpages,
meaning that each subcommand is explained in its own file. To add extra
sections to the main file `rosenpass.1`, it's rewritten after the
initial creation.
Once clap support flattened Man pages, the `generate_to` call can be
removed and all subcommand are added to the `rosenpass.1` file.
This implementation allows downstream manpage generation to stay
unchanged even after switching from multiple manpages to a flattened
one.
Signed-off-by: Paul Spooren <mail@aparcar.org >
2024-10-22 10:06:47 +02:00
f4ab2ac891
build(deps): bump libc from 0.2.159 to 0.2.161 ( #449 )
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.159 to 0.2.161.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.161/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.159...0.2.161 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-18 19:09:05 +02:00
Karolin Varner and GitHub
de51c1005f
Merge pull request #447 from rosenpass/dev/update-cargolock
...
chore: update Cargo.lock
2024-10-14 15:43:35 +02:00
wucke13 and Karolin Varner
1e2cd589b1
chore: update Cargo.lock
2024-10-14 15:42:40 +02:00