Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path to dlls on windows #132

Merged
merged 2 commits into from
Feb 1, 2022
Merged

Fix path to dlls on windows #132

merged 2 commits into from
Feb 1, 2022

Conversation

ilslv
Copy link
Contributor

@ilslv ilslv commented Feb 1, 2022

Resolves #131

It looks like for some reason dlls aren't prefixed with lib on windows.

@ilslv ilslv changed the title Fix path to dlls on windows Fix path to dlls on windows Feb 1, 2022
@ilslv ilslv mentioned this pull request Feb 1, 2022
15 tasks
struct Person<'a>(&'a str);
fn main() {
let _ = Person("#bors");
let _ = Person::from("#bors");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary to test the behavior on Windows?

Copy link
Contributor Author

@ilslv ilslv Feb 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line isn't necessary. It's even enough to make sure that any external proc macro is visible, so in case of this PR, use derive_more::From;

The main idea is that proc macros are always compiled as dynamic libraries, so if we are able to use them, we are sure, that they are linked.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, if we need the extra dependency I'm fine leaving it like this.

Can you fix up the formatting? I'll merge after that.

@djc djc merged commit 9575fd6 into budziq:master Feb 1, 2022
@djc
Copy link
Collaborator

djc commented Feb 1, 2022

I've published 0.13.7 so you should be able to pick this up in your crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running tests on windows ignores dependencies
2 participants