Skip to content

cargo test for plugins fails on Windows when using rustup #3463

Closed

Description

@retep998

If a crate has plugin = true then any binaries crated by cargo test will depend on the DLL versions of Rust libraries instead of statically linking to them. If the directory containing the DLLs is not in PATH then the test binaries will fail to run. The most common way that this occurs is if the user is using rustup as recommended. So either rustup needs to make sure that directory is in PATH before forwarding to the actual cargo/rustc or cargo needs to make sure it adds that directory when running tests or possibly make tests statically link. The reason this is specific to Windows is because Windows does not have rpath, so the only way for the DLLs to be found is via PATH.

cc @brson

Activity

  1. retep998 commented on Dec 28, 2016

    @retep998
    ContributorAuthor

    Oh, this is a dupe of #3394

  2. alexcrichton commented on Dec 28, 2016

    @alexcrichton
    Member

    Ok, closing as a dupe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions