0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Rust試行錯誤

Posted at

RUSTのパッケージ管理ツール

cargoを使う。

# cargo install tokei

RUST一式のインストール

自前でビルドするとき。

# yum install -y gcc
# curl https://sh.rustup.rs -sSf | sh
# source $HOME/.cargo/env
# rustc --version

シングルバイナリ化させる

muslを使えばOK。
URL:https://github.com/emk/rust-musl-builder

tokeiをビルドするときはこんな感じ。

# git clone https://github.com/XAMPPRocky/tokei.git tokei
# cd tokei/
# alias rust-musl-builder='docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder'
# rust-musl-builder cargo build --release

参考URL

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?