Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify output directory #44

Closed
nyarly opened this issue Nov 11, 2017 · 7 comments
Closed

Specify output directory #44

nyarly opened this issue Nov 11, 2017 · 7 comments

Comments

@nyarly
Copy link

nyarly commented Nov 11, 2017

I'm using NixOS, so the natural way to get and update my rust source directory involves installing it to a read-only filesystem. It'd be keen, therefore, to be able to tell rusty-tags to write its tag file, as opposed to into the root of the rustlib source.

I could probably produce a PR for this, if that'd help.

@dan-t
Copy link
Owner

dan-t commented Nov 12, 2017 via email

@nyarly
Copy link
Author

nyarly commented Nov 12, 2017 via email

@dan-t
Copy link
Owner

dan-t commented Nov 12, 2017

That's a very special use case.

If you want tags only for the Rust source code you can just the ctags specification contained in the Rust source:

ctags -f tags --options=/path/to/rust/src/etc/ctags.rust --recurse /path/to/rust/src

@dan-t
Copy link
Owner

dan-t commented Nov 12, 2017

Are you aware, if you're using rustup for getting the rust sources - like described in the README - then automatically the right tags for the currently used Rust version are created?

@nyarly
Copy link
Author

nyarly commented Nov 13, 2017

Ultimately, I'd like to be using Nix to manage my Rust dev environment, though, so relying on rustup is a non-starter.

@dan-t
Copy link
Owner

dan-t commented Nov 13, 2017

If you can't put the tags file at the root of the sources, then you won't have a development environment where you can easily switch compiler versions without having to reconfigure your vim settings.

Nix certainly has nice properties, but I can't see its advantage in this particular use case.

@dan-t dan-t closed this as completed Nov 13, 2017
@nyarly
Copy link
Author

nyarly commented Nov 13, 2017

There's some work to integrate most-current Rust into the Nix tree, at while point I'm pulling for a generated ctags file to be added as well - either to the sources themselves or in a separate package. Once that's done, nix-shell will be usable to switch between Rust versions per-project.

But it sounds like a single ctags execution'll do the job. Thanks for the details there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants