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

Allow crates with cfg(feature = "x") to work #50

Merged
merged 10 commits into from
Nov 24, 2019
Merged

Allow crates with cfg(feature = "x") to work #50

merged 10 commits into from
Nov 24, 2019

Conversation

cpcloud
Copy link
Contributor

@cpcloud cpcloud commented Nov 24, 2019

Closes #37

Copy link
Collaborator

@kolloch kolloch left a comment

Choose a reason for hiding this comment

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

Thank you very much!

Could you reverse the change of included empty resolvedDefaultFeatures? Otherwise looks great.

Thanks for taking care of updating the tests.

@@ -104,6 +104,7 @@ rec {
};
features = {
};
resolvedDefaultFeatures = [ ];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer leaving these out...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually necessary for the Rust changes to work, because those changes introduce a check for features in the resolved features list

if !first {
result.push_str(" && ");
}
render(result, &expressions[0]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, this is nicer :)


# tokio-executor + tracing triggers the use of cfg(feature = "...")
tokio-executor = "*"
# FIXME: using default features causes 2 versions of lazy_static to be found
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is fixed, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this is a separate issue.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, thanks.

@kolloch kolloch self-requested a review November 24, 2019 17:35
Copy link
Collaborator

@kolloch kolloch left a comment

Choose a reason for hiding this comment

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

Please hide empty resolvedDefaultFeatures again.

@kolloch kolloch merged commit 7162175 into nix-community:master Nov 24, 2019
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.

Compilation issues with tracing - attribute 'feature' missing
2 participants