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

2.0 Release #48

Merged
merged 15 commits into from
Aug 3, 2019
Merged

2.0 Release #48

merged 15 commits into from
Aug 3, 2019

Conversation

abonander
Copy link
Owner

@abonander abonander commented Jul 19, 2019

Additions

A new, much more composable and Rust-y API has been added to replace the existing mess of free functions. This API also supports returning multiple guesses per extension, supporting the case in #28 where a single file format has multiple possible media types.

rust-phf has been made an optional feature which is currently disabled while rust-phf prepares a 0.8 release; with it disabled the implementation falls back to a binary search.

Generating reverse-mappings has been made an optional feature though it is on by default.

mime has been upgraded to 0.3 and is now publicly exported, and unicase is upgraded to 2.4.0.

Deprecations

Most existing free functions are deprecated. Their deprecation messages include their equivalent expressions with the new API.

New Requirement for Contribution

In an effort to produce a cleaner audit trail, I'm now requiring changes to MIME type mappings to provide citations next to the mappings themselves. This may bloat the crate source a bit more but should not affect compile size or times significantly. Existing mappings can have their citations added over time but this will be a lot of busy work.

Closes #28
Closes #37
Closes #43

@abonander abonander marked this pull request as ready for review July 19, 2019 18:22
@abonander abonander merged commit ea2954d into master Aug 3, 2019
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.

Method naming Bump unicase dependency is there a way to handle different mimetype for same extension
1 participant