Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
222802cf13
|
||
|
|
394acaee6e
|
||
|
|
943f2615f3
|
||
|
|
ae284d571a
|
||
|
|
ca26368136
|
||
|
|
6bae65c464
|
No files matched your search
@@ -13,13 +13,10 @@ jobs:
|
|||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Clone donglora (sibling dependency)
|
- name: Install system dependencies
|
||||||
uses: actions/checkout@v4
|
run: sudo apt-get update && sudo apt-get install -y libudev-dev
|
||||||
with:
|
|
||||||
repository: swaits/donglora
|
|
||||||
path: ../donglora
|
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@master
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
## [0.3.0] - 2026-04-07
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Upgraded to `donglora-client` 0.2: all connections now auto-validate via
|
||||||
|
ping-on-connect, rejecting non-DongLoRa serial devices within 200ms.
|
||||||
|
- Simplified connection logic — removed manual mux/serial fallback and manual
|
||||||
|
ping; `donglora_client::connect()` handles the full fallback chain and
|
||||||
|
validation internally.
|
||||||
|
- Config negotiation detects mux vs serial via transport type instead of
|
||||||
|
string comparison.
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Repository and homepage URLs now point to `github.com/donglora/bridge`
|
||||||
|
(was `swaits/donglora-bridge`).
|
||||||
|
- README links updated to `donglora` GitHub org.
|
||||||
|
|
||||||
|
## [0.2.2] - 2026-04-06
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- TUI now fits in 80-column terminals (was 86).
|
||||||
|
|
||||||
|
## [0.2.1] - 2026-04-06
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- CI: removed stale sibling-clone step, added `libudev-dev` dependency,
|
||||||
|
upgraded `actions/checkout` to v5 (Node.js 24).
|
||||||
|
|
||||||
|
## [0.2.0] - 2026-04-06
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Auto-detect connection mode: when no `port` is configured, the bridge now
|
||||||
|
tries the mux daemon first and falls back to direct USB serial
|
||||||
|
(`find_port()`) if the mux is unavailable. Previously it would retry the mux
|
||||||
|
forever.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Config negotiation on direct serial connections now pushes `SetConfig` with
|
||||||
|
the desired radio config when it differs from the dongle's current config.
|
||||||
|
On mux connections, the existing behavior (accept the mux's config) is
|
||||||
|
unchanged.
|
||||||
|
|
||||||
|
## [0.1.0] - 2026-04-06
|
||||||
|
|
||||||
|
Initial release.
|
||||||
Generated
+4
-2
@@ -906,7 +906,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "donglora-bridge"
|
name = "donglora-bridge"
|
||||||
version = "0.1.0"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"blake3",
|
"blake3",
|
||||||
@@ -938,7 +938,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "donglora-client"
|
name = "donglora-client"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1936935d31ab56a8cd70ceecfd6d447f2628a73a123e1cfe37ee4987eab0fa70"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"serialport",
|
"serialport",
|
||||||
|
|||||||
+4
-4
@@ -1,12 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "donglora-bridge"
|
name = "donglora-bridge"
|
||||||
version = "0.1.0"
|
version = "0.3.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Stephen Waits <steve@waits.net>"]
|
authors = ["Stephen Waits <steve@waits.net>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "Peer-to-peer LoRa bridge using iroh and DongLoRa"
|
description = "Peer-to-peer LoRa bridge using iroh and DongLoRa"
|
||||||
repository = "https://github.com/swaits/donglora-bridge"
|
repository = "https://github.com/donglora/bridge"
|
||||||
homepage = "https://github.com/swaits/donglora-bridge"
|
homepage = "https://github.com/donglora/bridge"
|
||||||
keywords = ["lora", "bridge", "gossip", "p2p", "iot"]
|
keywords = ["lora", "bridge", "gossip", "p2p", "iot"]
|
||||||
categories = ["network-programming", "command-line-utilities"]
|
categories = ["network-programming", "command-line-utilities"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -14,7 +14,7 @@ rust-version = "1.94.1"
|
|||||||
exclude = [".jj/", ".github/"]
|
exclude = [".jj/", ".github/"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
donglora-client = { path = "../donglora/clients/rust" }
|
donglora-client = "0.2"
|
||||||
iroh = "0.97"
|
iroh = "0.97"
|
||||||
iroh-gossip = "0.97"
|
iroh-gossip = "0.97"
|
||||||
mainline = { version = "6", features = ["async"] }
|
mainline = { version = "6", features = ["async"] }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# donglora-bridge
|
# donglora-bridge
|
||||||
|
|
||||||
[](https://github.com/swaits/donglora-bridge/actions/workflows/ci.yml)
|
[](https://github.com/donglora/bridge/actions/workflows/ci.yml)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||

|

|
||||||
|
|
||||||
@@ -25,12 +25,12 @@ through an encrypted peer-to-peer gossip swarm.
|
|||||||
|
|
||||||
### 1. A DongLoRa radio
|
### 1. A DongLoRa radio
|
||||||
|
|
||||||
[DongLoRa](https://github.com/swaits/donglora) is open-source firmware that
|
[DongLoRa](https://github.com/donglora/firmware) is open-source firmware that
|
||||||
turns a supported LoRa development board (such as a Heltec WiFi LoRa 32 or
|
turns a supported LoRa development board (such as a Heltec WiFi LoRa 32 or
|
||||||
similar ESP32+SX1262 board) into a USB LoRa dongle. You will need to:
|
similar ESP32+SX1262 board) into a USB LoRa dongle. You will need to:
|
||||||
|
|
||||||
1. **Get a board** -- any ESP32 board with an SX1262 LoRa radio that DongLoRa
|
1. **Get a board** -- any ESP32 board with an SX1262 LoRa radio that DongLoRa
|
||||||
supports. See the [DongLoRa README](https://github.com/swaits/donglora) for
|
supports. See the [DongLoRa README](https://github.com/donglora/firmware) for
|
||||||
the full list.
|
the full list.
|
||||||
2. **Flash the DongLoRa firmware** onto the board. Instructions are in the
|
2. **Flash the DongLoRa firmware** onto the board. Instructions are in the
|
||||||
DongLoRa repository.
|
DongLoRa repository.
|
||||||
@@ -39,16 +39,17 @@ similar ESP32+SX1262 board) into a USB LoRa dongle. You will need to:
|
|||||||
|
|
||||||
### 2. (Optional) donglora-mux
|
### 2. (Optional) donglora-mux
|
||||||
|
|
||||||
If you want multiple programs to share a single DongLoRa radio at the same time,
|
The bridge works fine without the mux -- it connects directly to the USB device.
|
||||||
install the multiplexer daemon:
|
The mux is only needed if you want multiple programs to share a single DongLoRa
|
||||||
|
radio at the same time (e.g. running two bridges with different configs, or a
|
||||||
|
bridge alongside another donglora-client program).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo install donglora-mux
|
cargo install donglora-mux
|
||||||
```
|
```
|
||||||
|
|
||||||
Run `donglora-mux` before starting the bridge. The bridge will auto-detect and
|
Run `donglora-mux` before starting the bridge. The bridge auto-detects the mux
|
||||||
connect to the mux. Without the mux, the bridge talks to the USB device
|
when it's running and falls back to direct USB serial when it's not.
|
||||||
directly, which means only one program can use the radio at a time.
|
|
||||||
|
|
||||||
### 3. donglora-bridge (this project)
|
### 3. donglora-bridge (this project)
|
||||||
|
|
||||||
@@ -67,7 +68,7 @@ mise use -g cargo:donglora-bridge
|
|||||||
Or build from source:
|
Or build from source:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/swaits/donglora-bridge.git
|
git clone https://github.com/donglora/bridge.git
|
||||||
cd donglora-bridge
|
cd donglora-bridge
|
||||||
cargo build --release
|
cargo build --release
|
||||||
```
|
```
|
||||||
@@ -112,6 +113,22 @@ donglora-bridge --config path.toml # custom config file
|
|||||||
donglora-bridge config # re-run setup wizard
|
donglora-bridge config # re-run setup wizard
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Running multiple bridges
|
||||||
|
|
||||||
|
To run more than one bridge on the same machine (e.g. bridging two separate
|
||||||
|
MeshCore networks), create a config file per bridge and run each with
|
||||||
|
`--config`:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
donglora-bridge --config ~/bridge-network-a.toml
|
||||||
|
donglora-bridge --config ~/bridge-network-b.toml
|
||||||
|
```
|
||||||
|
|
||||||
|
Each config can specify a different passphrase, different radio settings, and
|
||||||
|
(if using the mux) share the same radio. Without the mux, each bridge needs its
|
||||||
|
own USB dongle and an explicit `port` in its config to avoid both trying to open
|
||||||
|
the same device.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **Gossip swarm** -- broadcast packets via [iroh-gossip](https://github.com/n0-computer/iroh), a QUIC-based overlay network
|
- **Gossip swarm** -- broadcast packets via [iroh-gossip](https://github.com/n0-computer/iroh), a QUIC-based overlay network
|
||||||
@@ -142,7 +159,7 @@ Default location: `~/.config/donglora-bridge/config.toml`
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[radio]
|
[radio]
|
||||||
# port = "/dev/ttyACM0" # serial port (omit for auto-detect via mux)
|
# port = "/dev/ttyACM0" # serial port (omit for auto-detect: tries mux, then USB)
|
||||||
frequency = 910525000 # Hz (default: 910.525 MHz)
|
frequency = 910525000 # Hz (default: 910.525 MHz)
|
||||||
bandwidth = "62.5kHz" # 7.8kHz, 10.4kHz, 15.6kHz, 20.8kHz, 31.25kHz,
|
bandwidth = "62.5kHz" # 7.8kHz, 10.4kHz, 15.6kHz, 20.8kHz, 31.25kHz,
|
||||||
# 41.7kHz, 62.5kHz, 125kHz, 250kHz, 500kHz
|
# 41.7kHz, 62.5kHz, 125kHz, 250kHz, 500kHz
|
||||||
|
|||||||
@@ -36,6 +36,4 @@ wildcards = "warn"
|
|||||||
[sources]
|
[sources]
|
||||||
unknown-registry = "deny"
|
unknown-registry = "deny"
|
||||||
unknown-git = "warn"
|
unknown-git = "warn"
|
||||||
allow-git = [
|
allow-git = []
|
||||||
"https://github.com/swaits/donglora",
|
|
||||||
]
|
|
||||||
@@ -1,60 +1,69 @@
|
|||||||
# Default: run all checks
|
set shell := ["bash", "-c"]
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
# Run all checks (fmt, clippy, test)
|
[private]
|
||||||
|
_ensure_tools:
|
||||||
|
@mise trust --yes . 2>/dev/null; mise install --quiet
|
||||||
|
|
||||||
|
# Run the bridge (TUI mode)
|
||||||
|
run *args: _ensure_tools
|
||||||
|
cargo run --release -- {{args}}
|
||||||
|
|
||||||
|
# Run in headless mode
|
||||||
|
run-headless *args: _ensure_tools
|
||||||
|
cargo run --release -- --log-only {{args}}
|
||||||
|
|
||||||
|
# Run the config wizard
|
||||||
|
config: _ensure_tools
|
||||||
|
cargo run --release -- config
|
||||||
|
|
||||||
|
# Run all checks (fmt, clippy, test, audit)
|
||||||
check: fmt-check clippy test audit
|
check: fmt-check clippy test audit
|
||||||
|
|
||||||
# Format code
|
# Format code
|
||||||
fmt:
|
fmt: _ensure_tools
|
||||||
cargo fmt
|
cargo fmt
|
||||||
|
|
||||||
# Check formatting without changing files
|
# Check formatting without changing files
|
||||||
fmt-check:
|
fmt-check: _ensure_tools
|
||||||
cargo fmt --check
|
cargo fmt --check
|
||||||
|
|
||||||
# Lint with clippy (pedantic + nursery)
|
# Lint with clippy
|
||||||
clippy:
|
clippy: _ensure_tools
|
||||||
cargo clippy --all-targets -- -D warnings
|
cargo clippy --all-targets -- -D warnings
|
||||||
|
|
||||||
# Build release binary
|
|
||||||
build:
|
|
||||||
cargo build --release
|
|
||||||
|
|
||||||
# Generate docs
|
|
||||||
doc:
|
|
||||||
cargo doc --no-deps --open
|
|
||||||
|
|
||||||
# Run the bridge (TUI mode)
|
|
||||||
run *ARGS:
|
|
||||||
cargo run --release -- {{ARGS}}
|
|
||||||
|
|
||||||
# Run in headless mode
|
|
||||||
run-headless *ARGS:
|
|
||||||
cargo run --release -- --log-only {{ARGS}}
|
|
||||||
|
|
||||||
# Run the config wizard
|
|
||||||
config:
|
|
||||||
cargo run --release -- config
|
|
||||||
|
|
||||||
# Security + license audit
|
|
||||||
audit:
|
|
||||||
cargo deny check
|
|
||||||
|
|
||||||
# Run all tests
|
# Run all tests
|
||||||
test: test-unit test-fuzz test-mutants
|
test: test-unit
|
||||||
|
|
||||||
# Normal unit tests
|
# Normal unit tests
|
||||||
test-unit:
|
test-unit: _ensure_tools
|
||||||
cargo nextest run
|
cargo nextest run
|
||||||
|
|
||||||
# Mutation testing
|
# Mutation testing
|
||||||
test-mutants *ARGS:
|
test-mutants *args: _ensure_tools
|
||||||
cargo mutants {{ARGS}}
|
cargo mutants {{args}}
|
||||||
|
|
||||||
# Fuzz a target (requires nightly)
|
# Fuzz a target (requires nightly)
|
||||||
test-fuzz TARGET="fuzz_gossip_frame_decode" DURATION="60":
|
test-fuzz TARGET="fuzz_gossip_frame_decode" DURATION="60": _ensure_tools
|
||||||
cargo +nightly fuzz run {{TARGET}} -- -max_total_time={{DURATION}}
|
cargo +nightly fuzz run {{TARGET}} -- -max_total_time={{DURATION}}
|
||||||
|
|
||||||
|
# Security + license audit
|
||||||
|
audit: _ensure_tools
|
||||||
|
cargo deny check
|
||||||
|
|
||||||
|
# Build release binary
|
||||||
|
build: _ensure_tools
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
# Generate docs
|
||||||
|
doc: _ensure_tools
|
||||||
|
cargo doc --no-deps --open
|
||||||
|
|
||||||
|
# Check for outdated dependencies
|
||||||
|
outdated: _ensure_tools
|
||||||
|
cargo outdated
|
||||||
|
|
||||||
# Clean build artifacts
|
# Clean build artifacts
|
||||||
clean:
|
clean:
|
||||||
cargo clean
|
cargo clean
|
||||||
+21
-31
@@ -6,7 +6,7 @@
|
|||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
use donglora_client::{RadioConfig, Response, Transport};
|
use donglora_client::{AnyTransport, RadioConfig, Response, Transport};
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use tracing::{debug, error, info, warn};
|
use tracing::{debug, error, info, warn};
|
||||||
|
|
||||||
@@ -93,26 +93,13 @@ fn connect_and_run(
|
|||||||
let timeout = Duration::from_secs(10);
|
let timeout = Duration::from_secs(10);
|
||||||
|
|
||||||
info!("connecting to dongle...");
|
info!("connecting to dongle...");
|
||||||
let (mut client, device) = if let Some(port) = port {
|
let mut client = donglora_client::connect(port, timeout)?;
|
||||||
let c = donglora_client::connect(Some(port), timeout)?;
|
let is_mux = matches!(client.transport(), AnyTransport::Mux(_));
|
||||||
(c, shorten_path(port))
|
let device = if is_mux { "mux".to_string() } else { port.map_or_else(|| "usb".to_string(), shorten_path) };
|
||||||
} else {
|
info!("[radio] connected and validated: {device}");
|
||||||
let c = donglora_client::connect_mux_auto(timeout)?;
|
|
||||||
(c, "mux".to_string())
|
|
||||||
};
|
|
||||||
info!("[radio] transport connected: {device}");
|
|
||||||
|
|
||||||
info!("[radio] sending ping...");
|
|
||||||
match client.ping() {
|
|
||||||
Ok(()) => info!("[radio] ping OK"),
|
|
||||||
Err(e) => {
|
|
||||||
info!("[radio] ping FAILED: {e:#}");
|
|
||||||
return Err(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
info!("[radio] negotiating config...");
|
info!("[radio] negotiating config...");
|
||||||
let (active_config, config_source) = match negotiate_config(&mut client, config) {
|
let (active_config, config_source) = match negotiate_config(&mut client, config, is_mux) {
|
||||||
Ok(result) => {
|
Ok(result) => {
|
||||||
info!("[radio] config negotiated: source={:?}, config={}", result.1, format_radio_config(&result.0));
|
info!("[radio] config negotiated: source={:?}, config={}", result.1, format_radio_config(&result.0));
|
||||||
result
|
result
|
||||||
@@ -203,28 +190,31 @@ fn connect_and_run(
|
|||||||
/// Negotiate radio config with the dongle/mux.
|
/// Negotiate radio config with the dongle/mux.
|
||||||
///
|
///
|
||||||
/// Strategy:
|
/// Strategy:
|
||||||
/// 1. `GetConfig` first to read what's active (caches the result).
|
/// 1. `GetConfig` first to read what's active.
|
||||||
/// 2. If it matches our desired config, use it — no `SetConfig` needed.
|
/// 2. If it matches our desired config, use it — no `SetConfig` needed.
|
||||||
/// 3. If it differs, only try `SetConfig` if we haven't been rejected before.
|
/// 3. If it differs and we're on the mux, accept the mux's config.
|
||||||
/// 4. If `SetConfig` is rejected, set the flag IMMEDIATELY (before the mux can
|
/// 4. If it differs and we're on direct serial, `SetConfig` to push ours.
|
||||||
/// disconnect us and lose this state), then return the cached `GetConfig` result.
|
/// 5. If `GetConfig` fails, try `SetConfig` with our desired config.
|
||||||
///
|
|
||||||
/// On reconnect, the flag ensures we never retry `SetConfig`.
|
|
||||||
fn negotiate_config<T: Transport>(
|
fn negotiate_config<T: Transport>(
|
||||||
client: &mut donglora_client::Client<T>,
|
client: &mut donglora_client::Client<T>,
|
||||||
desired: &RadioConfig,
|
desired: &RadioConfig,
|
||||||
|
is_mux: bool,
|
||||||
) -> Result<(RadioConfig, ConfigSource)> {
|
) -> Result<(RadioConfig, ConfigSource)> {
|
||||||
info!("[negotiate] get_config...");
|
info!("[negotiate] get_config...");
|
||||||
match client.get_config() {
|
match client.get_config() {
|
||||||
Ok(cfg) => {
|
Ok(cfg) => {
|
||||||
let source = if configs_match(&cfg, desired) {
|
if configs_match(&cfg, desired) {
|
||||||
info!("[negotiate] get_config OK (matches desired): {}", format_radio_config(&cfg));
|
info!("[negotiate] get_config OK (matches desired): {}", format_radio_config(&cfg));
|
||||||
ConfigSource::Ours
|
Ok((cfg, ConfigSource::Ours))
|
||||||
|
} else if is_mux {
|
||||||
|
info!("[negotiate] get_config OK (mux config differs, accepting): {}", format_radio_config(&cfg));
|
||||||
|
Ok((cfg, ConfigSource::Mux))
|
||||||
} else {
|
} else {
|
||||||
info!("[negotiate] get_config OK (differs from desired): {}", format_radio_config(&cfg));
|
info!("[negotiate] get_config OK (serial config differs, setting ours)");
|
||||||
ConfigSource::Mux
|
client.set_config(*desired)?;
|
||||||
};
|
info!("[negotiate] set_config OK");
|
||||||
Ok((cfg, source))
|
Ok((*desired, ConfigSource::Ours))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
info!("[negotiate] get_config FAILED: {e:#}");
|
info!("[negotiate] get_config FAILED: {e:#}");
|
||||||
|
|||||||
+3
-3
@@ -245,8 +245,8 @@ fn draw_ui(
|
|||||||
series: &TimeSeries,
|
series: &TimeSeries,
|
||||||
) {
|
) {
|
||||||
// Minimum terminal size for the 3-column layout.
|
// Minimum terminal size for the 3-column layout.
|
||||||
if area.width < 86 || area.height < 12 {
|
if area.width < 80 || area.height < 12 {
|
||||||
let msg = format!("Terminal too small ({}x{}), need 86x12+", area.width, area.height);
|
let msg = format!("Terminal too small ({}x{}), need 80x12+", area.width, area.height);
|
||||||
frame.render_widget(
|
frame.render_widget(
|
||||||
Paragraph::new(msg).alignment(Alignment::Center).style(Style::default().fg(C_RATE_DROP)),
|
Paragraph::new(msg).alignment(Alignment::Center).style(Style::default().fg(C_RATE_DROP)),
|
||||||
area,
|
area,
|
||||||
@@ -266,7 +266,7 @@ fn draw_ui(
|
|||||||
// Packet log columns: Age=5 Hash=8 RF=4 Net=4 Size=6 RSSI=6 SNR=5 Act=5 = 43 + 2 border + 1 pad = 46
|
// Packet log columns: Age=5 Hash=8 RF=4 Net=4 Size=6 RSSI=6 SNR=5 Act=5 = 43 + 2 border + 1 pad = 46
|
||||||
let cols = Layout::default()
|
let cols = Layout::default()
|
||||||
.direction(Direction::Horizontal)
|
.direction(Direction::Horizontal)
|
||||||
.constraints([Constraint::Length(30), Constraint::Length(46), Constraint::Min(10)])
|
.constraints([Constraint::Length(30), Constraint::Length(46), Constraint::Min(4)])
|
||||||
.split(rows[1]);
|
.split(rows[1]);
|
||||||
|
|
||||||
// Left column: Network, Radio, Stats stacked.
|
// Left column: Network, Radio, Stats stacked.
|
||||||
|
|||||||
Reference in new issue
Block a user