I noticed that encoding-rs is the largest download in my crate graph at 1.4MB. While relatively it's not a lot, this could reduced significantly, by just adding a include to the Cargo.toml and only including what is needed to build the crate with the licence and copyright. I'm not too familiar with the project structure so there might more needed but this seems like everything.
include = [
"COPYRIGHT",
"LICENSE-APACHE",
"LICENSE-MIT",
"build.rs",
"src/**/*",
]
I noticed that
encoding-rsis the largest download in my crate graph at 1.4MB. While relatively it's not a lot, this could reduced significantly, by just adding aincludeto theCargo.tomland only including what is needed to build the crate with the licence and copyright. I'm not too familiar with the project structure so there might more needed but this seems like everything.