diff options
| author | localcc <[email protected]> | 2024-02-03 15:27:25 +0100 |
|---|---|---|
| committer | localcc <[email protected]> | 2024-02-03 15:27:25 +0100 |
| commit | 3acb15673c74ad5489039d80bb258851961f91c3 (patch) | |
| tree | 9805adc7cff3877c1793640d3ce8e22094f2348d | |
| parent | 5c31fdb50c3230db5dd259d97285a8ac9e0fdf0c (diff) | |
fix: fix rust local path resolution on windows
This commit fixes local path resolution for rust Cargo.toml crates 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) |
