|
| 1 | +# Contributing |
| 2 | + |
| 3 | +## Scope |
| 4 | + |
| 5 | +`nettui` is an `iwd`-first network TUI built primarily for `Omarchy`. |
| 6 | +Keep changes aligned with that scope: |
| 7 | + |
| 8 | +- prefer `iwd` over adding another Wi-Fi backend |
| 9 | +- keep the Wi-Fi flow close to `impala` |
| 10 | +- keep Ethernet support integrated, not bolted on |
| 11 | +- prefer small, reviewable changes |
| 12 | + |
| 13 | +## Development Setup |
| 14 | + |
| 15 | +Requirements: |
| 16 | + |
| 17 | +- Rust stable |
| 18 | +- `iwd` |
| 19 | +- `systemd-networkd` |
| 20 | +- `networkctl` |
| 21 | +- Nerd Fonts recommended for the full UI |
| 22 | + |
| 23 | +Clone and run: |
| 24 | + |
| 25 | +```bash |
| 26 | +git clone https://github.com/skibidiandulka/nettui.git |
| 27 | +cd nettui |
| 28 | +cargo run --release |
| 29 | +``` |
| 30 | + |
| 31 | +## Required Checks |
| 32 | + |
| 33 | +Run these before opening a pull request: |
| 34 | + |
| 35 | +```bash |
| 36 | +cargo fmt --all |
| 37 | +cargo test --locked |
| 38 | +cargo clippy --all-targets --all-features --locked -- -D warnings |
| 39 | +``` |
| 40 | + |
| 41 | +## Code Style |
| 42 | + |
| 43 | +- use `rustfmt`; do not hand-format around it |
| 44 | +- prefer explicit, descriptive names |
| 45 | +- keep modules small when a file starts mixing unrelated concerns |
| 46 | +- keep user-facing text short and plain |
| 47 | +- add comments only when they explain intent, not mechanics |
| 48 | +- do not introduce a second Wi-Fi manager backend |
| 49 | + |
| 50 | +## Repo Notes |
| 51 | + |
| 52 | +- `README.md`: user-facing overview and setup |
| 53 | +- `config/keybinds.toml.example`: default keybind reference |
| 54 | +- `scripts/build-release-asset.sh`: release archive layout check |
| 55 | +- `.github/workflows/rust.yml`: CI checks |
| 56 | + |
| 57 | +## Pull Requests |
| 58 | + |
| 59 | +A good pull request should include: |
| 60 | + |
| 61 | +- a short summary of the change |
| 62 | +- why the change is needed |
| 63 | +- how it was tested |
| 64 | +- screenshots or terminal output for visible UI changes when relevant |
| 65 | + |
| 66 | +## Releases |
| 67 | + |
| 68 | +Release work should keep these paths in sync: |
| 69 | + |
| 70 | +- `Cargo.toml` |
| 71 | +- `Cargo.lock` |
| 72 | +- Git tag and GitHub release |
| 73 | +- `crates.io` |
| 74 | +- AUR `nettui` |
| 75 | +- AUR `nettui-bin` |
| 76 | + |
| 77 | +Do not publish a release unless the GitHub release asset, `crates.io`, and AUR packages all match the same version. |
0 commit comments