Skip to content

Conversation

@xclaesse
Copy link
Member

No description provided.

@xclaesse xclaesse requested a review from jpakkane as a code owner October 17, 2025 20:21
@xclaesse xclaesse force-pushed the cargo-workspace4 branch 3 times, most recently from ae7d35d to 66e54fd Compare October 19, 2025 23:52
@xclaesse xclaesse requested a review from dcbaker as a code owner October 19, 2025 23:52
@bonzini
Copy link
Collaborator

bonzini commented Oct 20, 2025

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.

Copy link
Collaborator

@bonzini bonzini left a 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.

@xclaesse
Copy link
Member Author

Removed commits that are now in #15153 and #15148

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.
@xclaesse
Copy link
Member Author

@bonzini thanks for the reviews!

@xclaesse xclaesse merged commit 1e8ae58 into mesonbuild:master Oct 22, 2025
32 checks passed
@xclaesse xclaesse deleted the cargo-workspace4 branch October 22, 2025 19:43
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

Successfully merging this pull request may close these issues.

2 participants