|
1 | | -# Created by https://www.toptal.com/developers/gitignore/api/jetbrains+all,linux,macos,python,vim,visualstudiocode,windows |
2 | | -# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains+all,linux,macos,python,vim,visualstudiocode,windows |
| 1 | +# Created by https://www.toptal.com/developers/gitignore/api/jetbrains+all,linux,macos,rust,vim,visualstudiocode,windows |
| 2 | +# Edit at https://www.toptal.com/developers/gitignore?templates=jetbrains+all,linux,macos,rust,vim,visualstudiocode,windows |
3 | 3 |
|
4 | 4 | ### JetBrains+all ### |
5 | 5 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider |
@@ -137,177 +137,21 @@ Temporary Items |
137 | 137 | # iCloud generated files |
138 | 138 | *.icloud |
139 | 139 |
|
140 | | -### Python ### |
141 | | -# Byte-compiled / optimized / DLL files |
142 | | -__pycache__/ |
143 | | -*.py[cod] |
144 | | -*$py.class |
145 | | - |
146 | | -# C extensions |
147 | | -*.so |
148 | | - |
149 | | -# Distribution / packaging |
150 | | -.Python |
151 | | -build/ |
152 | | -develop-eggs/ |
153 | | -dist/ |
154 | | -downloads/ |
155 | | -eggs/ |
156 | | -.eggs/ |
157 | | -lib/ |
158 | | -lib64/ |
159 | | -parts/ |
160 | | -sdist/ |
161 | | -var/ |
162 | | -wheels/ |
163 | | -share/python-wheels/ |
164 | | -*.egg-info/ |
165 | | -.installed.cfg |
166 | | -*.egg |
167 | | -MANIFEST |
168 | | - |
169 | | -# PyInstaller |
170 | | -# Usually these files are written by a python script from a template |
171 | | -# before PyInstaller builds the exe, so as to inject date/other infos into it. |
172 | | -*.manifest |
173 | | -*.spec |
174 | | - |
175 | | -# Installer logs |
176 | | -pip-log.txt |
177 | | -pip-delete-this-directory.txt |
178 | | - |
179 | | -# Unit test / coverage reports |
180 | | -htmlcov/ |
181 | | -.tox/ |
182 | | -.nox/ |
183 | | -.coverage |
184 | | -.coverage.* |
185 | | -.cache |
186 | | -nosetests.xml |
187 | | -coverage.xml |
188 | | -*.cover |
189 | | -*.py,cover |
190 | | -.hypothesis/ |
191 | | -.pytest_cache/ |
192 | | -cover/ |
193 | | - |
194 | | -# Translations |
195 | | -*.mo |
196 | | -*.pot |
197 | | - |
198 | | -# Django stuff: |
199 | | -*.log |
200 | | -local_settings.py |
201 | | -db.sqlite3 |
202 | | -db.sqlite3-journal |
203 | | - |
204 | | -# Flask stuff: |
205 | | -instance/ |
206 | | -.webassets-cache |
207 | | - |
208 | | -# Scrapy stuff: |
209 | | -.scrapy |
210 | | - |
211 | | -# Sphinx documentation |
212 | | -docs/_build/ |
213 | | - |
214 | | -# PyBuilder |
215 | | -.pybuilder/ |
| 140 | +### Rust ### |
| 141 | +# Generated by Cargo |
| 142 | +# will have compiled files and executables |
| 143 | +debug/ |
216 | 144 | target/ |
217 | 145 |
|
218 | | -# Jupyter Notebook |
219 | | -.ipynb_checkpoints |
220 | | - |
221 | | -# IPython |
222 | | -profile_default/ |
223 | | -ipython_config.py |
224 | | - |
225 | | -# pyenv |
226 | | -# For a library or package, you might want to ignore these files since the code is |
227 | | -# intended to run in multiple environments; otherwise, check them in: |
228 | | -# .python-version |
229 | | - |
230 | | -# pipenv |
231 | | -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. |
232 | | -# However, in case of collaboration, if having platform-specific dependencies or dependencies |
233 | | -# having no cross-platform support, pipenv may install dependencies that don't work, or not |
234 | | -# install all needed dependencies. |
235 | | -#Pipfile.lock |
236 | | - |
237 | | -# poetry |
238 | | -# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. |
239 | | -# This is especially recommended for binary packages to ensure reproducibility, and is more |
240 | | -# commonly ignored for libraries. |
241 | | -# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control |
242 | | -#poetry.lock |
243 | | - |
244 | | -# pdm |
245 | | -# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. |
246 | | -#pdm.lock |
247 | | -# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it |
248 | | -# in version control. |
249 | | -# https://pdm.fming.dev/#use-with-ide |
250 | | -.pdm.toml |
251 | | - |
252 | | -# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm |
253 | | -__pypackages__/ |
254 | | - |
255 | | -# Celery stuff |
256 | | -celerybeat-schedule |
257 | | -celerybeat.pid |
258 | | - |
259 | | -# SageMath parsed files |
260 | | -*.sage.py |
261 | | - |
262 | | -# Environments |
263 | | -.env |
264 | | -.venv |
265 | | -env/ |
266 | | -venv/ |
267 | | -ENV/ |
268 | | -env.bak/ |
269 | | -venv.bak/ |
270 | | - |
271 | | -# Spyder project settings |
272 | | -.spyderproject |
273 | | -.spyproject |
274 | | - |
275 | | -# Rope project settings |
276 | | -.ropeproject |
277 | | - |
278 | | -# mkdocs documentation |
279 | | -/site |
280 | | - |
281 | | -# mypy |
282 | | -.mypy_cache/ |
283 | | -.dmypy.json |
284 | | -dmypy.json |
285 | | - |
286 | | -# Pyre type checker |
287 | | -.pyre/ |
288 | | - |
289 | | -# pytype static type analyzer |
290 | | -.pytype/ |
291 | | - |
292 | | -# Cython debug symbols |
293 | | -cython_debug/ |
294 | | - |
295 | | -# PyCharm |
296 | | -# JetBrains specific template is maintained in a separate JetBrains.gitignore that can |
297 | | -# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore |
298 | | -# and can be added to the global gitignore or merged into this file. For a more nuclear |
299 | | -# option (not recommended) you can uncomment the following to ignore the entire idea folder. |
300 | | -#.idea/ |
301 | | - |
302 | | -### Python Patch ### |
303 | | -# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration |
304 | | -poetry.toml |
305 | | - |
306 | | -# ruff |
307 | | -.ruff_cache/ |
308 | | - |
309 | | -# LSP config files |
310 | | -pyrightconfig.json |
| 146 | +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries |
| 147 | +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html |
| 148 | +Cargo.lock |
| 149 | + |
| 150 | +# These are backup files generated by rustfmt |
| 151 | +**/*.rs.bk |
| 152 | + |
| 153 | +# MSVC Windows builds of rustc generate these, which store debugging information |
| 154 | +*.pdb |
311 | 155 |
|
312 | 156 | ### Vim ### |
313 | 157 | # Swap |
@@ -374,4 +218,6 @@ $RECYCLE.BIN/ |
374 | 218 | # Windows shortcuts |
375 | 219 | *.lnk |
376 | 220 |
|
377 | | -# End of https://www.toptal.com/developers/gitignore/api/jetbrains+all,linux,macos,python,vim,visualstudiocode,windows |
| 221 | +# End of https://www.toptal.com/developers/gitignore/api/jetbrains+all,linux,macos,rust,vim,visualstudiocode,windows |
| 222 | + |
| 223 | +!Cargo.lock |
0 commit comments