• Home
  • Raw
  • Download

Lines Matching +full:rust +full:- +full:src

1 # rust-analyzer-chromiumos-wrapper
5 rust-analyzer is an LSP server for the Rust language. It allows editors like
6 vim, emacs, or VS Code to provide IDE-like features for Rust.
8 This program, `rust-analyzer-chromiumos-wrapper`, is a wrapper around
9 `rust-analyzer`. It exists to translate paths between an instance of
10 rust-analyzer running inside the chromiumos chroot and a client running outside
13 It is of course possible to simply run `rust-analyzer` outside the chroot, but
17 subdirectory of either `chromiumos/src` or `chromiumos/chroot`, it will attempt
18 to invoke `rust-analyzer` inside the chroot and translate paths. Otherwise, it
19 will attempt to invoke a `rust-analyzer` outside the chroot and will not
22 It supports none of rust-analyzer's command line options, which aren't
27 *Outside* the chroot, install the `rust-analyzer-chromiumos-wrapper` binary:
30 cargo install --path /path-to-a-chromiumos-checkout/src/third_party/toolchain-utils/rust-analyzer-c…
33 Make sure `~/.cargo/bin' is in your PATH, or move/symlink `~/.cargo/bin/rust-analyzer-chromiumos-wr…
35 Configure your editor to use the binary `rust-analyzer-chromiumos-wrapper` as
36 `rust-analyzer`. In Neovim, if you're using
37 [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig), this can be done by
42 cmd = {'rust-analyzer-chromiumos-wrapper'},
47 [Rust analyzer manual](https://rust-analyzer.github.io/manual.html) for
51 `rust-analyzer` inside each chroot where you want to edit code:
53 sudo emerge rust-analyzer
59 `--path-mappings` to translate paths. In principle a similar option could be
60 added to `rust-analyzer`, obviating the need for this wrapper. See this
61 [issue on github](https://github.com/rust-lang/rust-analyzer/issues/12485).