Repository: rust-lang/rust-enhanced (language: rust)

Issue:
No need to package `tests` folder in Sublime package
### Sublime Text Version
Version 3.2.1, Build 3207

### Rust Enhanced Version
v2.19.0

### Operating system
All

### Expected behavior
There is no need to package `tests` folder in Sublime package.

**Benefit**: Reduce package's size.

### Actual behavior
```bash
% unzip -l Rust\ Enhanced.sublime-package |rg '\s+tests'
    21826  2019-05-16 19:27   tests/test_cargo_build.py
      540  2019-05-16 19:27   tests/README.md
     8696  2019-05-16 19:27   tests/test_interrupt.py
     2376  2019-05-16 19:27   tests/test_click_handler.py
     2468  2019-05-16 19:27   tests/test_phantom_style.py
     2062  2019-05-16 19:27   tests/test_cargo_settings.py
     3323  2019-05-16 19:27   tests/test_target_detect.py
...
```



Discussion / hints:
Also, we might not need `docs` folder
I don't know if that's possible (I can't find a way).  If someone knows of a way to exclude folders, feel free to submit a PR!
I wonder how do you release this package? Just zip it or third-party 
will do it.

Just tag it. packagecontrol.io takes care of packaging/distribution.
Okay. I think packagecontrol.io get this package from GitHub release tag's zip files.
So ignoring unneeded files/directories from the git archive could be the solution. 
In that case, I opened #384 to do that.

Fix patch:
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000..bb29b4a6
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,22 @@
+# Used to remove files from deployment using `git archive`
+# and from GitHub release compressed files.
+
+# git files
+.gitattributes export-ignore
+.gitignore export-ignore
+
+# Ignored folders
+.github export-ignore
+docs export-ignore
+tests export-ignore
+
+# CI files
+.travis.yml export-ignore
+appveyor.yml export-ignore
+bors.toml export-ignore
+
+# general text files
+.editorConfig export-ignore
+README.md export-ignore
+syntax_test_cargo.txt export-ignore
+unittesting.json export-ignore


Test patch: