summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/cargo/find_package.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/cargo/find_package.lua b/xmake/modules/package/manager/cargo/find_package.lua
index 7fd151d5c..fa7105be5 100644
--- a/xmake/modules/package/manager/cargo/find_package.lua
+++ b/xmake/modules/package/manager/cargo/find_package.lua
@@ -32,6 +32,10 @@ import("lib.detect.find_file")
-- @param opt the options, e.g. {verbose = true, require_version = "1.12.x")
--
function main(name, opt)
+
+ -- Rust packages like actix-web will produce a file named actix_web-<...>
+ name = name:gsub("-", "_")
+
local frameworkdirs
local frameworks
local librarydir = path.join(opt.installdir, "lib")