Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove unnecessary dependencies #6
Conversation
|
If servo/dwrote-rs#21 should be merged, the number of dependencies falls to 31 (- 13 dependencies) if serde is disabled. The reason for this is that failure and serde pull in the whole
Before: 0m31,691s I hope you see why I'm after reducing dependencies as far as possible. |
|
@fschutt when you removed |
|
@ashkitten It's not incompatible with the try operator, the try operator has nothing to do with The error implements Debug + Display, so you can easily wrap it in your own error type and implement |
|
alright then. i do think it's ridiculous to ask someone to wrap your errors in their own type just to be able to use them, feels like going back to the error-chain days with a 200 line enum to wrap all possible errors of every crate you use |
Well, that's the proper way to do errors though, |
|
@fschutt i've had time to think more about this and consult others and i think it's ridiculous to not implement |
|
@ashkitten Well, if you do feel strongly about this then fine, make a PR and implement it. I'm just saying that it's duplicated code since Display is more flexible in terms of formatting and The thing I'd oppose to, however, is to use an external library such as failure to implement |
fschutt commentedSep 24, 2018
arrayvecisn't used at all, it's just a baggage dependencyfailureis only used for implementingDisplayand for saving 20 lines, you import all of these dependencies:If that's worth it... well, I don't know. You decide.
dwrote-rscurrently depends on serde (which should be optional, aspathfinderdoesn't use any serde features, so it's just a baggage dependency). A future PR should remove that dependency, too (serde is pretty large).This PR brings the dependency count from 44 to 38, removing 6 dependencies with no features removed or API changed.