rust

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
rust [2025/10/30 08:05] – [sccache - Shared Compilation Cache] ともやんrust [2025/10/30 09:30] (現在) – [rust-analyzer] ともやん
行 2113: 行 2113:
 ===== レシピ ===== ===== レシピ =====
  
-==== rust-analyzer ====+==== rust-analyzer を JupyterLabで使うための設定 ====
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 <font color="#0087FF"><b>$</b></font> <font color="#26A269">rustup</font> component add rust-analyzer <font color="#0087FF"><b>$</b></font> <font color="#26A269">rustup</font> component add rust-analyzer
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result><html><pre>< +<WRAP color_result><html><pre> 
-b>info: </b>downloading component &apos;rust-analyzer&apos;+<b>info: </b>downloading component &apos;rust-analyzer&apos;
 <b>info: </b>installing component &apos;rust-analyzer&apos; <b>info: </b>installing component &apos;rust-analyzer&apos;
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">mamba</font> a<font color="#999999">ctivate jupyterlab</font>
 +(jupyterlab) <font color="#0087FF"><b>$</b></font> <font color="#26A269">which</font> rust-analyzer
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +~/.local/bin/rust-analyzer
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +(jupyterlab) <font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> install evcxr_jupyter
 +(jupyterlab) <font color="#0087FF"><b>$</b></font> <font color="#26A269">evcxr_jupyter</font> <font color="#A347BA">--install</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/kernel.json
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/logo-32x32.png
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/logo-64x64.png
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/logo-LICENSE.md
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/kernel.js
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/lint.js
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/lint.css
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/lint-LICENSE
 +Writing /home/tomoyan/.local/share/jupyter/kernels/rust/version.txt
 +Installation complete
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +(jupyterlab) <font color="#0087FF"><b>$</b></font> <font color="#26A269">jupyter</font> <font color="#A347BA">--paths</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +config:
 +    /home/tomoyan/miniforge3/envs/jupyterlab/etc/jupyter
 +    /home/tomoyan/.jupyter
 +    /home/tomoyan/.local/etc/jupyter
 +    /usr/local/etc/jupyter
 +    /etc/jupyter
 +data:
 +    /home/tomoyan/miniforge3/envs/jupyterlab/share/jupyter
 +    /home/tomoyan/.local/share/jupyter
 +    /usr/local/share/jupyter
 +    /usr/share/jupyter
 +runtime:
 +    /home/tomoyan/.local/share/jupyter/runtime
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +(jupyterlab) <font color="#0087FF"><b>$</b></font> <font color="#26A269">mkdir</font> <font color="#A347BA">-p</font> <u style="text-decoration-style:solid">~/.jupyter/jupyter_server_config.d/</u>
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +(jupyterlab) <font color="#0087FF"><b>$</b></font> <font color="#26A269">nano</font> ~/.jupyter/jupyter_server_config.d/rust-lsp.json
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre class=Bat>
 +<font color="#839496">   1</font> <font color="#F8F8F2">{</font>
 +<font color="#839496">   2</font> <font color="#F8F8F2">  </font><font color="#FD971F">&quot;LanguageServerManager&quot;</font><font color="#F8F8F2">: {</font>
 +<font color="#839496">   3</font> <font color="#F8F8F2">    </font><font color="#FD971F">&quot;language_servers&quot;</font><font color="#F8F8F2">: {</font>
 +<font color="#839496">   4</font> <font color="#F8F8F2">      </font><font color="#FD971F">&quot;rust-analyzer&quot;</font><font color="#F8F8F2">: {</font>
 +<font color="#839496">   5</font> <font color="#F8F8F2">        </font><font color="#FD971F">&quot;version&quot;</font><font color="#F8F8F2">: </font><font color="#BE84FF">2</font><font color="#F8F8F2">,</font>
 +<font color="#839496">   6</font> <font color="#F8F8F2">        </font><font color="#FD971F">&quot;argv&quot;</font><font color="#F8F8F2">: [</font><font color="#E6DB74">&quot;/home/tomoyan/.local/bin/rust-analyzer&quot;</font><font color="#F8F8F2">, </font><font color="#E6DB74">&quot;--stdio&quot;</font><font color="#F8F8F2">],</font>
 +<font color="#839496">   7</font> <font color="#F8F8F2">        </font><font color="#FD971F">&quot;languages&quot;</font><font color="#F8F8F2">: [</font><font color="#E6DB74">&quot;rust&quot;</font><font color="#F8F8F2">],</font>
 +<font color="#839496">   8</font> <font color="#F8F8F2">        </font><font color="#FD971F">&quot;mime_types&quot;</font><font color="#F8F8F2">: [</font><font color="#E6DB74">&quot;text/x-rust&quot;</font><font color="#F8F8F2">],</font>
 +<font color="#839496">   9</font> <font color="#F8F8F2">        </font><font color="#FD971F">&quot;display_name&quot;</font><font color="#F8F8F2">: </font><font color="#E6DB74">&quot;Rust Analyzer&quot;</font>
 +<font color="#839496">  10</font> <font color="#F8F8F2">      }</font>
 +<font color="#839496">  11</font> <font color="#F8F8F2">    }</font>
 +<font color="#839496">  12</font> <font color="#F8F8F2">  }</font>
 +<font color="#839496">  13</font> <font color="#F8F8F2">}</font>
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  • rust.1761779143.txt.gz
  • 最終更新: 2025/10/30 08:05
  • by ともやん