ICE-NET/docs/guides/commands.md
loki5512344 2e61688eb3
Some checks failed
rust-ci / checks (push) Has been cancelled
Initial import: ICE-NET research docs and Rust workspace (v0.4)
- Rust workspace: 7 library crates, icenetd CLI, icenet-city (Slint GUI)
- Sim: fix false Delivered after a route cut, derive traffic class from
  payload size, per-link airtime slots (link capacity, queueing)
- Docs: single docs/STATUS.md for all figures, remove v0.2/egui leftovers,
  drop unimplemented seed claims, uncheck store-and-forward
- License: LGPL-3.0-or-later (LICENSE, LICENSES/GPL-3.0.txt)
2026-11-13 12:28:48 +01:00

22 lines
1 KiB
Markdown

# Шпаргалка команд
```bash
cd workspace
python3 tools/check_layout.py # file <=250 lines, dir <=4 files
cargo metadata --no-deps
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo run -p icenet-city
cargo run -p icenetd -- help
cargo run -p icenetd -- route --from 1 --to 3 --class bulk --size 5000000
cargo run -p icenetd -- send --from 1 --to 3 --class text --ticks 1000
cargo run -p icenetd -- sim --csv metrics.csv --json scenario.json
cargo run -p icenetd -- policy --service 77777 --size 5 --allow 1
cargo run -p icenetd -- wire-encode --service 7 --class text --text hello
cargo run -p icenetd -- serve --bind 127.0.0.1:9000 --count 1 --timeout 5000
cargo run -p icenetd -- send-udp --to 127.0.0.1:9000 --service 7 --class text --text hello
```
Пакеты в `crates/*` — библиотеки, `apps/*` — исполняемые приложения.
Cargo workspace использует общий `Cargo.lock` (коммитится) и закреплённый toolchain.