meilisearch / heed

A fully typed LMDB wrapper with minimum overhead 🐦
https://docs.rs/heed
MIT License
604 stars 55 forks source link

Disable default-features for `heed-types` crate #171

Closed parasyte closed 1 year ago

parasyte commented 1 year ago

Pull Request

What does this PR do?

This allows building without pulling in unused dependencies.

The following command should print an error, because the serde-json feature is not enabled:

$ cargo tree --no-default-features --features 'serde-bincode' -i serde_json

PR checklist

Please check if your PR fulfills the following requirements:

Kerollmops commented 1 year ago

Hey @parasyte 👋

Thank you for this PR. That's much better than the current behavior. If someone wants to enable these features, it only has to specify them here:

https://github.com/meilisearch/heed/blob/65ceb65204b53c355babcafcd4fa58e23a9941c1/heed/Cargo.toml#L43-L51

Merging this right now 🎸

I will release that just after, but keep in mind that it will be available on the v0.20.0-alpha.2.

Kerollmops commented 1 year ago

The new version is available on crates.io 🎉