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

Dynamic metadata #4258

Closed
jeberger opened this issue Jul 8, 2017 · 1 comment
Closed

Dynamic metadata #4258

jeberger opened this issue Jul 8, 2017 · 1 comment

Comments

@jeberger
Copy link

jeberger commented Jul 8, 2017

It would be nice if there was a way to specify package metadata dynamically (e.g. from a script or from build.rs).

The main reason would be to allow version to be determined automatically from the nearest VCS tag instead of needing to duplicate the version number in the tag and the Cargo.toml. I already do this when developping in Python or C (see here for a Python example).

This should probably be discussed alongside issue #4221 which addresses a similar concern about avoiding duplicate metadata.

@carols10cents
Copy link
Member

Similarly as #4221, I don't think this is something we're going to support in cargo itself since it could be implemented completely in an external script.

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