-
Notifications
You must be signed in to change notification settings - Fork 382
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 Cargo.toml
pkg metadata as config source
#657
Comments
This would be a good opportunity to switch to a serde deserialize implementation of getting configs |
To get the config, we can use https://docs.rs/cargo/0.60.0/cargo/util/config/struct.Config.html. We'll just need to parse some more arguments to get all information for calling https://docs.rs/cargo/0.60.0/cargo/util/config/struct.Config.html#method.configure. |
the cargo lib is quite heavy, not sure it's worth it |
I just submitted a PR for using |
670: Implement `Cross.toml` deserialization using `serde` r=Emilgardis a=mntns This PR implements the deserialization of the `Cross.toml` config using `serde`. It can therefore be seen as some preliminary work on the issues #657, #664, and is related to #532 on #624. I added some basic documentation as module-level documentation, although I'm not sure whether this is the best place for that. Ideally it should be documentated in the `README.md` at some point. Furthermore, `CrossToml` lives in its own module, but a more suitable place might be the `config` module. Co-authored-by: Niklas Kunz <git@monoton.space>
Should it be valid to have configuration in both If we do allow it, should we panic when a value exists twice? |
I just submitted a PR for that feature. For now, a warning will be shown if there are a Should the |
I think so, our goal was to phase out |
Ideally I would like to get rid of
Cross.toml
eventually and usepackage.metadata.cross
inCargo.toml
to storecross
configuration.Originally posted by @reitermarkus in #624 (comment)
The text was updated successfully, but these errors were encountered: