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

cargo metadata works with workspaces #3051

Merged
merged 1 commit into from Aug 28, 2016
Merged

Conversation

matklad
Copy link
Member

@matklad matklad commented Aug 28, 2016

Closes #3003

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)


impl Encodable for MetadataResolve {
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> {
#[derive(RustcEncodable)]
struct EncodableResolve<'a> {
root: &'a PackageId,
root: Option<&'a PackageId>,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is backwards compatible, because root would be null only in those cases, where previously cargo metadata did not work at all.

@alexcrichton
Copy link
Member

@bors: r+ 578c1a1

Thanks!

@bors
Copy link
Collaborator

bors commented Aug 28, 2016

⌛ Testing commit 578c1a1 with merge eff0a95...

bors added a commit that referenced this pull request Aug 28, 2016
`cargo metadata` works with workspaces

Closes #3003
@bors
Copy link
Collaborator

bors commented Aug 28, 2016

☀️ Test successful - cargo-cross-linux, cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-gnu-32, cargo-win-gnu-64, cargo-win-msvc-32, cargo-win-msvc-64
Approved by: alexcrichton
Pushing eff0a95 to master...

@bors bors merged commit 578c1a1 into rust-lang:master Aug 28, 2016
@matklad matklad deleted the ws-metadata branch December 14, 2016 15:27
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

4 participants