Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes a bunch of dependencies and improves some things. Includes:
toml
dep, now the bundled units, if enabled, are included from a compile time parse of theunits.toml
file. So a user ofthe library only has to include a
toml
parser if they want to customize the units. This also give faster start times.url
. This crate had a huge amount of dependencies and complexity. I'm sure there is a reason, but it's notneeded here. I implemented a simpler way to check URLs.
pest
. Now the aisle config format uses a manual parser. The format simple and the new parser pass all existing tests.regex
. Contributed a ton to file size and it was used in very few sites.Unit
is not stored, only the text. Maybe it's a bit slower to convert, but it's easier to use.Breaking changes
INLINE_QUANTITIES
extension now finds all quantities, not only temperatures. (new feature, but breaking)Quantity
andUnit
api had some changes.It includes some breaking changes specially for the unit thing.
After all of this, the
examples/cook.rs
in windows went down from 4 MB to 1.2M.