- ๋ฌ์คํธ ์ธ์ด ์๊ฐ
- ๋ฌ์คํธ ๊ฐ๋ฐ ํ๊ฒฝ ์ค์น
- ๋ฌ์คํธ ๊ธฐ๋ณธ ๋ฌธ๋ฒ
- ํจ์ํ ํ๋ก๊ทธ๋๋ฐ
- ํธ๋ ์ดํธ
- ์ ๋ค๋ฆญ๊ณผ ์๋ช
- ์ค๋งํธ ํฌ์ธํฐ
- ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ํ์ค ํธ๋ ์ดํธ
- Cargo ์ฌ์ฉ ๋ฐฉ๋ฒ
- ํ ์ด ํ๋ก์ ํธ - ์๋ฆฌ์ผ๋ฒํธ ์์ฑ๊ธฐ ํ๋ก์ ํธ
- ๊ฐ๋ฐํ - ์์ฑ์ค
- ์ฐ๋ ๋
- ๋น๋๊ธฐ ํ๋ก๊ทธ๋๋ฐ์ ๊ธฐ๋ณธ ๊ฐ๋
- ์ ๋ฐ์ดํธ 20250105: "๋ถ๋ก: Cargo ์ฌ์ฉ ๋ฐฉ๋ฒ" ์ฑํฐ๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
- ์ ๋ฐ์ดํธ 20250130: "๋ถ๋ก: ํ ์ด ํ๋ก์ ํธ - ์๋ฆฌ์ผ๋ฒํธ ์์ฑ๊ธฐ ํ๋ก์ ํธ" ์ฑํฐ๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
- ์ ๋ฐ์ดํธ 20250430: "์ค๋งํธ ํฌ์ธํฐ - ์ค๋งํธํ์ง ์์ Raw Pointer" ์ฑํฐ๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
- ์ ๋ฐ์ดํธ 20250503: "11. ์ฐ๋ ๋" ์ฑํฐ๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
- ์ ๋ฐ์ดํธ 20250506: "12. ๋น๋๊ธฐ ํ๋ก๊ทธ๋๋ฐ์ ๊ธฐ๋ณธ ๊ฐ๋ " ์ฑํฐ๋ฅผ ์ถ๊ฐํ์ต๋๋ค.
์ด๋ฏธ ํ๋ก๊ทธ๋๋ฐ์ ์กฐ๊ธ ํด๋ณด์ ๋ถ๋ค์ ๋์์ผ๋ก ํฉ๋๋ค. ํ๋ก๊ทธ๋๋ฐ์ ๊ธฐ๋ณธ์ ์ธ ๋ฌธ๋ฒ๋ค์ ์ฒ์๋ถํฐ ์ค๋ช ํ์ง ์์ต๋๋ค. for๋ฃจํ๊ฐ ๋ญ์ง if๊ฐ ๋ญ์ง ๋ฑ์ ์ค๋ช ํ์ง์๊ณ ๋ฐ๋ก Rust์์๋ ์ด๋ ๊ฒ ์ฌ์ฉํฉ๋๋ค๋ก ์ค๋ช ํฉ๋๋ค.
์ฒ์ ๊ธ์ ์จ๋ณด๋ ๊ฒ์ด๋ผ ๊ธ ์์ฒด๋ ๋ถ์กฑํ๊ณ ๊ธฐ์ ์ ์ธ ์ค๋ฅ๋ ์์ ๊ฒ์ ๋๋ค. Issue๋ Pull request๋ก ์๋ ค์ฃผ์๋ฉด, ์ต๋ํ ๋ณด์ํ๊ฒ ์ต๋๋ค.
Cargo.tomlํ์ผ์ ๊ฐ ์์ ์ ์คํ ํ์ผ์ ๋น๋ํ๋ ์ค์ ์ด ์์ต๋๋ค.
[[bin]]
name = "function_for"
path = "src/function_for/main.rs"
๋ค์๊ณผ ๊ฐ์ด cargo๋ฅผ ์ด์ฉํด์ ๋น๋ํ๊ณ ์คํํ ์ ์์ต๋๋ค.
gurugio@AL01945427:~/my-rust-book$ cargo build --bin function_for
Compiling my-rust-book v0.1.0 (/home/gurugio/my-rust-book)
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
gurugio@AL01945427:~/my-rust-book$ cargo run --bin function_for
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
Running `target/debug/function_for`
Hello, function_for!
3 - Fizz
5 - Buzz
6 - Fizz
9 - Fizz
10 - Buzz
texts ๋๋ ํ ๋ฆฌ์ ํ๋๋๋๋ก ์ฐ์ต๋ฌธ์ ๋ฅผ ์ถ๊ฐํ๊ณ ์์ต๋๋ค.
tests/functional_closure_nocapture.rs ํ์ผ์ ์๋ test_functional_closure_nocapture ์ฐ์ต๋ฌธ์ ์คํํ๊ธฐ
% cargo test --test functional_closure_nocapture
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
Running tests/functional_closure_nocapture.rs (target/debug/deps/functional_closure_nocapture-f131d74e44a09c8b)
running 1 test
test test_functional_closure_nocapture ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
์ด ์ฑ ์ ์ปจํ ์ธ ์ ์์ ์ฝ๋๋ ๋ค์ ๋ผ์ด์ ์ค๋ฅผ ๋ฐ๋ฆ ๋๋ค.
This project is distributed under the following licenses:
- The code samples and free-standing Cargo projects contained within this book are licensed under the terms of both the MIT License and the Apache License v2.0.
- The written prose contained within this book is licensed under the terms of the Creative Commons CC-BY-SA v4.0 license.
Copies of the licenses used by this project may also be found here:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
Contribution to this crate is organized under the terms of the Rust Code of Conduct, the maintainer of this crate, the Resources team, promises to intervene to uphold that code of conduct.