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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for --cfg for MetadataCommand #275

Closed
wcampbell0x2a opened this issue May 9, 2024 · 1 comment
Closed

API for --cfg for MetadataCommand #275

wcampbell0x2a opened this issue May 9, 2024 · 1 comment

Comments

@wcampbell0x2a
Copy link

馃憢 I use this project for zerus. I noticed different output from my zerus and cargo vendor. This is (I think) due to me not setting the rustc --cfg to a certain os during my operation. But I wonder, if there is a good way of ignoring the target field when generating from cargo metadata?

I think for the following, this means I want to ignore the following target and treat this as a required dependency.
"target": "cfg(all(any(target_arch = \"x86_64\", target_arch = \"arm64ec\"), target_env = \"msvc\", not(windows_raw_dylib)))",`

Here is my code.
https://github.com/wcampbell0x2a/zerus/blob/eb851801378ba2b3be4a87debe8712690b07cad4/src/main.rs#L76

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

1 participant