728x90
반응형

- Cargo.toml 에 다음을 추가하고,
...
[profile.release]
strip = true # Automatically strip symbols from the bianry
opt-level = "s" # Optimize for size
lto = true # Enable link time optimization
codegen-units = 1 # Maximize size reduction optimizations
- release 모드로 컴파일 한다.
$ cargo build --release728x90
반응형
'Programming > Rust' 카테고리의 다른 글
| Rust 시작해보기 (rustup 설치) - mingw 버전 (1) | 2025.11.15 |
|---|---|
| Rust 에서 String에 대한 참조자 대신에 문자열 슬라이스를 매개변수로 하는 함수를 정의하는 것이 좋은 설계인 이유 (0) | 2025.11.14 |
| Rust: Auto-Reloading Development Server (개발서버 자동 리로딩) (0) | 2025.01.03 |
| 현 시점에서 Rust 언어를 배워야하는 이유 (0) | 2024.11.27 |
| Rust 시작해보기 (hello world 만들어보기) (0) | 2024.11.12 |