-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
More cargo workspace work #15138
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
More cargo workspace work #15138
Conversation
ae7d35d to
66e54fd
Compare
|
I would also move env_set to a separate PR, and add a rustc_nightly feature option to opt into it (enabled = require nightly, disabled = never use nightly features which would be the default). I think most projects would want to compile the same code for nightly and non-nightly. I will review the first few patches today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patches 2-4 look good. For patch 1 I commented specifically.
For cargo: Use --env-set when we have nightly rustc please open a separate PR.
66e54fd to
238268a
Compare
238268a to
3e7fedc
Compare
This allows keeping the manifest unmodified which is better practice for a parser. Previously some places had e.g. raw.setdefault(). It also fix some values: - BuildTarget.doc_scrape_examples is removed. It seems to be some experimental cargo feature, but I haven't found documentation that says it should be part of the manifest. It was also missing from raw manifest. - BuildTarget.edition does not default to 2015, it default to package's edition, which itself default to 2015. - bench value defaults to False for tests. - Dependency.path must be relative to its Cargo.toml location. If the value comes from the package it can be used as-is, but if it comes from workspace it must be made relative. - Library.name default to its package name with dash replaced with underscores.
3e7fedc to
0cb077f
Compare
|
@bonzini thanks for the reviews! |
No description provided.