-
Notifications
You must be signed in to change notification settings - Fork 65
Add package.include to Cargo.toml
#165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.