Add package.include to Cargo.toml - #165
Conversation
|
Good catch, but I guess you can setup this at your application, not at lib level? |
Not sure what you mean, this is about crates.io releases. |
0a2b818 to
759dcc9
Compare
There was a problem hiding this comment.
One more question: how is README.md from the root of this repo getting into the android-activity subfolder? I don't see a symlink of sorts but it's in the packaged crate: https://docs.rs/crate/android-activity/latest/source/README.md
Its getting it from the |
733ad68 to
80e86d7
Compare
Ah, I didn't see that there's a
Yeah, that's correct. |
rib
left a comment
There was a problem hiding this comment.
Nice, this looks good to me too, thanks!
|
Since merging the update to GameActivity 4.0, I've tweaked this to include |
This reduces package size and notably prevents any bash files from landing on a users device.
See the Cargo documentation on
package.include.When using
cargo publishevery file is included and uploaded, even the shell files used to generate bindings not necessary during build time. Usingpackage.includewe can make sure that this doesn't happen and only what the user needs to compile the package or generate local documentation is included.