| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
| rust [2025/04/15 05:29] – [テンプレートエンジン] ともやん | rust [2025/10/30 09:30] (現在) – [rust-analyzer] ともやん |
|---|
| </WRAP> | </WRAP> |
| <WRAP v-align_mid youtube #logo_video><html> | <WRAP v-align_mid youtube #logo_video><html> |
| <iframe width="480" height="270" src="https://www.youtube.com/embed/cE0wfjsybIQ?si=oxcD4G2AkahAtvHk?mute=1&autoplay=1&modestbranding=1&controls=1&rel=0&loop=1&enablejsapi=1" | <iframe width="480" height="270" src="https://www.youtube.com/embed/cE0wfjsybIQ?si=oxcD4G2AkahAtvHk?mute=1&autoplay=0&modestbranding=1&controls=1&rel=0&loop=1&enablejsapi=1" |
| title="YouTube video player" frameborder="0" | title="YouTube video player" frameborder="0" |
| allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" |
| -rwxr-xr-x 12 dietpi dietpi 13974212 Jun 8 08:49 <b class=GRN>rustup</b> | -rwxr-xr-x 12 dietpi dietpi 13974212 Jun 8 08:49 <b class=GRN>rustup</b> |
| -rwxr-xr-x 1 dietpi dietpi 17775060 Jun 16 19:34 <b class=GRN>sccache</b> | -rwxr-xr-x 1 dietpi dietpi 17775060 Jun 16 19:34 <b class=GRN>sccache</b> |
| | </pre></html></WRAP> |
| | </WRAP> |
| | |
| | **ビルド時に** <html><font color="#F66151"><b>error</b></font><b>: linker `cc` not found</b></html> **が発生する場合🤔**\\ |
| | 参考: [[so>questions/52445961/how-do-i-fix-the-rust-error-linker-cc-not-found-for-debian-on-windows-10|linux - How do I fix the Rust error "linker 'cc' not found" for Debian on Windows 10? - Stack Overflow]]\\ |
| | |
| | build-essential パッケージをインストールする😉\\ |
| | <WRAP color_term> |
| | <WRAP color_command><html><pre> |
| | <font color="#AFFF00"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">apt</font> update |
| | </pre></html></WRAP> |
| | <WRAP color_result><html><pre> |
| | 取得:1 http://raspbian.raspberrypi.com/raspbian bookworm InRelease [15.0 kB] |
| | ヒット:2 https://dietpi.com/apt bookworm InRelease |
| | ヒット:3 https://dietpi.com/apt all InRelease |
| | ヒット:4 https://archive.raspberrypi.com/debian bookworm InRelease |
| | 取得:5 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf Packages [14.5 MB] |
| | 14.5 MB を 2分 28秒 で取得しました (98.4 kB/s) |
| | パッケージリストを読み込んでいます... 完了 |
| | 依存関係ツリーを作成しています... 完了 |
| | 状態情報を読み取っています... 完了 |
| | パッケージはすべて最新です。 |
| | </pre></html></WRAP> |
| | <WRAP color_command><html><pre> |
| | <font color="#AFFF00"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">apt</font> install build-essential |
| | </pre></html></WRAP> |
| | <WRAP color_result_hlong><html><pre> |
| | パッケージリストを読み込んでいます... 完了 |
| | 依存関係ツリーを作成しています... 完了 |
| | 状態情報を読み取っています... 完了 |
| | 以下の追加パッケージがインストールされます: |
| | binutils binutils-arm-linux-gnueabihf binutils-common bzip2 cpp cpp-12 dpkg-dev g++ g++-12 gcc gcc-12 libasan8 |
| | libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl libgcc-12-dev libgomp1 |
| | libisl23 libjansson4 libmpc3 libmpfr6 libnsl-dev libstdc++-12-dev libtirpc-dev libubsan1 linux-libc-dev make patch |
| | rpcsvc-proto xz-utils |
| | 提案パッケージ: |
| | binutils-doc bzip2-doc cpp-doc gcc-12-locales cpp-12-doc debian-keyring gcc-12-doc gcc-multilib manpages-dev |
| | autoconf automake libtool flex bison gdb gcc-doc glibc-doc bzr libstdc++-12-doc make-doc ed diffutils-doc |
| | 推奨パッケージ: |
| | fakeroot libalgorithm-merge-perl manpages manpages-dev libc-devtools libfile-fcntllock-perl |
| | 以下のパッケージが新たにインストールされます: |
| | binutils binutils-arm-linux-gnueabihf binutils-common build-essential bzip2 cpp cpp-12 dpkg-dev g++ g++-12 gcc |
| | gcc-12 libasan8 libbinutils libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libdpkg-perl |
| | libgcc-12-dev libgomp1 libisl23 libjansson4 libmpc3 libmpfr6 libnsl-dev libstdc++-12-dev libtirpc-dev libubsan1 |
| | linux-libc-dev make patch rpcsvc-proto xz-utils |
| | アップグレード: 0 個、新規インストール: 36 個、削除: 0 個、保留: 0 個。 |
| | 49.0 MB のアーカイブを取得する必要があります。 |
| | この操作後に追加で 189 MB のディスク容量が消費されます。 |
| | 続行しますか? [Y/n] y |
| | 取得:1 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf bzip2 armhf 1.0.8-5+b2 [47.4 kB] |
| | 取得:3 https://archive.raspberrypi.com/debian bookworm/main armhf libc-dev-bin armhf 2.36-9+rpt2+deb12u10 [49.0 kB] |
| | 取得:2 http://mirror.ossplanet.net/raspbian/raspbian bookworm/main armhf xz-utils armhf 5.4.1-1 [467 kB] |
| | 取得:4 https://archive.raspberrypi.com/debian bookworm/main armhf linux-libc-dev all 1:6.12.25-1+rpt1 [2,314 kB] |
| | 取得:6 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libbinutils armhf 2.40-2+rpi2 [406 kB] |
| | 取得:5 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf binutils-common armhf 2.40-2+rpi2 [2,470 kB] |
| | 取得:7 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libctf-nobfd0 armhf 2.40-2+rpi2 [133 kB] |
| | 取得:8 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libctf0 armhf 2.40-2+rpi2 [71.5 kB] |
| | 取得:10 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf binutils-arm-linux-gnueabihf armhf 2.40-2+rpi2 [2,052 kB] |
| | 取得:12 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf libcrypt-dev armhf 1:4.4.33-2 [121 kB] |
| | 取得:14 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf libnsl-dev armhf 1.3.0-2 [58.9 kB] |
| | 取得:27 https://archive.raspberrypi.com/debian bookworm/main armhf libc6-dev armhf 2.36-9+rpt2+deb12u10 [1,831 kB] |
| | 取得:15 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf rpcsvc-proto armhf 1.4.3-1 [55.1 kB] |
| | 取得:17 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf libmpfr6 armhf 4.2.0-1 [574 kB] |
| | 取得:18 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf libmpc3 armhf 1.3.1-1 [41.0 kB] |
| | 取得:31 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf g++ armhf 4:12.2.0-3+rpi1 [1,344 B] |
| | 取得:32 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf make armhf 4.3-4.1 [376 kB] |
| | 取得:34 http://ftp.udx.icscoe.jp/Linux/raspbian/raspbian bookworm/main armhf build-essential armhf 12.9 [7,704 B] |
| | 取得:19 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf cpp-12 armhf 12.2.0-14+rpi1+deb12u1 [7,159 kB] |
| | 取得:35 https://archive.raspberrypi.com/debian bookworm/main armhf libdpkg-perl all 1.22.6~bpo12+rpt3 [656 kB] |
| | 取得:36 https://archive.raspberrypi.com/debian bookworm/main armhf dpkg-dev all 1.22.6~bpo12+rpt3 [1,393 kB] |
| | 無視:5 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf binutils-common armhf 2.40-2+rpi2 |
| | 取得:9 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bookworm/main armhf libjansson4 armhf 2.14-2 [37.0 kB] |
| | 取得:11 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf binutils armhf 2.40-2+rpi2 [65.4 kB] |
| | 取得:13 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libtirpc-dev armhf 1.3.3+ds-1 [174 kB] |
| | 取得:16 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bookworm/main armhf libisl23 armhf 0.25-1.1 [517 kB] |
| | 取得:20 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf cpp armhf 4:12.2.0-3+rpi1 [7,048 B] |
| | 取得:28 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf gcc armhf 4:12.2.0-3+rpi1 [5,216 B] |
| | 取得:33 http://ftp.jaist.ac.jp/pub/Linux/raspbian-archive/raspbian bookworm/main armhf patch armhf 2.7.6-7 [116 kB] |
| | 取得:5 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf binutils-common armhf 2.40-2+rpi2 [2,470 kB] |
| | 取得:21 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libcc1-0 armhf 12.2.0-14+rpi1+deb12u1 [32.1 kB] |
| | 取得:22 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libgomp1 armhf 12.2.0-14+rpi1+deb12u1 [95.3 kB] |
| | 取得:23 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libasan8 armhf 12.2.0-14+rpi1+deb12u1 [2,090 kB] |
| | 取得:24 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libubsan1 armhf 12.2.0-14+rpi1+deb12u1 [861 kB] |
| | 取得:25 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libgcc-12-dev armhf 12.2.0-14+rpi1+deb12u1 [724 kB] |
| | 取得:26 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf gcc-12 armhf 12.2.0-14+rpi1+deb12u1 [14.1 MB] |
| | 取得:29 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf libstdc++-12-dev armhf 12.2.0-14+rpi1+deb12u1 [2,026 kB] |
| | 取得:30 http://raspbian.raspberrypi.com/raspbian bookworm/main armhf g++-12 armhf 12.2.0-14+rpi1+deb12u1 [7,912 kB] |
| | 48.5 MB を 6分 58秒 で取得しました (116 kB/s) |
| | debconf: delaying package configuration, since apt-utils is not installed |
| | 以前に未選択のパッケージ bzip2 を選択しています。 |
| | (データベースを読み込んでいます ... 現在 22396 個のファイルとディレクトリがインストールされています。) |
| | .../00-bzip2_1.0.8-5+b2_armhf.deb を展開する準備をしています ... |
| | bzip2 (1.0.8-5+b2) を展開しています... |
| | 以前に未選択のパッケージ xz-utils を選択しています。 |
| | .../01-xz-utils_5.4.1-1_armhf.deb を展開する準備をしています ... |
| | xz-utils (5.4.1-1) を展開しています... |
| | 以前に未選択のパッケージ binutils-common:armhf を選択しています。 |
| | .../02-binutils-common_2.40-2+rpi2_armhf.deb を展開する準備をしています ... |
| | binutils-common:armhf (2.40-2+rpi2) を展開しています... |
| | 以前に未選択のパッケージ libbinutils:armhf を選択しています。 |
| | .../03-libbinutils_2.40-2+rpi2_armhf.deb を展開する準備をしています ... |
| | libbinutils:armhf (2.40-2+rpi2) を展開しています... |
| | 以前に未選択のパッケージ libctf-nobfd0:armhf を選択しています。 |
| | .../04-libctf-nobfd0_2.40-2+rpi2_armhf.deb を展開する準備をしています ... |
| | libctf-nobfd0:armhf (2.40-2+rpi2) を展開しています... |
| | 以前に未選択のパッケージ libctf0:armhf を選択しています。 |
| | .../05-libctf0_2.40-2+rpi2_armhf.deb を展開する準備をしています ... |
| | libctf0:armhf (2.40-2+rpi2) を展開しています... |
| | 以前に未選択のパッケージ libjansson4:armhf を選択しています。 |
| | .../06-libjansson4_2.14-2_armhf.deb を展開する準備をしています ... |
| | libjansson4:armhf (2.14-2) を展開しています... |
| | 以前に未選択のパッケージ binutils-arm-linux-gnueabihf を選択しています。 |
| | .../07-binutils-arm-linux-gnueabihf_2.40-2+rpi2_armhf.deb を展開する準備をしています ... |
| | binutils-arm-linux-gnueabihf (2.40-2+rpi2) を展開しています... |
| | 以前に未選択のパッケージ binutils を選択しています。 |
| | .../08-binutils_2.40-2+rpi2_armhf.deb を展開する準備をしています ... |
| | binutils (2.40-2+rpi2) を展開しています... |
| | 以前に未選択のパッケージ libc-dev-bin を選択しています。 |
| | .../09-libc-dev-bin_2.36-9+rpt2+deb12u10_armhf.deb を展開する準備をしています ... |
| | libc-dev-bin (2.36-9+rpt2+deb12u10) を展開しています... |
| | 以前に未選択のパッケージ linux-libc-dev を選択しています。 |
| | .../10-linux-libc-dev_1%3a6.12.25-1+rpt1_all.deb を展開する準備をしています ... |
| | linux-libc-dev (1:6.12.25-1+rpt1) を展開しています... |
| | 以前に未選択のパッケージ libcrypt-dev:armhf を選択しています。 |
| | .../11-libcrypt-dev_1%3a4.4.33-2_armhf.deb を展開する準備をしています ... |
| | libcrypt-dev:armhf (1:4.4.33-2) を展開しています... |
| | 以前に未選択のパッケージ libtirpc-dev:armhf を選択しています。 |
| | .../12-libtirpc-dev_1.3.3+ds-1_armhf.deb を展開する準備をしています ... |
| | libtirpc-dev:armhf (1.3.3+ds-1) を展開しています... |
| | 以前に未選択のパッケージ libnsl-dev:armhf を選択しています。 |
| | .../13-libnsl-dev_1.3.0-2_armhf.deb を展開する準備をしています ... |
| | libnsl-dev:armhf (1.3.0-2) を展開しています... |
| | 以前に未選択のパッケージ rpcsvc-proto を選択しています。 |
| | .../14-rpcsvc-proto_1.4.3-1_armhf.deb を展開する準備をしています ... |
| | rpcsvc-proto (1.4.3-1) を展開しています... |
| | 以前に未選択のパッケージ libc6-dev:armhf を選択しています。 |
| | .../15-libc6-dev_2.36-9+rpt2+deb12u10_armhf.deb を展開する準備をしています ... |
| | libc6-dev:armhf (2.36-9+rpt2+deb12u10) を展開しています... |
| | 以前に未選択のパッケージ libisl23:armhf を選択しています。 |
| | .../16-libisl23_0.25-1.1_armhf.deb を展開する準備をしています ... |
| | libisl23:armhf (0.25-1.1) を展開しています... |
| | 以前に未選択のパッケージ libmpfr6:armhf を選択しています。 |
| | .../17-libmpfr6_4.2.0-1_armhf.deb を展開する準備をしています ... |
| | libmpfr6:armhf (4.2.0-1) を展開しています... |
| | 以前に未選択のパッケージ libmpc3:armhf を選択しています。 |
| | .../18-libmpc3_1.3.1-1_armhf.deb を展開する準備をしています ... |
| | libmpc3:armhf (1.3.1-1) を展開しています... |
| | 以前に未選択のパッケージ cpp-12 を選択しています。 |
| | .../19-cpp-12_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | cpp-12 (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ cpp を選択しています。 |
| | .../20-cpp_4%3a12.2.0-3+rpi1_armhf.deb を展開する準備をしています ... |
| | cpp (4:12.2.0-3+rpi1) を展開しています... |
| | 以前に未選択のパッケージ libcc1-0:armhf を選択しています。 |
| | .../21-libcc1-0_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | libcc1-0:armhf (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ libgomp1:armhf を選択しています。 |
| | .../22-libgomp1_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | libgomp1:armhf (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ libasan8:armhf を選択しています。 |
| | .../23-libasan8_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | libasan8:armhf (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ libubsan1:armhf を選択しています。 |
| | .../24-libubsan1_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | libubsan1:armhf (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ libgcc-12-dev:armhf を選択しています。 |
| | .../25-libgcc-12-dev_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | libgcc-12-dev:armhf (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ gcc-12 を選択しています。 |
| | .../26-gcc-12_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | gcc-12 (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ gcc を選択しています。 |
| | .../27-gcc_4%3a12.2.0-3+rpi1_armhf.deb を展開する準備をしています ... |
| | gcc (4:12.2.0-3+rpi1) を展開しています... |
| | 以前に未選択のパッケージ libstdc++-12-dev:armhf を選択しています。 |
| | .../28-libstdc++-12-dev_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | libstdc++-12-dev:armhf (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ g++-12 を選択しています。 |
| | .../29-g++-12_12.2.0-14+rpi1+deb12u1_armhf.deb を展開する準備をしています ... |
| | g++-12 (12.2.0-14+rpi1+deb12u1) を展開しています... |
| | 以前に未選択のパッケージ g++ を選択しています。 |
| | .../30-g++_4%3a12.2.0-3+rpi1_armhf.deb を展開する準備をしています ... |
| | g++ (4:12.2.0-3+rpi1) を展開しています... |
| | 以前に未選択のパッケージ make を選択しています。 |
| | .../31-make_4.3-4.1_armhf.deb を展開する準備をしています ... |
| | make (4.3-4.1) を展開しています... |
| | 以前に未選択のパッケージ libdpkg-perl を選択しています。 |
| | .../32-libdpkg-perl_1.22.6~bpo12+rpt3_all.deb を展開する準備をしています ... |
| | libdpkg-perl (1.22.6~bpo12+rpt3) を展開しています... |
| | 以前に未選択のパッケージ patch を選択しています。 |
| | .../33-patch_2.7.6-7_armhf.deb を展開する準備をしています ... |
| | patch (2.7.6-7) を展開しています... |
| | 以前に未選択のパッケージ dpkg-dev を選択しています。 |
| | .../34-dpkg-dev_1.22.6~bpo12+rpt3_all.deb を展開する準備をしています ... |
| | dpkg-dev (1.22.6~bpo12+rpt3) を展開しています... |
| | 以前に未選択のパッケージ build-essential を選択しています。 |
| | .../35-build-essential_12.9_armhf.deb を展開する準備をしています ... |
| | build-essential (12.9) を展開しています... |
| | binutils-common:armhf (2.40-2+rpi2) を設定しています ... |
| | linux-libc-dev (1:6.12.25-1+rpt1) を設定しています ... |
| | libctf-nobfd0:armhf (2.40-2+rpi2) を設定しています ... |
| | libgomp1:armhf (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | bzip2 (1.0.8-5+b2) を設定しています ... |
| | libjansson4:armhf (2.14-2) を設定しています ... |
| | libtirpc-dev:armhf (1.3.3+ds-1) を設定しています ... |
| | rpcsvc-proto (1.4.3-1) を設定しています ... |
| | make (4.3-4.1) を設定しています ... |
| | libmpfr6:armhf (4.2.0-1) を設定しています ... |
| | xz-utils (5.4.1-1) を設定しています ... |
| | update-alternatives: /usr/bin/lzma (lzma) を提供するために自動モードで /usr/bin/xz を使います |
| | libmpc3:armhf (1.3.1-1) を設定しています ... |
| | patch (2.7.6-7) を設定しています ... |
| | libdpkg-perl (1.22.6~bpo12+rpt3) を設定しています ... |
| | libubsan1:armhf (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | libnsl-dev:armhf (1.3.0-2) を設定しています ... |
| | libcrypt-dev:armhf (1:4.4.33-2) を設定しています ... |
| | libasan8:armhf (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | libbinutils:armhf (2.40-2+rpi2) を設定しています ... |
| | libisl23:armhf (0.25-1.1) を設定しています ... |
| | libc-dev-bin (2.36-9+rpt2+deb12u10) を設定しています ... |
| | libcc1-0:armhf (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | libctf0:armhf (2.40-2+rpi2) を設定しています ... |
| | cpp-12 (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | libgcc-12-dev:armhf (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | cpp (4:12.2.0-3+rpi1) を設定しています ... |
| | libc6-dev:armhf (2.36-9+rpt2+deb12u10) を設定しています ... |
| | binutils-arm-linux-gnueabihf (2.40-2+rpi2) を設定しています ... |
| | libstdc++-12-dev:armhf (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | binutils (2.40-2+rpi2) を設定しています ... |
| | dpkg-dev (1.22.6~bpo12+rpt3) を設定しています ... |
| | gcc-12 (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | g++-12 (12.2.0-14+rpi1+deb12u1) を設定しています ... |
| | gcc (4:12.2.0-3+rpi1) を設定しています ... |
| | g++ (4:12.2.0-3+rpi1) を設定しています ... |
| | update-alternatives: /usr/bin/c++ (c++) を提供するために自動モードで /usr/bin/g++ を使います |
| | build-essential (12.9) を設定しています ... |
| | libc-bin (2.36-9+rpt2+deb12u10) のトリガを処理しています ... |
| </pre></html></WRAP> | </pre></html></WRAP> |
| </WRAP> | </WRAP> |
| [[rust:rust_on_esp_install|ESP32 Rust 開発環境のインストール]]\\ | [[rust:rust_on_esp_install|ESP32 Rust 開発環境のインストール]]\\ |
| [[rust:rust_on_rp_install|Raspberry Pi Pico 開発環境のインストール]]\\ | [[rust:rust_on_rp_install|Raspberry Pi Pico 開発環境のインストール]]\\ |
| | [[rust:rust_on_microbit|BBC micro:bit (MicroRust) 開発環境のインストール]]\\ |
| ===== はるおわ〜るどする😆 ===== | ===== はるおわ〜るどする😆 ===== |
| 参考: [[https://doc.rust-jp.rs/book-ja/ch01-02-hello-world.html|Hello, World! - The Rust Programming Language 日本語版]]\\ | 参考: [[https://doc.rust-jp.rs/book-ja/ch01-02-hello-world.html|Hello, World! - The Rust Programming Language 日本語版]]\\ |
| | [[https://docs.rs/ratatui|ratatui - Rust]]\\ [[git>ratatui-org/ratatui|ratatui]] | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> add ratatui</pre></html></WRAP> <WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">git</font> clone <font color="#A347BA">--depth</font> 1 https://github.com/ratatui-org/ratatui.git</pre></html></WRAP></WRAP> | ratatui-org/ratatui: Rust library that's all about cooking up terminal user interfaces (TUIs) 👨🍳🐀 | | | [[https://docs.rs/ratatui|ratatui - Rust]]\\ [[git>ratatui-org/ratatui|ratatui]] | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> add ratatui</pre></html></WRAP> <WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">git</font> clone <font color="#A347BA">--depth</font> 1 https://github.com/ratatui-org/ratatui.git</pre></html></WRAP></WRAP> | ratatui-org/ratatui: Rust library that's all about cooking up terminal user interfaces (TUIs) 👨🍳🐀 | |
| | [[https://docs.rs/crossterm|crossterm - Rust]]\\ [[git>crossterm-rs/crossterm|crossterm]] | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> add crossterm</pre></html></WRAP> <WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">git</font> clone <font color="#A347BA">--depth</font> 1 https://github.com/crossterm-rs/crossterm.git</pre></html></WRAP></WRAP> | crossterm-rs/crossterm: Cross platform terminal library rust | | | [[https://docs.rs/crossterm|crossterm - Rust]]\\ [[git>crossterm-rs/crossterm|crossterm]] | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> add crossterm</pre></html></WRAP> <WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">git</font> clone <font color="#A347BA">--depth</font> 1 https://github.com/crossterm-rs/crossterm.git</pre></html></WRAP></WRAP> | crossterm-rs/crossterm: Cross platform terminal library rust | |
| | | [[https://docs.rs/vlc-rs|vlc-rs - Rust]]\\ [[https://code.videolan.org/videolan/vlc-rs|VideoLAN / vlc-rs · GitLab]] | <WRAP color_term><WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">cargo</font> add vlc-rs</pre></html></WRAP> <WRAP color_command><html><pre><font color="#0087FF"><b>$</b></font> <font color="#26A269">git</font> clone <font color="#A347BA">--depth</font> 1 https://code.videolan.org/videolan/vlc-rs.git</pre></html></WRAP></WRAP> | Rust bindings for libVLC media framework | |
| </WRAP> | </WRAP> |
| |
| |
| ===== レシピ ===== | ===== レシピ ===== |
| | |
| | ==== rust-analyzer を JupyterLabで使うための設定 ==== |
| | <WRAP color_term> |
| | <WRAP color_command><html><pre> |
| | <font color="#0087FF"><b>$</b></font> <font color="#26A269">rustup</font> component add rust-analyzer |
| | </pre></html></WRAP> |
| | <WRAP color_result><html><pre> |
| | <b>info: </b>downloading component 'rust-analyzer' |
| | <b>info: </b>installing component 'rust-analyzer' |
| | </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">"LanguageServerManager"</font><font color="#F8F8F2">: {</font> |
| | <font color="#839496"> 3</font> <font color="#F8F8F2"> </font><font color="#FD971F">"language_servers"</font><font color="#F8F8F2">: {</font> |
| | <font color="#839496"> 4</font> <font color="#F8F8F2"> </font><font color="#FD971F">"rust-analyzer"</font><font color="#F8F8F2">: {</font> |
| | <font color="#839496"> 5</font> <font color="#F8F8F2"> </font><font color="#FD971F">"version"</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">"argv"</font><font color="#F8F8F2">: [</font><font color="#E6DB74">"/home/tomoyan/.local/bin/rust-analyzer"</font><font color="#F8F8F2">, </font><font color="#E6DB74">"--stdio"</font><font color="#F8F8F2">],</font> |
| | <font color="#839496"> 7</font> <font color="#F8F8F2"> </font><font color="#FD971F">"languages"</font><font color="#F8F8F2">: [</font><font color="#E6DB74">"rust"</font><font color="#F8F8F2">],</font> |
| | <font color="#839496"> 8</font> <font color="#F8F8F2"> </font><font color="#FD971F">"mime_types"</font><font color="#F8F8F2">: [</font><font color="#E6DB74">"text/x-rust"</font><font color="#F8F8F2">],</font> |
| | <font color="#839496"> 9</font> <font color="#F8F8F2"> </font><font color="#FD971F">"display_name"</font><font color="#F8F8F2">: </font><font color="#E6DB74">"Rust Analyzer"</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> |
| | </WRAP> |
| |
| ==== sccache - Shared Compilation Cache ==== | ==== sccache - Shared Compilation Cache ==== |
| | [[https://docs.rs/axum/|axum - Rust]] | Tokio エコシステムのモジュラー Web フレームワーク | | | [[https://docs.rs/axum/|axum - Rust]] | Tokio エコシステムのモジュラー Web フレームワーク | |
| | [[https://bevyengine.org/|Bevy Engine]] | WASM にコンパイルされるデータ駆動型ゲーム エンジン | | | [[https://bevyengine.org/|Bevy Engine]] | WASM にコンパイルされるデータ駆動型ゲーム エンジン | |
| | [[https://loco.rs/|Loco | Loco]] | バッテリー付属の Axum に基づく Web フレームワーク | | | [[https://loco.rs/|Loco | Loco]] | バッテリー付属の Axum に基づく Web フレームワーク、Rails-likeフルスタック| |
| | [[https://docs.rs/poem/|poem - Rust]] | フル機能を備えた使いやすい Web フレームワーク | | | [[https://docs.rs/poem/|poem - Rust]] | フル機能を備えた使いやすい Web フレームワーク | |
| | [[https://docs.rs/poise/|poise - Rust]] | 優れたスラッシュコマンドサポートを備えた Discord Bot フレームワーク | | | [[https://docs.rs/poise/|poise - Rust]] | 優れたスラッシュコマンドサポートを備えた Discord Bot フレームワーク | |
| [[https://rspack.dev/|Rspack - The fast Rust-based web bundler]]\\ | [[https://rspack.dev/|Rspack - The fast Rust-based web bundler]]\\ |
| [[https://rsbuild.dev/|Rsbuild - Rspack based build tool]]\\ | [[https://rsbuild.dev/|Rsbuild - Rspack based build tool]]\\ |
| | 🦀 Rstack ecosystem\\ |
| | Rspack: A fast Rust-based web bundler.\\ |
| | Rspress: A fast static site generator based on Rsbuild.\\ |
| | Rsdoctor: A one-stop build analyzer for Rspack and webpack.\\ |
| | Rslib: The library development tool powered by Rsbuild.\\ |
| | Modern.js: A progressive React framework based on Rsbuild.\\ |
| | awesome-rspack: A curated list of awesome things related to Rspack and Rsbuild.\\ |
| | rstack-examples: Examples showcasing Rstack tools (Rspack, Rsbuild, Rspress, Rsdoctor).\\ |
| | storybook-rsbuild: Storybook builder powered by Rsbuild.\\ |
| | rsbuild-plugin-template: Use this template to create your own Rsbuild plugin.\\ |
| | rstack-design-resources: Design resources for Rspack, Rsbuild, Rspress and Rsdoctor.\\ |
| |
| === テンプレートエンジン === | === テンプレートエンジン === |
| [[https://users.rust-lang.org/t/rust-official-ide/103656|Rust official IDE - community - The Rust Programming Language Forum]]\\ | [[https://users.rust-lang.org/t/rust-official-ide/103656|Rust official IDE - community - The Rust Programming Language Forum]]\\ |
| [[https://rapidrehita.health.nz/blog/extending-django-with-rust/|Rapid Rēhita | Extending Django with Rust]]\\ | [[https://rapidrehita.health.nz/blog/extending-django-with-rust/|Rapid Rēhita | Extending Django with Rust]]\\ |
| | [[dt>billy1624/the-question-mark-operator-in-rust-25n1|The Question Mark `?` Operator in Rust - DEV Community]] [[gtr>https://dev.to/billy1624/the-question-mark-operator-in-rust-25n1|翻訳]]\\ |
| |
| ==== 付録 ==== | ==== 付録 ==== |