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

Add cargoflags to toolchain configuration #626

Merged
merged 1 commit into from
Apr 24, 2022

Conversation

willcrichton
Copy link
Contributor

I am trying to test the new scrape examples feature using Crater. Because it's gated behind a Cargo flag -Zrustdoc-scrape-examples, I added the ability for Crater to take as input a new +cargoflags=... configuration for toolchains, similar to how +rustflags works.

One possible implementation issue: I'm doing cargoflags.split(' ') to split up the provided flags so as to pass them into the command builder. A more robust method would be to use a crate like shlex. I'm not sure if this is important enough to add the dependency, or if there's a better way to do this.

@Mark-Simulacrum
Copy link
Member

@bors r+

I don't think we need to bother with shlex or similar -- if that becomes an issue, I'd rather change the encoding such that we can specify flags via the DB or something and just manually adjust when necessary or so.

@bors
Copy link
Collaborator

bors commented Apr 24, 2022

📌 Commit 250680b has been approved by Mark-Simulacrum

@bors
Copy link
Collaborator

bors commented Apr 24, 2022

⌛ Testing commit 250680b with merge 34be8a1...

@bors
Copy link
Collaborator

bors commented Apr 24, 2022

☀️ Test successful - checks-actions
Approved by: Mark-Simulacrum
Pushing 34be8a1 to master...

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.

None yet

3 participants