Repository: tonarino/innernet (language: rust)

Issue:
Can't build v1.6.0 with instructions in the README.md
This is just a heads-up/notes for anyone else who hits this. It's fixed in main. It looks like one of the dependencies pulled the version required by this project or one of it's dependencies.
```
hax@debian-12:~$ cargo install --git https://github.com/tonarino/innernet --tag v1.6.0 server
    Updating git repository `https://github.com/tonarino/innernet`
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
  Installing server v1.6.0 (https://github.com/tonarino/innernet?tag=v1.6.0#8d058c8d)
    Updating crates.io index
error: failed to compile `server v1.6.0 (https://github.com/tonarino/innernet?tag=v1.6.0#8d058c8d)`, intermediate artifacts can be found at `/tmp/cargo-installUNtsMJ`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Caused by:
  failed to select a version for the requirement `x25519-dalek = "=2.0.0-rc.2"`
  candidate versions found which didn't match: 2.0.0, 2.0.0-rc.3, 2.0.0-pre.1, ...
  location searched: crates.io index
  required by package `wireguard-control v1.6.0 (/home/hax/.cargo/git/checkouts/innernet-e473261454a9fbf4/8d058c8/wireguard-control)`
      ... which satisfies path dependency `wireguard-control` of package `server v1.6.0 (/home/hax/.cargo/git/checkouts/innernet-e473261454a9fbf4/8d058c8/server)`
  if you are looking for the prerelease package it needs to be specified explicitly
      x25519-dalek = { version = "2.0.0-rc.3" }
  perhaps a crate was updated and forgotten to be re-vendored?
```

The workaround I used is `cargo install --git https://github.com/tonarino/innernet --branch main server`.

A patch release would be nice but obviously there are other options for people to install this.

This looks like a nice project so far. This is as far as I've gotten so I can't say much more. Thanks for making this :)


Discussion / hints:
Thanks for the issue report! I actually ran into this recently as well, and I very irresponsibly didn't file an issue 😅 

I'll try to get a patch release published soon.

Fix patch:
diff --git a/Cargo.lock b/Cargo.lock
index 1e7f425..9e8a25c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -234,7 +234,7 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
 
 [[package]]
 name = "client"
-version = "1.6.0"
+version = "1.6.1"
 dependencies = [
  "anyhow",
  "clap",
@@ -809,7 +809,7 @@ dependencies = [
 
 [[package]]
 name = "netlink-request"
-version = "1.6.0"
+version = "1.6.1"
 dependencies = [
  "netlink-packet-core",
  "netlink-packet-generic",
@@ -1144,7 +1144,7 @@ dependencies = [
 
 [[package]]
 name = "server"
-version = "1.6.0"
+version = "1.6.1"
 dependencies = [
  "anyhow",
  "bytes",
@@ -1179,7 +1179,7 @@ dependencies = [
 
 [[package]]
 name = "shared"
-version = "1.6.0"
+version = "1.6.1"
 dependencies = [
  "anyhow",
  "atty",
@@ -1685,7 +1685,7 @@ dependencies = [
 
 [[package]]
 name = "wireguard-control"
-version = "1.6.0"
+version = "1.6.1"
 dependencies = [
  "base64 0.13.1",
  "hex",
diff --git a/README.md b/README.md
index 221caad..b6ee618 100644
--- a/README.md
+++ b/README.md
@@ -216,10 +216,10 @@ brew install tonarino/innernet/innernet
 
 ```sh
 # to install innernet:
-cargo install --git https://github.com/tonarino/innernet --tag v1.6.0 client
+cargo install --git https://github.com/tonarino/innernet --tag v1.6.1 client
 
 # to install innernet-server:
-cargo install --git https://github.com/tonarino/innernet --tag v1.6.0 server
+cargo install --git https://github.com/tonarino/innernet --tag v1.6.1 server
 ```
 
 Note that you'll be responsible for updating manually.
diff --git a/client/Cargo.toml b/client/Cargo.toml
index a82f39e..09ffb4e 100644
--- a/client/Cargo.toml
+++ b/client/Cargo.toml
@@ -13,7 +13,7 @@ name = "client"
 publish = false
 readme = "README.md"
 repository = "https://github.com/tonarino/innernet"
-version = "1.6.0"
+version = "1.6.1"
 
 [[bin]]
 name = "innernet"
diff --git a/doc/innernet-server.8 b/doc/innernet-server.8
index 8ce9d07..aeab623 100644
--- a/doc/innernet-server.8
+++ b/doc/innernet-server.8
@@ -1,7 +1,7 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
-.TH INNERNET-SERVER "8" "June 2023" "innernet-server 1.6.0" "System Administration Utilities"
+.TH INNERNET-SERVER "8" "December 2023" "innernet-server 1.6.1" "System Administration Utilities"
 .SH NAME
-innernet-server \- manual page for innernet-server 1.6.0
+innernet-server \- manual page for innernet-server 1.6.1
 .SH SYNOPSIS
 .B innernet-server
 [\fI\,OPTIONS\/\fR] \fI\,<COMMAND>\/\fR
diff --git a/doc/innernet-server.8.gz b/doc/innernet-server.8.gz
index 296d82c..d01ac7e 100644
Binary files a/doc/innernet-server.8.gz and b/doc/innernet-server.8.gz differ
diff --git a/doc/innernet-server.completions.powershell b/doc/innernet-server.completions.powershell
index 91db4be..4da21d4 100644
--- a/doc/innernet-server.completions.powershell
+++ b/doc/innernet-server.completions.powershell
@@ -30,7 +30,7 @@ Register-ArgumentCompleter -Native -CommandName 'innernet-server' -ScriptBlock {
             [CompletionResult]::new('--no-routing', 'no-routing', [CompletionResultType]::ParameterName, 'Whether the routing should be done by innernet or is done by an external tool like e.g. babeld')
             [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
             [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
-            [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version')
+            [CompletionResult]::new('-V', 'V ', [CompletionResultType]::ParameterName, 'Print version')
             [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version')
             [CompletionResult]::new('new', 'new', [CompletionResultType]::ParameterValue, 'Create a new network')
             [CompletionResult]::new('uninstall', 'uninstall', [CompletionResultType]::ParameterValue, 'Permanently uninstall a created network, rendering it unusable. Use with care')
diff --git a/doc/innernet.8 b/doc/innernet.8
index 14e482a..f882bc6 100644
--- a/doc/innernet.8
+++ b/doc/innernet.8
@@ -1,7 +1,7 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
-.TH INNERNET "8" "June 2023" "innernet 1.6.0" "System Administration Utilities"
+.TH INNERNET "8" "December 2023" "innernet 1.6.1" "System Administration Utilities"
 .SH NAME
-innernet \- manual page for innernet 1.6.0
+innernet \- manual page for innernet 1.6.1
 .SH SYNOPSIS
 .B innernet
 [\fI\,OPTIONS\/\fR] [\fI\,COMMAND\/\fR]
diff --git a/doc/innernet.8.gz b/doc/innernet.8.gz
index 6c27d85..665829b 100644
Binary files a/doc/innernet.8.gz and b/doc/innernet.8.gz differ
diff --git a/doc/innernet.completions.powershell b/doc/innernet.completions.powershell
index d8a6506..38406ce 100644
--- a/doc/innernet.completions.powershell
+++ b/doc/innernet.completions.powershell
@@ -32,7 +32,7 @@ Register-ArgumentCompleter -Native -CommandName 'innernet' -ScriptBlock {
             [CompletionResult]::new('--no-routing', 'no-routing', [CompletionResultType]::ParameterName, 'Whether the routing should be done by innernet or is done by an external tool like e.g. babeld')
             [CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help')
             [CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help')
-            [CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version')
+            [CompletionResult]::new('-V', 'V ', [CompletionResultType]::ParameterName, 'Print version')
             [CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version')
             [CompletionResult]::new('install', 'install', [CompletionResultType]::ParameterValue, 'Install a new innernet config')
             [CompletionResult]::new('show', 'show', [CompletionResultType]::ParameterValue, 'Enumerate all innernet connections')
diff --git a/netlink-request/Cargo.toml b/netlink-request/Cargo.toml
index 53187b5..ce14822 100644
--- a/netlink-request/Cargo.toml
+++ b/netlink-request/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "netlink-request"
-version = "1.6.0"
+version = "1.6.1"
 edition = "2021"
 
 [target.'cfg(target_os = "linux")'.dependencies]
diff --git a/server/Cargo.toml b/server/Cargo.toml
index 5215913..41ba886 100644
--- a/server/Cargo.toml
+++ b/server/Cargo.toml
@@ -13,7 +13,7 @@ name = "server"
 publish = false
 readme = "README.md"
 repository = "https://github.com/tonarino/innernet"
-version = "1.6.0"
+version = "1.6.1"
 
 [[bin]]
 name = "innernet-server"
diff --git a/shared/Cargo.toml b/shared/Cargo.toml
index a6eae79..4d4c54c 100644
--- a/shared/Cargo.toml
+++ b/shared/Cargo.toml
@@ -9,7 +9,7 @@ edition = "2021"
 license = "MIT"
 name = "shared"
 publish = false
-version = "1.6.0"
+version = "1.6.1"
 
 [dependencies]
 anyhow = "1"
diff --git a/wireguard-control/Cargo.toml b/wireguard-control/Cargo.toml
index b589e8e..d7c3098 100644
--- a/wireguard-control/Cargo.toml
+++ b/wireguard-control/Cargo.toml
@@ -7,7 +7,7 @@ license = "LGPL-2.1-or-later"
 name = "wireguard-control"
 readme = "README.md"
 repository = "https://github.com/tonarino/innernet"
-version = "1.6.0"
+version = "1.6.1"
 
 [dependencies]
 base64 = "0.13.1"


Test patch: