From a9b8732d8062610689247bab4790b16862b063ae Mon Sep 17 00:00:00 2001 From: roblabla Date: Tue, 7 Apr 2020 23:33:44 +0000 Subject: [PATCH] Attempt 2 at adding cdylib support to cargo-nro --- src/bin/cargo-nro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/cargo-nro.rs b/src/bin/cargo-nro.rs index 7019d41..d9fa9f2 100644 --- a/src/bin/cargo-nro.rs +++ b/src/bin/cargo-nro.rs @@ -252,7 +252,7 @@ fn main() { let iter = cargo_metadata::parse_message_stream(command.stdout.unwrap()); for message in iter { match message { - Ok(Message::CompilerArtifact(ref artifact)) if artifact.target.kind.contains("bin") || artifact.target.kind.contains("cdylib") => { + Ok(Message::CompilerArtifact(ref artifact)) if artifact.target.kind.contains(&"bin".into()) || artifact.target.kind.contains(&"cdylib".into()) => { // Find the artifact's source. This is not going to be pretty. // For whatever reason, cargo thought it'd be a *great idea* to make file URLs use // the non-standard "path+file:///" scheme, instead of, y'know, the ""file:///" everyone