ICE-NET/docs/guides/quickstart.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

57 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Arch Linux: быстрый запуск разработчика
## Установить инструменты
```bash
sudo pacman -S --needed rustup python git pkgconf clang
rustup default stable
rustup component add rustfmt clippy
```
Для GUI могут потребоваться системные библиотеки графического backend (X11/Wayland,
mesa, fontconfig и т.п.); точные пакеты зависят от Arch, X11/Wayland и версии Slint.
## Запуск
```bash
cd workspace
python3 tools/check_layout.py
cargo test -p icenet-routing -p icenet-sim
cargo run -p icenet-city
```
В окне: выбрать From/To, отправить `Text`/`Photo`, менять состояние линков,
шагать по времени. Это моделирование, не сетевое соединение.
## Отдельная библиотека
```bash
cargo test -p icenet-routing --test routing
cargo test -p icenet-sim --test city
cargo doc --workspace --no-deps
```
`icenetd` — headless CLI для проверки ядра без GUI и без сети:
```bash
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 /tmp/metrics.csv --json /tmp/scenario.json
```
Реальная UDP-передача между двумя процессами (локальный loopback, без crypto):
```bash
# терминал 1
cargo run -p icenetd -- serve --bind 127.0.0.1:9000 --count 1 --timeout 5000
# терминал 2
cargo run -p icenetd -- send-udp --to 127.0.0.1:9000 --service 7 --class text --text hello
```
Это незащищённый черновой кадр: без криптографии, аутентификации и защиты от replay на уровне сети.
## Примечание по версиям
`Slint 1.18.1` требует Rust >=1.92; toolchain закреплён в `rust-toolchain.toml` (версия — в [STATUS](../STATUS.md)).
Для ускоренной сборки не запускай `--workspace`, если сейчас тестируешь только
алгоритмы. Для релиза нужны полноценные CI-проверки всех crates и GUI.