From 3acb15673c74ad5489039d80bb258851961f91c3 Mon Sep 17 00:00:00 2001 From: localcc Date: Sat, 3 Feb 2024 15:27:25 +0100 Subject: fix: fix rust local path resolution on windows This commit fixes local path resolution for rust Cargo.toml crates on windows --- xmake/modules/package/manager/cargo/install_package.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/package/manager/cargo/install_package.lua b/xmake/modules/package/manager/cargo/install_package.lua index 51cebafee..7c9844c29 100644 --- a/xmake/modules/package/manager/cargo/install_package.lua +++ b/xmake/modules/package/manager/cargo/install_package.lua @@ -40,6 +40,7 @@ function _translate_local_path_in_deps(cargotoml, rootdir) if not path.is_absolute(localpath) then localpath = path.absolute(localpath, rootdir) end + localpath = localpath:gsub("\\", "/") return "path = \"" .. localpath .. "\"" end) io.writefile(cargotoml, content) -- cgit v1.3.1