.github folder is definitely unnecessary for the dependents of the library.
examples folder might be helpful for some developers, but I don't think that many people inspect the sources downloaded from crates.io and viewing this folder will always be easy on GitHub.
tests folder is probably only used in a development environment and is not that helpful for the dependents.
Excluding these folders from the Cargo crate will reduce the network and disk space consumption and lead to more concise file structure for the crate.
.github
folder is definitely unnecessary for the dependents of the library.examples
folder might be helpful for some developers, but I don't think that many people inspect the sources downloaded from crates.io and viewing this folder will always be easy on GitHub.tests
folder is probably only used in a development environment and is not that helpful for the dependents.Excluding these folders from the Cargo crate will reduce the network and disk space consumption and lead to more concise file structure for the crate.