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

Add .current_features() #23

Open
alecmocatta opened this issue Jan 18, 2019 · 4 comments
Open

Add .current_features() #23

alecmocatta opened this issue Jan 18, 2019 · 4 comments

Comments

@alecmocatta
Copy link

For my use case I'd like a build that is of exactly the same config/env as the current build. If escargot can figure out a way to get the features currently activated, that would be really helpful!

escargot::CargoBuild::new()
    .bin("bin_fixture")
    .current_release()
    .current_target()
    .current_features()
    .exec()
    .unwrap();
@epage
Copy link
Contributor

epage commented Jan 18, 2019

Sadly, I don't think there is a way

@epage
Copy link
Contributor

epage commented Jan 18, 2019

btw, what is your use case?

@alecmocatta
Copy link
Author

alecmocatta commented Jan 18, 2019

I have a test that builds and runs an example. cargo test --no-default-features was failing due to that build then defaulting to using the "nightly" feature.

[features]
default = ["nightly"]
nightly = ["valgrind_request"]

@epage
Copy link
Contributor

epage commented Jan 18, 2019

If it wasn't for the example part, I'd point you to matklad's way of resolving this
assert-rs/assert_cmd#57 (comment)

epage added a commit to epage/escargot that referenced this issue Sep 27, 2024
…o-deny-action-2.x

chore(deps): Update EmbarkStudios/cargo-deny-action action to v2
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

No branches or pull requests

2 participants