Fix ignore with Rust & share
This makes .gitignore
work with my regular setup. In particular, it suppresses the Rust status code and ensures that detection of a Git repository works across shared repositories.
The CI infrastructure isn't currently able to test the Rust extensions, so I've tested it manually instead.