flipperzero-template
A template for starting a flipperzero-rs project for the Flipper Zero๐ฌ
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- config.toml
- main.rs
- rustacean-10x10.icon
- rustacean-10x10.png
- .gitignore
- cargo-generate.toml
- Cargo.toml
- README.md
- rust-toolchain.toml
# ์ค์น ๊ฐ์ด๋
git clone https://github.com/flipperzero-rs/flipperzero-template
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd flipperzero-template
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. ๊ณต์ ์ค์น ์คํฌ๋ฆฝํธ
์ฌ์ ์ถ์ฒ- Rust (rustup) cargo ๋ช ๋ น์ด๋ฅผ ์ฐ๋ ค๋ฉด Rust๊ฐ ํ์ํฉ๋๋ค.
cargo install cargo-generate
crates.io์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ๋น๋ํด์ ์ค์นํฉ๋๋ค. ๋ ํฌ๋ฅผ ์ง์ ํด๋ก ํ ํ์๊ฐ ์์ต๋๋ค.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
3. Rust
๋ณดํต- Git GitHub์์ ํ๋ก์ ํธ ์ฝ๋๋ฅผ ๋ด๋ ค๋ฐ์ผ๋ ค๋ฉด ํ์ํฉ๋๋ค.
- Rust (rustup) rustup์ผ๋ก ์ค์นํ๋ฉด cargo๋ ํจ๊ป ์ค์น๋ฉ๋๋ค.
cargo install cargo-generate
crates.io์ ๋ฐฐํฌ๋ ํจํค์ง๋ฅผ ๋น๋ํด์ ์ค์นํฉ๋๋ค. ๋ ํฌ๋ฅผ ์ง์ ํด๋ก ํ ํ์๊ฐ ์์ต๋๋ค.
cargo generate --git https://github.com/flipperzero-rs/flipperzero-template.git --name my-project
์ด ๋ช ๋ น์ด๋ฅผ ํฐ๋ฏธ๋์ ๊ทธ๋๋ก ์ ๋ ฅํด ์คํํ์ธ์.
cargo build
Rust ํ๋ก์ ํธ๋ฅผ ์ปดํ์ผํฉ๋๋ค.
cargo watch -s 'cargo build --release && run-fap target/thumbv7em-none-eabihf/release/my-project.fap'
Rust ํ๋ก์ ํธ๋ฅผ ์ปดํ์ผํฉ๋๋ค.
์ด ๋ ํฌ์ README์ ์ ํ ์ค์ ๋ช ๋ น์ด๋ฅผ ๊ทธ๋๋ก ๊ฐ์ ธ์์ต๋๋ค.
