dufs: lock cargo dependencies
authorTianling Shen <[email protected]>
Wed, 23 Jul 2025 06:45:56 +0000 (14:45 +0800)
committerTianling Shen <[email protected]>
Wed, 23 Jul 2025 09:24:02 +0000 (17:24 +0800)
The new version of tokio is not compatible with musl:

error[E0432]: unresolved import `tokio::net::TcpListener`
  --> src/main.rs:34:13
   |
34 | use tokio::{net::TcpListener, task::JoinHandle};
   |             ^^^^^^^^^^^^^^^^ no `TcpListener` in `net`

error[E0433]: failed to resolve: could not find `UnixListener` in `net`
   --> src/main.rs:156:44
    |
156 |                 let listener = tokio::net::UnixListener::bind(socket_path)
    |                                            ^^^^^^^^^^^^ could not find `UnixListener` in `net`

Signed-off-by: Tianling Shen <[email protected]>
net/dufs/Makefile

index c22a5179dcd36cbba2cf27adc8475895f062da8f..476efc0aeff0d46281fc2d6d7575a6809c64ce1a 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dufs
 PKG_VERSION:=0.43.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/sigoden/dufs/tar.gz/v$(PKG_VERSION)?
@@ -40,6 +40,10 @@ define Package/dufs/conffiles
 /etc/config/dufs
 endef
 
+define Build/Compile
+       $(call Build/Compile/Cargo,,--locked)
+endef
+
 define Package/dufs/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/dufs $(1)/usr/bin/