Closed swarnimarun closed 3 years ago
Some suggestions,
I have tried to keep the dependencies to a minimum, and also tried to choose those with the smallest amount of dependencies themselves. But it's surprising the list is so large.
os_info
and locate_locale
).sha
dependencies into a single one.random
and flate2
.crc32
for inferring the definition IDs, which some lack.Of course, the top-level library depends on lower-level libraries.
We can definitely dump openssl
in favour of rustls
, but I could not find the AES-IGE mode in their docs, which is why I just went with openssl
.
Some work in this area:
After https://github.com/DarkEld3r/os_info/pull/144 is merged we will cut down on a few extra lines.
I've been putting some time into trimming down the dependency tree (https://github.com/Lonami/grammers/commit/67f09912e1b8735e5a2202b5c17c8be6097240dd, https://github.com/Lonami/grammers/commit/09f6b522699bb1e09c6ab2818738159625d8c44b, https://github.com/Lonami/grammers/commit/83c7157c7a33e7b69dcd178356f5f7a38ba3cc48) and documenting why each of the dependencies we use is needed (https://github.com/Lonami/grammers/commit/9e4a17c8bfb8e43a47bc1180a6ab6b4881320574).
I'm happy with the current state of the tree, so I'll close this issue, but if anyone wants to replace a dependency with a lighter one or to merge similar dependencies into a common one, I'll be more than welcome to review a pull request. (You may also send a pull request to the repositories of said dependencies and help every crate using them, like I did with os_info
!)
I will just be showing off the dependencies of the tree of grammers crate, Assuming it represents a max result of the entire dependency tree...
PS: tool used to generate the tree cargo-tree
What this shows us? Well clearly the grammers-client is the one which holds the entire list of dependencies at this point. A total count of 105.