Reduce dependencies #22
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mle/selkirk#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, we have 5 direct dependencies:
bstr: used to get thechar_indicesmethod on&[u8]in theBufReadSourceimplementationbytes: used for theBufReadSourceimplementationitertools: actually we just use its dependency,Either, as an error type for theCharSetTokenizerthiserror: used for derivingErrorunicode-xid: used for theis_xid_startandis_xid_continuefunctions in theSimpleCharSettokenizerFour of these are only used for the default tokenizers provided by this library, which mostly exist as examples (since most users will have their own desired tokenization method), and the last mainly exists to slightly reduce a small amount of boilerplate, while bringing in a proc-macro (and
syn) dependency.Moving the
CharSetTokenizerand related structs to a separate library, or at least an optional feature, and replacing thethiserrorusage with handwrittenDisplayandErrorimpls, could make this crate dependency-free, reducing compile time impacts.