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 support for workspace inheritance #1185

Merged
merged 2 commits into from
Jan 28, 2023
Merged

Add support for workspace inheritance #1185

merged 2 commits into from
Jan 28, 2023

Conversation

printfn
Copy link
Contributor

@printfn printfn commented Oct 26, 2022

This PR adds support for reading metadata from crates using the workspace inheritance feature introduced in Rust 1.64.

I've implemented this by bumping the cargo_metadata dependency to the latest version, and using its metadata for the description, license, license-file, repository and homepage fields, instead of parsing the Cargo.toml file directly. This should also make wasm-pack more resilient to future Cargo.toml format changes.

I've tested the change locally and it seems to work perfectly.

Fixes #1180.


Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
$ rustup component add rustfmt
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

@haraldreingruber
Copy link

Anything I can help to move this PR forward?

@printfn
Copy link
Contributor Author

printfn commented Nov 26, 2022

It's blocked by #1188

@haraldreingruber
Copy link

It's blocked by #1188

Thanks for the update!

Copy link
Member

@drager drager left a comment

Choose a reason for hiding this comment

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

Looks good and sounds like a better solution! Thanks a lot.

Will merge it once #1188 is merged.

@printfn
Copy link
Contributor Author

printfn commented Jan 15, 2023

Rebased onto #1188 and resolved the merge conflicts.

@yihau
Copy link

yihau commented Jan 25, 2023

will this one release a new version? like v0.11.0 🤔

@drager
Copy link
Member

drager commented Jan 25, 2023

will this one release a new version? like v0.11.0 thinking

Yes, will do that in a near future :)

@drager drager merged commit e101023 into rustwasm:master Jan 28, 2023
@printfn printfn deleted the workspace-inheritance branch January 28, 2023 18:46
@yihau
Copy link

yihau commented Feb 8, 2023

Hi there! Just would like to bump this up. How's the new release going? Anything I can help with it? can't wait to build our project with this feature 😎

panarch added a commit to gluesql/gluesql that referenced this pull request Feb 10, 2023
Shares edition, description, license, repository and documentation fields

ref. rustwasm/wasm-pack#1185
so this commit changes does not contain wasm-pack related workspaces
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.

Error: failed to parse manifest when using the workspace inheritance feature from Rust 1.64
4 participants