tags for rust

I use tags to navigate source code in vim. Here is how I set things up for generating tags for rust.

If we take the advice from these two articles

https://crates.io/crates/run-ctags
https://doc.rust-lang.org/book/ch14-05-extending-cargo.html

we can do the following:

cargo install run-ctags
export PATH=$PATH:/home/adam/.cargo/bin/

Edit the file /home/adam/.cargo/bin/cargo-ctags


!/bin/sh
run-ctags | ctags-universal -R -L -

Then to generate the ctags file

cargo ctags
edit /home/adam/.cargo/bin/cargo-ctags

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.