For some undocumented reason we're not allowed to make use of features
added by the patched dependency we want to use.
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
-[patch.crates-io]
-libc = { git = "https://github.com/xcp-ng/rust-libc.git", branch = "freebsd-netlink-0.2" }
-rtnetlink = { git = "https://github.com/xcp-ng/rust-rtnetlink.git", branch = "freebsd" }
+[patch.crates-io.libc]
+git = "https://github.com/xcp-ng/rust-libc.git"
+#branch = "freebsd-netlink-0.2"
+# cannot specify a cargo feature here, so use a version exposing
+# freebsd-netlink support without needing a feature
+rev = "bfe4c69a83a9e6fc4fe92867c7ebbc471b723ccb"
+
+[patch.crates-io.rtnetlink]
+git = "https://github.com/xcp-ng/rust-rtnetlink.git"
+branch = "freebsd"