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

fix: publicly re-export mzpeaks dependency to guarantee mz_read works. #9

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

paretje
Copy link
Contributor

@paretje paretje commented Sep 17, 2024

When using the mz_read macro, at the moment you need to declare a dependency on mzpeaks for it to work. This can also result in issues due to version mismatches between the mzpeaks version used to build mzdata, and the version declared in your own project. pub use prevents this by making sure that the version used in the mz_read is the one used in mzdata, and avoids the need to make mzpeaks an additional dependency at all.

Prevent downstream users needing to declare a dependency on mzpeaks when
using mz_read macro. This also prevents potential version mismatches.
@mobiusklein
Copy link
Owner

mobiusklein commented Sep 17, 2024 via email

@mobiusklein
Copy link
Owner

I was unable to come up with a satisfactory alternative that doesn't simply lead to converting mzdata into an umbrella library with building block type libraries like mzpeaks becoming "features" you enable, similar to the noodles library for genomics data access. I think I'll have to go there eventually, but I'm not ready to do that just yet.

@mobiusklein mobiusklein changed the title fix mzpeaks dependency for mz_read fix: publicly re-export mzpeaks dependency to guarantee mz_read works. Sep 22, 2024
@mobiusklein mobiusklein merged commit a6fc03f into mobiusklein:main Sep 22, 2024
2 checks passed
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