diff options
| author | ruki <[email protected]> | 2024-02-04 00:37:09 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-04 00:37:09 +0800 |
| commit | 0beb1080c48f4cc32e2f706300a1993614458a33 (patch) | |
| tree | 9805adc7cff3877c1793640d3ce8e22094f2348d | |
| parent | 5c31fdb50c3230db5dd259d97285a8ac9e0fdf0c (diff) | |
| parent | 3acb15673c74ad5489039d80bb258851961f91c3 (diff) | |
Merge pull request #4685 from localcc/rust_local_path_fix
fix rust local path resolution on windows
| -rw-r--r-- | xmake/modules/package/manager/cargo/install_package.lua | 1 |
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) |
