@@ -49,10 +49,15 @@ are there for the build to succeed. This behavior can be disabled with the
49
49
` --no-verify ` flag.
50
50
51
51
Now’s a good time to take a look at the ` *.crate ` file to make sure you didn’t
52
- accidentally package up that 2GB video asset. There is currently a 10MB upload
53
- size limit on ` *.crate ` files. Cargo will automatically ignore files ignored by
54
- your version control system when packaging, but if you want to specify an extra
55
- set of files to ignore you can use the ` exclude ` key in the manifest:
52
+ accidentally package up that 2GB video asset, or large data files used for code
53
+ generation, integration tests, or benchmarking. There is currently a 10MB
54
+ upload size limit on ` *.crate ` files. So, if the size of ` tests ` and ` benches `
55
+ directories and their dependencies are up to a couple of MBs, you can keep them
56
+ in your package; otherwsie, better to exclude them.
57
+
58
+ Cargo will automatically ignore files ignored by your version control system
59
+ when packaging, but if you want to specify an extra set of files to ignore you
60
+ can use the ` exclude ` key in the manifest:
56
61
57
62
``` toml
58
63
[package ]
@@ -66,7 +71,7 @@ exclude = [
66
71
The syntax of each element in this array is what
67
72
[ rust-lang/glob] ( https://github.com/rust-lang/glob ) accepts. If you’d rather
68
73
roll with a whitelist instead of a blacklist, Cargo also supports an ` include `
69
- key:
74
+ key, which if set, overrides the ` exclude ` key :
70
75
71
76
``` toml
72
77
[package ]
0 commit comments