summaryrefslogtreecommitdiff
path: root/lib/bundler/templates/newgem/gitignore.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/gitignore.tt')
-rw-r--r--lib/bundler/templates/newgem/gitignore.tt3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/gitignore.tt b/lib/bundler/templates/newgem/gitignore.tt
index b1c9f9986c..9b40ba5a58 100644
--- a/lib/bundler/templates/newgem/gitignore.tt
+++ b/lib/bundler/templates/newgem/gitignore.tt
@@ -12,6 +12,9 @@
*.o
*.a
mkmf.log
+<%- if config[:ext] == 'rust' -%>
+target/
+<%- end -%>
<%- end -%>
<%- if config[:test] == "rspec" -%>