Skip to content

Commit

Permalink
Attempt 1 at supporting cdylibs
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Apr 10, 2020
1 parent e3b2833 commit fdf9abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo-nro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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[0] == "bin" => {
Ok(Message::CompilerArtifact(ref artifact)) if artifact.target.kind.contains("bin") || artifact.target.kind.contains("cdylib") => {
// 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
Expand Down

0 comments on commit fdf9abd

Please sign in to comment.