summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/cargo/install_package.lua1
1 files changed, 1 insertions, 0 deletions
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)