Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
829b6403b7 | ||
|
|
2d9b214ff4 | ||
|
|
80d2e7fd71 | ||
|
|
03e1311e90 | ||
|
|
a93f3ad9f6 | ||
|
|
b0407d6519 | ||
|
|
c484f2deb8 | ||
|
|
958a729880 | ||
|
|
8c6ed94850 | ||
|
|
d4ca9e7542 | ||
|
|
17bf4d546a | ||
|
|
fdc9219742 | ||
|
|
a9aa0ad736 | ||
|
|
a83987af19 | ||
|
|
3d6fd77d85 | ||
|
|
b438cbd6b4 | ||
|
|
25ccff3a37 | ||
|
|
6a79fb2c54 | ||
| ab4ad186e6 | |||
|
|
13abe1d42a | ||
|
|
5f152a750c | ||
|
|
4d0438a2cb | ||
|
|
bb0eb3189b | ||
|
|
b395df590e | ||
|
|
3fafc71cdd | ||
|
|
8fe8af2962 | ||
|
|
65e189c913 | ||
|
|
cb85dfa039 | ||
|
|
9600e49385 | ||
|
|
149246b000 | ||
|
|
f2349c9f15 |
14
.gitignore
vendored
14
.gitignore
vendored
@@ -1,3 +1,15 @@
|
|||||||
|
# Cargo build artifacts (all levels, including src/target/ from rust-analyzer)
|
||||||
/target
|
/target
|
||||||
*txt
|
src/target/
|
||||||
|
|
||||||
|
# rust-analyzer background check artifacts
|
||||||
|
**/.rust-analyzer/
|
||||||
|
**/rust-analyzer/
|
||||||
|
|
||||||
|
# Distribution binaries
|
||||||
|
/dist
|
||||||
|
|
||||||
|
# macOS metadata
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
*txt
|
||||||
|
|||||||
145
Cargo.lock
generated
145
Cargo.lock
generated
@@ -50,6 +50,12 @@ version = "0.22.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "base64ct"
|
||||||
|
version = "1.8.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "bit-set"
|
name = "bit-set"
|
||||||
version = "0.5.3"
|
version = "0.5.3"
|
||||||
@@ -149,6 +155,12 @@ dependencies = [
|
|||||||
"static_assertions",
|
"static_assertions",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "const-oid"
|
||||||
|
version = "0.9.6"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "convert_case"
|
name = "convert_case"
|
||||||
version = "0.10.0"
|
version = "0.10.0"
|
||||||
@@ -177,6 +189,7 @@ dependencies = [
|
|||||||
"crossterm_winapi",
|
"crossterm_winapi",
|
||||||
"derive_more",
|
"derive_more",
|
||||||
"document-features",
|
"document-features",
|
||||||
|
"filedescriptor",
|
||||||
"mio",
|
"mio",
|
||||||
"parking_lot",
|
"parking_lot",
|
||||||
"rustix",
|
"rustix",
|
||||||
@@ -214,6 +227,33 @@ dependencies = [
|
|||||||
"phf",
|
"phf",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "curve25519-dalek"
|
||||||
|
version = "4.1.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"cpufeatures",
|
||||||
|
"curve25519-dalek-derive",
|
||||||
|
"digest",
|
||||||
|
"fiat-crypto",
|
||||||
|
"rustc_version",
|
||||||
|
"subtle",
|
||||||
|
"zeroize",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "curve25519-dalek-derive"
|
||||||
|
version = "0.1.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote",
|
||||||
|
"syn 2.0.117",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "darling"
|
name = "darling"
|
||||||
version = "0.23.0"
|
version = "0.23.0"
|
||||||
@@ -254,6 +294,16 @@ version = "0.3.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "5729f5117e208430e437df2f4843f5e5952997175992d1414f94c57d61e270b4"
|
checksum = "5729f5117e208430e437df2f4843f5e5952997175992d1414f94c57d61e270b4"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "der"
|
||||||
|
version = "0.7.10"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
|
||||||
|
dependencies = [
|
||||||
|
"const-oid",
|
||||||
|
"zeroize",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "deranged"
|
name = "deranged"
|
||||||
version = "0.5.8"
|
version = "0.5.8"
|
||||||
@@ -336,6 +386,31 @@ dependencies = [
|
|||||||
"litrs",
|
"litrs",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ed25519"
|
||||||
|
version = "2.2.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
|
||||||
|
dependencies = [
|
||||||
|
"pkcs8",
|
||||||
|
"signature",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ed25519-dalek"
|
||||||
|
version = "2.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
|
||||||
|
dependencies = [
|
||||||
|
"curve25519-dalek",
|
||||||
|
"ed25519",
|
||||||
|
"rand_core 0.6.4",
|
||||||
|
"serde",
|
||||||
|
"sha2",
|
||||||
|
"subtle",
|
||||||
|
"zeroize",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "either"
|
name = "either"
|
||||||
version = "1.15.0"
|
version = "1.15.0"
|
||||||
@@ -377,6 +452,12 @@ dependencies = [
|
|||||||
"regex",
|
"regex",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fiat-crypto"
|
||||||
|
version = "0.2.9"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "filedescriptor"
|
name = "filedescriptor"
|
||||||
version = "0.8.3"
|
version = "0.8.3"
|
||||||
@@ -1123,13 +1204,16 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ostiary"
|
name = "ostiary"
|
||||||
version = "1.0.0"
|
version = "1.1.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
"base64",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
"dirs",
|
"dirs",
|
||||||
|
"ed25519-dalek",
|
||||||
"futures",
|
"futures",
|
||||||
"libc",
|
"libc",
|
||||||
|
"rand 0.8.5",
|
||||||
"ratatui",
|
"ratatui",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -1139,6 +1223,7 @@ dependencies = [
|
|||||||
"tokio",
|
"tokio",
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
"toml",
|
"toml",
|
||||||
|
"unicode-width 0.1.14",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1277,6 +1362,16 @@ version = "0.1.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "pkcs8"
|
||||||
|
version = "0.10.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
|
||||||
|
dependencies = [
|
||||||
|
"der",
|
||||||
|
"spki",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "portable-atomic"
|
name = "portable-atomic"
|
||||||
version = "1.13.1"
|
version = "1.13.1"
|
||||||
@@ -1408,6 +1503,8 @@ version = "0.8.5"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"rand_chacha 0.3.1",
|
||||||
"rand_core 0.6.4",
|
"rand_core 0.6.4",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -1417,10 +1514,20 @@ version = "0.9.2"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
|
checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"rand_chacha",
|
"rand_chacha 0.9.0",
|
||||||
"rand_core 0.9.5",
|
"rand_core 0.9.5",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "rand_chacha"
|
||||||
|
version = "0.3.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
||||||
|
dependencies = [
|
||||||
|
"ppv-lite86",
|
||||||
|
"rand_core 0.6.4",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rand_chacha"
|
name = "rand_chacha"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
@@ -1436,6 +1543,9 @@ name = "rand_core"
|
|||||||
version = "0.6.4"
|
version = "0.6.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
||||||
|
dependencies = [
|
||||||
|
"getrandom 0.2.17",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rand_core"
|
name = "rand_core"
|
||||||
@@ -1477,7 +1587,7 @@ dependencies = [
|
|||||||
"thiserror 2.0.18",
|
"thiserror 2.0.18",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-truncate",
|
"unicode-truncate",
|
||||||
"unicode-width",
|
"unicode-width 0.2.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1528,7 +1638,7 @@ dependencies = [
|
|||||||
"strum",
|
"strum",
|
||||||
"time",
|
"time",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-width",
|
"unicode-width 0.2.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1845,6 +1955,15 @@ dependencies = [
|
|||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "signature"
|
||||||
|
version = "2.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
|
||||||
|
dependencies = [
|
||||||
|
"rand_core 0.6.4",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "siphasher"
|
name = "siphasher"
|
||||||
version = "1.0.2"
|
version = "1.0.2"
|
||||||
@@ -1873,6 +1992,16 @@ dependencies = [
|
|||||||
"windows-sys 0.61.2",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "spki"
|
||||||
|
version = "0.7.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
|
||||||
|
dependencies = [
|
||||||
|
"base64ct",
|
||||||
|
"der",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "stable_deref_trait"
|
name = "stable_deref_trait"
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
@@ -2303,9 +2432,15 @@ checksum = "16b380a1238663e5f8a691f9039c73e1cdae598a30e9855f541d29b08b53e9a5"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"itertools",
|
"itertools",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-width",
|
"unicode-width 0.2.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-width"
|
||||||
|
version = "0.1.14"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-width"
|
name = "unicode-width"
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ostiary"
|
name = "ostiary"
|
||||||
version = "1.0.0"
|
version = "1.1.6"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
crossterm = "0.29"
|
crossterm = { version = "0.29", features = ["use-dev-tty"] }
|
||||||
ratatui = "0.30"
|
ratatui = "0.30"
|
||||||
tokio = { version = "1", features = ["full"] }
|
tokio = { version = "1", features = ["full"] }
|
||||||
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"], default-features = false }
|
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"], default-features = false }
|
||||||
@@ -18,3 +18,7 @@ tokio-util = "0.7"
|
|||||||
toml = "0.8"
|
toml = "0.8"
|
||||||
serde_path_to_error = "0.1"
|
serde_path_to_error = "0.1"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
||||||
|
rand = "0.8"
|
||||||
|
base64 = "0.22"
|
||||||
|
unicode-width = "0.1"
|
||||||
|
|||||||
380
README.md
380
README.md
@@ -4,44 +4,154 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Установка
|
||||||
|
|
||||||
|
### Быстрая установка (Linux / macOS)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://vainend.com/ostiary | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Скрипт определяет ОС и архитектуру, скачивает последний стабильный релиз и устанавливает бинарник в `~/.local/bin/ostiary`. Если этого пути нет в `$PATH` — автоматически добавляет строку в `~/.bashrc` (или `~/.bash_profile` / `~/.profile`). Не требует `sudo`.
|
||||||
|
|
||||||
|
### Ручная установка
|
||||||
|
|
||||||
|
Скачать нужный бинарник со страницы [Releases](https://git.vainend.com/admin/ostiary/releases):
|
||||||
|
|
||||||
|
| Файл | Платформа |
|
||||||
|
|---|---|
|
||||||
|
| `ostiary-linux-x86_64` | Linux x86-64 |
|
||||||
|
| `ostiary-linux-aarch64` | Linux ARM64 |
|
||||||
|
| `ostiary-macos-aarch64` | macOS Apple Silicon |
|
||||||
|
| `ostiary-macos-x86_64` | macOS Intel |
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
|
chmod +x ostiary-linux-x86_64
|
||||||
|
mv ostiary-linux-x86_64 ~/.local/bin/ostiary
|
||||||
|
|
||||||
|
# Добавить в PATH если нужно
|
||||||
|
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
### Удаление
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -fsSL https://vainend.com/ostiary-remove | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Или вручную:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm ~/.local/bin/ostiary
|
||||||
|
rm -rf ~/.config/ostiary
|
||||||
|
```
|
||||||
|
|
||||||
|
### Переменная окружения
|
||||||
|
|
||||||
|
| Переменная | Описание |
|
||||||
|
|---|---|
|
||||||
|
| `OSTIARY_API` | Базовый URL Gitea API (если используете собственный инстанс) |
|
||||||
|
|
||||||
|
Пример с кастомным каталогом:
|
||||||
|
```bash
|
||||||
|
INSTALL_DIR=~/.local/bin bash install.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Навигация
|
## Навигация
|
||||||
|
|
||||||
|
### Главное меню
|
||||||
|
|
||||||
| Клавиша | Действие |
|
| Клавиша | Действие |
|
||||||
|---|---|
|
|---|---|
|
||||||
| `↑` / `↓` | Перемещение по списку |
|
| `↑` / `↓` или `k` / `j` | Перемещение по списку |
|
||||||
| `Enter` | Войти в категорию / запустить действие |
|
| `Enter` или `l` | Войти в категорию / запустить действие |
|
||||||
| `Esc` | Выйти из категории / закрыть popup / отменить скрипт |
|
| `Esc` или `h` | Выйти из категории |
|
||||||
| `q` | Выйти из приложения |
|
| `q` | Выйти из приложения |
|
||||||
| `R` | Перезагрузить меню с сервера |
|
| `R` | Перезагрузить меню с сервера |
|
||||||
|
|
||||||
В попапе запущенного скрипта:
|
### Popup запущенного скрипта
|
||||||
|
|
||||||
| Клавиша | Действие |
|
| Клавиша | Контекст | Действие |
|
||||||
|---|---|
|
|---|---|---|
|
||||||
| `↑` / `↓` | Прокрутка лога (если нет активного запроса) / навигация по селектору |
|
| `↑` / `↓` или `k` / `j` | Лог / селектор / форма | Прокрутка лога или навигация между элементами |
|
||||||
| `PgUp` / `PgDn` | Прокрутка лога на 10 строк |
|
| `PgUp` / `PgDn` | Лог | Прокрутка на 10 строк |
|
||||||
| `Y` / `N` | Быстрый ответ на подтверждение |
|
| `Space` | Форма | Переключить чекбокс / выбрать радиокнопку |
|
||||||
| `Esc` | Прервать скрипт и закрыть popup |
|
| `Y` / `N` или `l` / `h` | Подтверждение | Ответ без Enter |
|
||||||
|
| `Enter` или `l` | Любой ввод | Отправить / выбрать / применить форму |
|
||||||
|
| `Esc` или `h` | — | Прервать скрипт и закрыть popup |
|
||||||
|
|
||||||
|
> Vim-motions (`j`/`k`/`l`/`h`) отключаются автоматически во время текстового ввода — символы идут в поле ввода как обычно.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Конфигурация
|
## Конфигурация
|
||||||
|
|
||||||
При первом запуске создаётся файл `~/.config/tui-client/config.toml`:
|
При первом запуске клиент запрашивает URL сервера прямо в терминале — до входа в TUI:
|
||||||
|
|
||||||
|
```
|
||||||
|
╔══════════════════════════════════╗
|
||||||
|
║ Ostiary — первый запуск ║
|
||||||
|
╚══════════════════════════════════╝
|
||||||
|
|
||||||
|
Конфиг будет сохранён в:
|
||||||
|
/home/user/.config/ostiary/config.toml
|
||||||
|
|
||||||
|
URL сервера меню: https://your-server/api/menu
|
||||||
|
```
|
||||||
|
|
||||||
|
После ввода создаётся `~/.config/ostiary/config.toml`. Его можно редактировать вручную:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
server_url = "http://your-server/api/menu"
|
server_url = "https://your-server/api/menu"
|
||||||
timeout_sec = 10
|
timeout_sec = 10
|
||||||
|
update_api = "https://git.example.com/api/v1/repos/user/ostiary"
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
selected_bg = "blue"
|
selected_bg = "blue"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
| Параметр | Описание |
|
||||||
|
|---|---|
|
||||||
|
| `server_url` | URL эндпоинта `GET /api/menu` |
|
||||||
|
| `timeout_sec` | Таймаут HTTP-запросов в секундах |
|
||||||
|
| `update_api` | Базовый URL Gitea API для проверки обновлений (опционально) |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Автообновление
|
||||||
|
|
||||||
|
Если задан `update_api`, при каждом запуске клиент в фоне проверяет наличие нового релиза в Gitea. Если найдена новая стабильная версия — показывает диалог:
|
||||||
|
|
||||||
|
```
|
||||||
|
Доступно обновление
|
||||||
|
1.0.0 → 1.1.0
|
||||||
|
Размер: 4.2 МБ
|
||||||
|
|
||||||
|
[Y / l] Обновить [N / h / Esc] Пропустить
|
||||||
|
```
|
||||||
|
|
||||||
|
При подтверждении скачивает бинарник, атомарно заменяет текущий исполняемый файл и перезапускает приложение через `execv` (процесс не пересоздаётся, PID остаётся тем же).
|
||||||
|
|
||||||
|
### Naming convention ассетов в Gitea
|
||||||
|
|
||||||
|
Файлы релиза должны называться по шаблону `{name}-{os}-{arch}`:
|
||||||
|
|
||||||
|
| Файл | Платформа |
|
||||||
|
|---|---|
|
||||||
|
| `ostiary-linux-x86_64` | Linux 64-bit |
|
||||||
|
| `ostiary-linux-aarch64` | Linux ARM64 |
|
||||||
|
| `ostiary-macos-aarch64` | macOS Apple Silicon |
|
||||||
|
| `ostiary-macos-x86_64` | macOS Intel |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Формат меню (JSON)
|
## Формат меню (JSON)
|
||||||
|
|
||||||
Сервер должен отдавать `GET /api/menu` с `Content-Type: application/json`.
|
Сервер отдаёт `GET /api/menu` с `Content-Type: application/json`.
|
||||||
|
|
||||||
### Корневая структура
|
### Корневая структура
|
||||||
|
|
||||||
@@ -67,16 +177,9 @@ selected_bg = "blue"
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Поле | Обязательное | Описание |
|
|
||||||
|---|---|---|
|
|
||||||
| `id` | ✓ | Уникальный идентификатор |
|
|
||||||
| `title` | ✓ | Отображаемое название |
|
|
||||||
| `description` | — | Текст в нижней панели при выборе |
|
|
||||||
| `children` | ✓ | Вложенные категории и действия |
|
|
||||||
|
|
||||||
### Действие
|
### Действие
|
||||||
|
|
||||||
Отображается с иконкой `⚡`.
|
Отображается с иконкой `▶`.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -92,13 +195,6 @@ selected_bg = "blue"
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Поле | Обязательное | Описание |
|
|
||||||
|---|---|---|
|
|
||||||
| `id` | ✓ | Уникальный идентификатор |
|
|
||||||
| `title` | ✓ | Отображаемое название |
|
|
||||||
| `description` | — | Текст в нижней панели |
|
|
||||||
| `action` | ✓ | Объект действия |
|
|
||||||
|
|
||||||
#### `confirm` и `confirm_message`
|
#### `confirm` и `confirm_message`
|
||||||
|
|
||||||
Если `confirm: true`, перед запуском появится диалог подтверждения.
|
Если `confirm: true`, перед запуском появится диалог подтверждения.
|
||||||
@@ -113,7 +209,7 @@ selected_bg = "blue"
|
|||||||
"script": "...",
|
"script": "...",
|
||||||
"interaction": "structured",
|
"interaction": "structured",
|
||||||
"confirm": true,
|
"confirm": true,
|
||||||
"confirm_message": "Внимание! База данных будет удалена без возможности восстановления. Продолжить?"
|
"confirm_message": "База данных будет удалена без возможности восстановления. Продолжить?"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -136,13 +232,13 @@ selected_bg = "blue"
|
|||||||
| Параметр | Значения | Описание |
|
| Параметр | Значения | Описание |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `script` | строка | Полный текст bash-скрипта включая shebang |
|
| `script` | строка | Полный текст bash-скрипта включая shebang |
|
||||||
| `interaction` | `"structured"` / `"terminal"` | Режим взаимодействия (см. ниже) |
|
| `interaction` | `"structured"` / `"terminal"` | Режим взаимодействия |
|
||||||
| `confirm` | `true` / `false` | Запросить подтверждение перед запуском |
|
| `confirm` | `true` / `false` | Запросить подтверждение перед запуском |
|
||||||
| `confirm_message` | строка | Кастомный текст диалога подтверждения |
|
| `confirm_message` | строка | Кастомный текст диалога подтверждения |
|
||||||
|
|
||||||
**`interaction: "terminal"`** — скрипт запускается как дочерний процесс, вывод игнорируется клиентом. Подходит для простых неинтерактивных команд.
|
**`interaction: "terminal"`** — скрипт запускается дочерним процессом без захвата вывода.
|
||||||
|
|
||||||
**`interaction: "structured"`** — скрипт общается с клиентом через протокол команд (см. раздел ниже). Весь вывод отображается в прокручиваемом логе с поддержкой ANSI-цветов. Поддерживает интерактивные элементы: селекторы, поля ввода, подтверждения.
|
**`interaction: "structured"`** — весь вывод отображается в прокручиваемом логе с ANSI-цветами, скрипт может запрашивать ввод через протокол команд.
|
||||||
|
|
||||||
### `download` — скачивание файла
|
### `download` — скачивание файла
|
||||||
|
|
||||||
@@ -156,12 +252,6 @@ selected_bg = "blue"
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Параметр | Описание |
|
|
||||||
|---|---|
|
|
||||||
| `url` | Адрес файла |
|
|
||||||
| `filename` | Имя сохраняемого файла (по умолчанию — из URL) |
|
|
||||||
| `target_dir` | Директория сохранения (по умолчанию — текущая) |
|
|
||||||
|
|
||||||
### `download_and_run` — скачать и выполнить
|
### `download_and_run` — скачать и выполнить
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@@ -174,11 +264,6 @@ selected_bg = "blue"
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Параметр | Описание |
|
|
||||||
|---|---|
|
|
||||||
| `run_args` | Аргументы командной строки |
|
|
||||||
| `keep_file` | Оставить файл после выполнения (по умолчанию `false`) |
|
|
||||||
|
|
||||||
### `http_request` — HTTP-запрос
|
### `http_request` — HTTP-запрос
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@@ -186,10 +271,7 @@ selected_bg = "blue"
|
|||||||
"type": "http_request",
|
"type": "http_request",
|
||||||
"method": "POST",
|
"method": "POST",
|
||||||
"url": "https://api.example.com/deploy",
|
"url": "https://api.example.com/deploy",
|
||||||
"headers": {
|
"headers": { "Authorization": "Bearer token123" },
|
||||||
"Authorization": "Bearer token123",
|
|
||||||
"Content-Type": "application/json"
|
|
||||||
},
|
|
||||||
"body": "{\"env\": \"production\"}",
|
"body": "{\"env\": \"production\"}",
|
||||||
"confirm": true
|
"confirm": true
|
||||||
}
|
}
|
||||||
@@ -199,12 +281,10 @@ selected_bg = "blue"
|
|||||||
|
|
||||||
## Интерактивные скрипты (structured)
|
## Интерактивные скрипты (structured)
|
||||||
|
|
||||||
При `interaction: "structured"` скрипт может запрашивать у пользователя данные через специальный протокол. Клиент показывает соответствующий элемент интерфейса ratatui и ждёт ответа.
|
При `interaction: "structured"` скрипт общается с клиентом через протокол команд. Команды отправляются в **stderr** (`>&2`), ответы приходят в **stdin**.
|
||||||
|
|
||||||
### Базовые хелперы
|
### Базовые хелперы
|
||||||
|
|
||||||
Добавьте эти функции в начало каждого интерактивного скрипта:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
@@ -215,21 +295,16 @@ ask() {
|
|||||||
printf '%s' "$_response"
|
printf '%s' "$_response"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Отправить уведомление (не ждёт ответа)
|
# Отправить уведомление (не ждёт ответа, не блокирует скрипт)
|
||||||
notify() {
|
notify() {
|
||||||
printf 'CMD:%s\n' "$1" >&2
|
printf 'CMD:%s\n' "$1" >&2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Команды отправляются в **stderr** (`>&2`), ответы приходят в **stdin** через `read`. Это позволяет использовать `$(ask '...')` для захвата результата.
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Ввод текста (`input`)
|
### Ввод текста (`input`)
|
||||||
|
|
||||||
Показывает текстовое поле с заголовком. Поддерживает маскировку для паролей.
|
|
||||||
|
|
||||||
**Команда:**
|
|
||||||
```json
|
```json
|
||||||
{"type":"input","prompt":"Введите имя пользователя:","default":"admin","secret":false}
|
{"type":"input","prompt":"Введите имя пользователя:","default":"admin","secret":false}
|
||||||
```
|
```
|
||||||
@@ -240,20 +315,17 @@ notify() {
|
|||||||
| `default` | Значение по умолчанию (опционально) |
|
| `default` | Значение по умолчанию (опционально) |
|
||||||
| `secret` | Если `true` — символы заменяются на `•` |
|
| `secret` | Если `true` — символы заменяются на `•` |
|
||||||
|
|
||||||
**Пример:**
|
|
||||||
```bash
|
```bash
|
||||||
username=$(ask '{"type":"input","prompt":"Имя пользователя:","default":"admin"}')
|
username=$(ask '{"type":"input","prompt":"Имя пользователя:","default":"admin"}')
|
||||||
password=$(ask '{"type":"input","prompt":"Пароль:","secret":true}')
|
password=$(ask '{"type":"input","prompt":"Пароль:","secret":true}')
|
||||||
echo "Логин: $username"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Выбор из списка (`menu`)
|
### Выбор из списка (`menu`)
|
||||||
|
|
||||||
Показывает список с навигацией `↑`/`↓` и выбором по `Enter`. Возвращает `id` выбранного пункта.
|
Список с навигацией `↑`/`↓`/`j`/`k`, выбор по `Enter`/`l`. Возвращает `id` выбранного пункта.
|
||||||
|
|
||||||
**Команда:**
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "menu",
|
"type": "menu",
|
||||||
@@ -266,14 +338,6 @@ echo "Логин: $username"
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Поле | Описание |
|
|
||||||
|---|---|
|
|
||||||
| `prompt` | Заголовок списка |
|
|
||||||
| `options` | Массив объектов `{"id": "...", "label": "..."}` |
|
|
||||||
|
|
||||||
**Ответ:** строка `id` выбранного пункта.
|
|
||||||
|
|
||||||
**Пример:**
|
|
||||||
```bash
|
```bash
|
||||||
action=$(ask '{"type":"menu","prompt":"Выберите действие:","options":[
|
action=$(ask '{"type":"menu","prompt":"Выберите действие:","options":[
|
||||||
{"id":"dump","label":"Создать дамп"},
|
{"id":"dump","label":"Создать дамп"},
|
||||||
@@ -288,7 +352,7 @@ case $action in
|
|||||||
esac
|
esac
|
||||||
```
|
```
|
||||||
|
|
||||||
**Динамический список** (например, файлы на диске):
|
**Динамический список** (из массива bash):
|
||||||
```bash
|
```bash
|
||||||
files=($(ls *.sql 2>/dev/null))
|
files=($(ls *.sql 2>/dev/null))
|
||||||
|
|
||||||
@@ -302,31 +366,24 @@ options+=']'
|
|||||||
|
|
||||||
idx=$(ask "{\"type\":\"menu\",\"prompt\":\"Выберите файл:\",\"options\":${options}}")
|
idx=$(ask "{\"type\":\"menu\",\"prompt\":\"Выберите файл:\",\"options\":${options}}")
|
||||||
selected="${files[$idx]}"
|
selected="${files[$idx]}"
|
||||||
echo "Выбран: $selected"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Подтверждение (`confirm`)
|
### Подтверждение (`confirm`)
|
||||||
|
|
||||||
Показывает вопрос с кнопками `[Y] Да` и `[N] Нет`. Нажатия `Y`/`N` обрабатываются без `Enter`.
|
Показывает вопрос с кнопками `[Y]`/`[N]`. Клавиши `Y`/`N`/`l`/`h` обрабатываются без Enter.
|
||||||
|
|
||||||
**Команда:**
|
|
||||||
```json
|
```json
|
||||||
{"type":"confirm","prompt":"Данные будут перезаписаны. Продолжить?"}
|
{"type":"confirm","prompt":"Данные будут перезаписаны. Продолжить?"}
|
||||||
```
|
```
|
||||||
|
|
||||||
**Ответ:** `"y"` или `"n"`.
|
Ответ: `"y"` или `"n"`.
|
||||||
|
|
||||||
**Пример:**
|
|
||||||
```bash
|
```bash
|
||||||
answer=$(ask '{"type":"confirm","prompt":"Удалить временные файлы?"}')
|
answer=$(ask '{"type":"confirm","prompt":"Удалить временные файлы?"}')
|
||||||
|
|
||||||
if [[ "$answer" =~ ^[Yy]$ ]]; then
|
if [[ "$answer" =~ ^[Yy]$ ]]; then
|
||||||
rm -rf /tmp/myapp_*
|
rm -rf /tmp/myapp_*
|
||||||
echo "Файлы удалены"
|
|
||||||
else
|
|
||||||
echo "Отменено"
|
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -334,79 +391,97 @@ fi
|
|||||||
|
|
||||||
### Сообщение (`message`)
|
### Сообщение (`message`)
|
||||||
|
|
||||||
Показывает информационное сообщение с цветовым выделением. Скрипт продолжается после нажатия `Enter`.
|
Показывает сообщение с цветом. Скрипт продолжается после нажатия `Enter`.
|
||||||
|
|
||||||
**Команда:**
|
|
||||||
```json
|
```json
|
||||||
{"type":"message","level":"info","text":"Операция завершена успешно!"}
|
{"type":"message","level":"info","text":"Операция завершена успешно!"}
|
||||||
```
|
```
|
||||||
|
|
||||||
| `level` | Цвет | Когда использовать |
|
| `level` | Цвет |
|
||||||
|---|---|---|
|
|---|---|
|
||||||
| `"info"` | Зелёный | Успешное завершение, информация |
|
| `"info"` | Зелёный |
|
||||||
| `"warn"` | Жёлтый | Предупреждение, нестандартная ситуация |
|
| `"warn"` | Жёлтый |
|
||||||
| `"error"` | Красный | Ошибка, критическая проблема |
|
| `"error"` | Красный |
|
||||||
|
|
||||||
**Пример:**
|
|
||||||
```bash
|
```bash
|
||||||
if ! command -v mysqldump &> /dev/null; then
|
if ! command -v mysqldump &> /dev/null; then
|
||||||
ask '{"type":"message","level":"error","text":"mysqldump не найден. Установите пакет mysql-client."}' > /dev/null
|
ask '{"type":"message","level":"error","text":"mysqldump не найден."}' > /dev/null
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ask '{"type":"message","level":"warn","text":"База данных занимает более 10 ГБ. Дамп может занять несколько минут."}' > /dev/null
|
|
||||||
|
|
||||||
echo "Начинаю создание дампа..."
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> `> /dev/null` — сбрасывает пустой ответ клиента, чтобы он не попал в переменную.
|
> `> /dev/null` — сбрасывает пустой ответ клиента чтобы он не попал в переменную.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Прогресс (`progress`)
|
### Прогресс (`progress`)
|
||||||
|
|
||||||
Обновляет прогресс-бар без остановки скрипта. Скрипт продолжает выполнение немедленно.
|
Обновляет прогресс-бар не блокируя скрипт (используйте `notify`, не `ask`).
|
||||||
|
|
||||||
**Команда:**
|
|
||||||
```json
|
```json
|
||||||
{"type":"progress","percent":45,"message":"Копирование файлов..."}
|
{"type":"progress","percent":45,"message":"Копирование файлов..."}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Поле | Описание |
|
|
||||||
|---|---|
|
|
||||||
| `percent` | Число от 0 до 100 |
|
|
||||||
| `message` | Подпись под прогресс-баром (опционально) |
|
|
||||||
|
|
||||||
**Пример:**
|
|
||||||
```bash
|
```bash
|
||||||
notify '{"type":"progress","percent":0,"message":"Начало..."}'
|
notify '{"type":"progress","percent":0,"message":"Начало..."}'
|
||||||
|
|
||||||
mysqldump -h "$host" -u "$user" "$db" > backup.sql
|
mysqldump -h "$host" -u "$user" "$db" > backup.sql
|
||||||
notify '{"type":"progress","percent":60,"message":"Дамп создан, сжимаю..."}'
|
notify '{"type":"progress","percent":70,"message":"Сжимаю..."}'
|
||||||
|
|
||||||
gzip backup.sql
|
gzip backup.sql
|
||||||
notify '{"type":"progress","percent":100,"message":"Готово!"}'
|
notify '{"type":"progress","percent":100,"message":"Готово!"}'
|
||||||
echo "Файл: backup.sql.gz ($(du -h backup.sql.gz | cut -f1))"
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Форма с чекбоксами и радиокнопками (`form`)
|
||||||
|
|
||||||
|
Отображает список полей с возможностью навигации и переключения. Возвращает строку с ID всех включённых/выбранных полей через пробел.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"type": "form",
|
||||||
|
"prompt": "Параметры поиска:",
|
||||||
|
"fields": [
|
||||||
|
{"id": "verbose", "label": "Подробный вывод", "field_type": "checkbox", "default": false},
|
||||||
|
{"id": "php", "label": "PHP файлы (*.php)", "field_type": "radio", "group": "ftype", "default": true},
|
||||||
|
{"id": "js", "label": "JS файлы (*.js)", "field_type": "radio", "group": "ftype", "default": false}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
| Поле | Описание |
|
||||||
|
|---|---|
|
||||||
|
| `id` | Идентификатор, возвращается если поле включено |
|
||||||
|
| `label` | Отображаемый текст |
|
||||||
|
| `field_type` | `"checkbox"` или `"radio"` |
|
||||||
|
| `default` | Начальное состояние |
|
||||||
|
| `group` | Группа радиокнопок — одновременно активна только одна в группе |
|
||||||
|
|
||||||
|
**Ответ:** строка с ID активных полей через пробел: `"verbose php"`
|
||||||
|
|
||||||
|
**Клавиши внутри формы:** `↑`/`↓`/`j`/`k` — навигация, `Space` — переключить, `Enter`/`l` — применить, `Esc` — отмена.
|
||||||
|
|
||||||
|
**Важно:** весь JSON должен быть на **одной строке** — протокол читает строки, не блоки.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
result=$(ask '{"type":"form","prompt":"Параметры:","fields":[{"id":"verbose","label":"Подробный вывод","field_type":"checkbox","default":false},{"id":"php","label":"PHP файлы","field_type":"radio","group":"t","default":true},{"id":"js","label":"JS файлы","field_type":"radio","group":"t","default":false}]}')
|
||||||
|
|
||||||
|
is_on() { [[ " $result " == *" $1 "* ]]; }
|
||||||
|
|
||||||
|
is_on "verbose" && FLAGS+=("-v")
|
||||||
|
is_on "php" && INCLUDE="--include=*.php"
|
||||||
|
is_on "js" && INCLUDE="--include=*.js"
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Запуск внешнего приложения (`exec`)
|
### Запуск внешнего приложения (`exec`)
|
||||||
|
|
||||||
Временно **передаёт терминал** внешней программе (mysql, vim, htop и т.д.). Клиент скрывает ratatui, программа работает на полном экране, после завершения TUI восстанавливается. Возвращает код завершения.
|
Временно **передаёт терминал** внешней программе (mysql, vim, htop и др.). Клиент скрывает TUI, программа работает на полном экране, после завершения TUI восстанавливается. Возвращает код завершения.
|
||||||
|
|
||||||
**Команда:**
|
|
||||||
```json
|
```json
|
||||||
{"type":"exec","shell":"mysql -h localhost -u root mydb"}
|
{"type":"exec","shell":"mysql -h localhost -u root mydb"}
|
||||||
```
|
```
|
||||||
|
|
||||||
| Поле | Описание |
|
|
||||||
|---|---|
|
|
||||||
| `shell` | Команда, которая будет выполнена через `bash -c` |
|
|
||||||
|
|
||||||
**Ответ:** код завершения программы (`"0"`, `"1"` и т.д.).
|
|
||||||
|
|
||||||
**Примеры:**
|
|
||||||
```bash
|
```bash
|
||||||
# Интерактивная сессия mysql
|
# Интерактивная сессия mysql
|
||||||
exit_code=$(ask "{\"type\":\"exec\",\"shell\":\"mysql -h \\\"$host\\\" -u \\\"$user\\\" -p\\\"$pass\\\" \\\"$db\\\"\"}")
|
exit_code=$(ask "{\"type\":\"exec\",\"shell\":\"mysql -h \\\"$host\\\" -u \\\"$user\\\" -p\\\"$pass\\\" \\\"$db\\\"\"}")
|
||||||
@@ -414,7 +489,6 @@ echo "Сессия завершена (код: $exit_code)"
|
|||||||
|
|
||||||
# Редактирование конфига
|
# Редактирование конфига
|
||||||
ask '{"type":"exec","shell":"vim /etc/nginx/nginx.conf"}' > /dev/null
|
ask '{"type":"exec","shell":"vim /etc/nginx/nginx.conf"}' > /dev/null
|
||||||
notify '{"type":"progress","percent":0,"message":"Перезагружаю nginx..."}'
|
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
# Мониторинг ресурсов
|
# Мониторинг ресурсов
|
||||||
@@ -428,25 +502,14 @@ ask '{"type":"exec","shell":"htop"}' > /dev/null
|
|||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ask() {
|
ask() { printf 'CMD:%s\n' "$1" >&2; read -r _r; printf '%s' "$_r"; }
|
||||||
printf 'CMD:%s\n' "$1" >&2
|
notify() { printf 'CMD:%s\n' "$1" >&2; }
|
||||||
read -r _response
|
|
||||||
printf '%s' "$_response"
|
|
||||||
}
|
|
||||||
|
|
||||||
notify() {
|
host=$(ask '{"type":"input","prompt":"Хост:","default":"localhost"}')
|
||||||
printf 'CMD:%s\n' "$1" >&2
|
db=$(ask '{"type":"input","prompt":"База данных:"}')
|
||||||
}
|
|
||||||
|
|
||||||
# Запрос данных
|
|
||||||
host=$(ask '{"type":"input","prompt":"Хост базы данных:","default":"localhost"}')
|
|
||||||
db=$(ask '{"type":"input","prompt":"Имя базы данных:"}')
|
|
||||||
user=$(ask '{"type":"input","prompt":"Пользователь:","default":"root"}')
|
user=$(ask '{"type":"input","prompt":"Пользователь:","default":"root"}')
|
||||||
pass=$(ask '{"type":"input","prompt":"Пароль:","secret":true}')
|
pass=$(ask '{"type":"input","prompt":"Пароль:","secret":true}')
|
||||||
|
|
||||||
echo "Подключаюсь к $db на $host..."
|
|
||||||
|
|
||||||
# Выбор действия
|
|
||||||
action=$(ask "{\"type\":\"menu\",\"prompt\":\"Выберите действие:\",\"options\":[
|
action=$(ask "{\"type\":\"menu\",\"prompt\":\"Выберите действие:\",\"options\":[
|
||||||
{\"id\":\"dump\", \"label\":\"Создать дамп\"},
|
{\"id\":\"dump\", \"label\":\"Создать дамп\"},
|
||||||
{\"id\":\"shell\", \"label\":\"Открыть mysql-консоль\"},
|
{\"id\":\"shell\", \"label\":\"Открыть mysql-консоль\"},
|
||||||
@@ -463,7 +526,7 @@ case $action in
|
|||||||
|
|
||||||
if mysqldump -h "$host" -u "$user" -p"$pass" "$db" > "$backup"; then
|
if mysqldump -h "$host" -u "$user" -p"$pass" "$db" > "$backup"; then
|
||||||
notify '{"type":"progress","percent":100,"message":"Готово!"}'
|
notify '{"type":"progress","percent":100,"message":"Готово!"}'
|
||||||
echo "Дамп сохранён: $backup ($(du -h "$backup" | cut -f1))"
|
echo "Дамп: $backup ($(du -h "$backup" | cut -f1))"
|
||||||
else
|
else
|
||||||
ask '{"type":"message","level":"error","text":"Ошибка при создании дампа!"}' > /dev/null
|
ask '{"type":"message","level":"error","text":"Ошибка при создании дампа!"}' > /dev/null
|
||||||
exit 1
|
exit 1
|
||||||
@@ -471,15 +534,11 @@ case $action in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
shell)
|
shell)
|
||||||
echo "Открываю mysql-консоль..."
|
|
||||||
code=$(ask "{\"type\":\"exec\",\"shell\":\"mysql -h \\\"$host\\\" -u \\\"$user\\\" -p\\\"$pass\\\" \\\"$db\\\"\"}")
|
code=$(ask "{\"type\":\"exec\",\"shell\":\"mysql -h \\\"$host\\\" -u \\\"$user\\\" -p\\\"$pass\\\" \\\"$db\\\"\"}")
|
||||||
echo "Сессия завершена с кодом $code"
|
echo "Сессия завершена с кодом $code"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
cancel)
|
cancel) exit 0 ;;
|
||||||
echo "Отменено"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -487,15 +546,14 @@ esac
|
|||||||
|
|
||||||
## Структура сервера
|
## Структура сервера
|
||||||
|
|
||||||
Рекомендуемая организация серверной части:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
server/
|
server/
|
||||||
├── index.php # Собирает JSON из menu_structure.json + scripts/
|
├── index.php # Собирает JSON: menu_structure.json + scripts/
|
||||||
├── menu_structure.json # Иерархия меню (script_file вместо script)
|
├── menu_structure.json # Иерархия меню (script_file вместо script)
|
||||||
└── scripts/
|
└── scripts/
|
||||||
├── bitrix_db_manage.sh
|
├── bitrix_db_manage.sh
|
||||||
├── bitrix_monitoring.sh
|
├── bitrix_monitoring.sh
|
||||||
|
├── network_suspicious_connections.sh
|
||||||
└── wordpress_db_backup.sh
|
└── wordpress_db_backup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -514,48 +572,68 @@ server/
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
`index.php` подставляет содержимое файла при каждом запросе — скрипты редактируются без изменения JSON.
|
`index.php` читает файл скрипта при каждом запросе — скрипты редактируются без изменения JSON.
|
||||||
|
|
||||||
### Добавление нового пункта меню
|
### Добавление нового пункта меню
|
||||||
|
|
||||||
1. Создать скрипт `server/scripts/myapp_action.sh`
|
1. Создать `server/scripts/category_action.sh`
|
||||||
2. Добавить пункт в `menu_structure.json`:
|
2. Добавить пункт в `menu_structure.json`:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "myapp_action",
|
"id": "my_action",
|
||||||
"title": "Название в меню",
|
"title": "Название в меню",
|
||||||
"description": "Описание для нижней панели",
|
"description": "Описание для нижней панели",
|
||||||
"action": {
|
"action": {
|
||||||
"type": "bash",
|
"type": "bash",
|
||||||
"script_file": "myapp_action.sh",
|
"script_file": "category_action.sh",
|
||||||
"interaction": "structured",
|
"interaction": "structured",
|
||||||
"confirm": false
|
"confirm": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Именование файлов: `{категория}_{подкатегория}_{действие}.sh`
|
Соглашение по именованию файлов: `{категория}_{подкатегория}_{действие}.sh`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Сборка
|
## Сборка релиза
|
||||||
|
|
||||||
|
Скрипт `release.sh` собирает бинарники для всех платформ сразу и кладёт их в `dist/`:
|
||||||
|
|
||||||
**Linux:**
|
|
||||||
```bash
|
```bash
|
||||||
cd Ratatui
|
cd Ostiary
|
||||||
cargo build --release
|
./release.sh
|
||||||
# → target/release/tui-client
|
# → dist/ostiary-linux-x86_64
|
||||||
|
# → dist/ostiary-linux-aarch64
|
||||||
|
# → dist/ostiary-macos-aarch64
|
||||||
```
|
```
|
||||||
|
|
||||||
**Кросс-компиляция с macOS → Linux (musl, статический бинарный файл):**
|
После сборки загрузите файлы из `dist/` в [новый релиз Gitea](https://git.vainend.com/admin/ostiary/releases/new). Имена файлов должны точно совпадать с тем, что скачивает `install.sh`.
|
||||||
|
|
||||||
|
**Вручную — Linux:**
|
||||||
|
```bash
|
||||||
|
cargo build --release
|
||||||
|
# → target/release/ostiary
|
||||||
|
```
|
||||||
|
|
||||||
|
**Вручную — кросс-компиляция macOS → Linux x86_64 (musl, статический):**
|
||||||
```bash
|
```bash
|
||||||
rustup target add x86_64-unknown-linux-musl
|
rustup target add x86_64-unknown-linux-musl
|
||||||
brew install FiloSottile/musl-cross/musl-cross
|
brew install FiloSottile/musl-cross/musl-cross
|
||||||
|
|
||||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-musl-gcc \
|
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-musl-gcc \
|
||||||
cargo build --release --target x86_64-unknown-linux-musl
|
cargo build --release --target x86_64-unknown-linux-musl
|
||||||
# → target/x86_64-unknown-linux-musl/release/tui-client
|
# → target/x86_64-unknown-linux-musl/release/ostiary
|
||||||
```
|
```
|
||||||
|
|
||||||
Бинарный файл собирается статически и не требует никаких зависимостей на целевом сервере.
|
**Вручную — ARM64 Linux:**
|
||||||
|
```bash
|
||||||
|
rustup target add aarch64-unknown-linux-musl
|
||||||
|
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc \
|
||||||
|
cargo build --release --target aarch64-unknown-linux-musl
|
||||||
|
# → target/aarch64-unknown-linux-musl/release/ostiary
|
||||||
|
```
|
||||||
|
|
||||||
|
Бинарник собирается статически (musl) и не требует никаких зависимостей на целевом сервере.
|
||||||
|
|||||||
115
install.sh
Executable file
115
install.sh
Executable file
@@ -0,0 +1,115 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# ── Configuration ────────────────────────────────────────────────────────────
|
||||||
|
BINARY="ostiary"
|
||||||
|
REPO_API="${OSTIARY_API:-https://git.vainend.com/api/v1/repos/admin/ostiary}"
|
||||||
|
INSTALL_DIR="$HOME/.local/bin"
|
||||||
|
|
||||||
|
# ── Colors ───────────────────────────────────────────────────────────────────
|
||||||
|
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
|
||||||
|
CYAN='\033[0;36m'; NC='\033[0m'
|
||||||
|
|
||||||
|
info() { echo -e "${CYAN}[ostiary]${NC} $*"; }
|
||||||
|
ok() { echo -e "${GREEN}[ostiary]${NC} $*"; }
|
||||||
|
warn() { echo -e "${YELLOW}[ostiary]${NC} $*"; }
|
||||||
|
die() { echo -e "${RED}[ostiary]${NC} $*" >&2; exit 1; }
|
||||||
|
|
||||||
|
# ── Detect OS ────────────────────────────────────────────────────────────────
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Linux) OS="linux" ;;
|
||||||
|
Darwin) OS="macos" ;;
|
||||||
|
*) die "Unsupported OS: $(uname -s)" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# ── Detect architecture ──────────────────────────────────────────────────────
|
||||||
|
case "$(uname -m)" in
|
||||||
|
x86_64) ARCH="x86_64" ;;
|
||||||
|
aarch64|arm64) ARCH="aarch64" ;;
|
||||||
|
*) die "Unsupported architecture: $(uname -m)" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
ASSET="${BINARY}-${OS}-${ARCH}"
|
||||||
|
info "Platform: ${OS}-${ARCH}"
|
||||||
|
|
||||||
|
# ── HTTP helper ──────────────────────────────────────────────────────────────
|
||||||
|
if command -v curl &>/dev/null; then
|
||||||
|
fetch() { curl -fsSL "$1"; }
|
||||||
|
fetch_file() { curl -fsSL -o "$2" "$1"; }
|
||||||
|
http_code() { curl -o /dev/null -sLw "%{http_code}" "$1"; }
|
||||||
|
elif command -v wget &>/dev/null; then
|
||||||
|
fetch() { wget -qO- "$1"; }
|
||||||
|
fetch_file() { wget -qO "$2" "$1"; }
|
||||||
|
http_code() { wget -q --server-response -O /dev/null "$1" 2>&1 \
|
||||||
|
| awk '/^ HTTP/{code=$2} END{print code}'; }
|
||||||
|
else
|
||||||
|
die "curl or wget is required"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ── Fetch latest release tag ─────────────────────────────────────────────────
|
||||||
|
info "Fetching latest release info..."
|
||||||
|
|
||||||
|
LATEST_JSON=$(fetch "${REPO_API}/releases/latest") \
|
||||||
|
|| die "Failed to reach Gitea API: ${REPO_API}"
|
||||||
|
|
||||||
|
VERSION=$(printf '%s' "$LATEST_JSON" \
|
||||||
|
| grep -o '"tag_name":"[^"]*"' \
|
||||||
|
| head -1 \
|
||||||
|
| cut -d'"' -f4)
|
||||||
|
|
||||||
|
[ -z "$VERSION" ] && die "Could not parse version from API response"
|
||||||
|
|
||||||
|
ok "Latest version: ${VERSION}"
|
||||||
|
|
||||||
|
# ── Build download URL ───────────────────────────────────────────────────────
|
||||||
|
BASE_URL=$(printf '%s' "$REPO_API" | sed 's|/api/v1/repos||')
|
||||||
|
DOWNLOAD_URL="${BASE_URL}/releases/download/${VERSION}/${ASSET}"
|
||||||
|
|
||||||
|
info "Downloading ${DOWNLOAD_URL}..."
|
||||||
|
|
||||||
|
CODE=$(http_code "$DOWNLOAD_URL")
|
||||||
|
[ "$CODE" = "200" ] || die "Asset not found (HTTP ${CODE}): ${ASSET}"
|
||||||
|
|
||||||
|
# ── Download ─────────────────────────────────────────────────────────────────
|
||||||
|
TMP=$(mktemp)
|
||||||
|
trap 'rm -f "$TMP"' EXIT
|
||||||
|
|
||||||
|
fetch_file "$DOWNLOAD_URL" "$TMP" || die "Download failed"
|
||||||
|
chmod +x "$TMP"
|
||||||
|
|
||||||
|
# ── Install to ~/.local/bin ───────────────────────────────────────────────────
|
||||||
|
mkdir -p "$INSTALL_DIR"
|
||||||
|
mv "$TMP" "$INSTALL_DIR/$BINARY"
|
||||||
|
ok "Installed → $INSTALL_DIR/$BINARY"
|
||||||
|
|
||||||
|
# ── Add ~/.local/bin to PATH if missing ──────────────────────────────────────
|
||||||
|
if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
|
||||||
|
export PATH="$INSTALL_DIR:$PATH"
|
||||||
|
|
||||||
|
EXPORT_LINE="export PATH=\"\$HOME/.local/bin:\$PATH\""
|
||||||
|
|
||||||
|
if [ -f "$HOME/.zshrc" ]; then
|
||||||
|
PROFILE="$HOME/.zshrc"
|
||||||
|
elif [ -f "$HOME/.bashrc" ]; then
|
||||||
|
PROFILE="$HOME/.bashrc"
|
||||||
|
elif [ -f "$HOME/.bash_profile" ]; then
|
||||||
|
PROFILE="$HOME/.bash_profile"
|
||||||
|
elif [ -f "$HOME/.profile" ]; then
|
||||||
|
PROFILE="$HOME/.profile"
|
||||||
|
else
|
||||||
|
PROFILE="$HOME/.bashrc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! grep -qF "$INSTALL_DIR" "$PROFILE" 2>/dev/null; then
|
||||||
|
printf '\n# Added by ostiary installer\n%s\n' "$EXPORT_LINE" >> "$PROFILE"
|
||||||
|
ok "Added PATH entry to $PROFILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
ok "Launching ${BINARY}..."
|
||||||
|
if { true </dev/tty; } 2>/dev/null; then
|
||||||
|
"$INSTALL_DIR/$BINARY"
|
||||||
|
else
|
||||||
|
ok "Run: $BINARY"
|
||||||
|
fi
|
||||||
55
release.sh
Executable file
55
release.sh
Executable file
@@ -0,0 +1,55 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BINARY=$(cargo metadata --no-deps --format-version 1 | python3 -c "import sys,json; print(json.load(sys.stdin)['packages'][0]['name'])")
|
||||||
|
VERSION=$(cargo metadata --no-deps --format-version 1 | python3 -c "import sys,json; print(json.load(sys.stdin)['packages'][0]['version'])")
|
||||||
|
OUT_DIR="dist"
|
||||||
|
|
||||||
|
TARGETS=(
|
||||||
|
"x86_64-unknown-linux-musl:linux-x86_64"
|
||||||
|
"aarch64-unknown-linux-musl:linux-aarch64"
|
||||||
|
"aarch64-apple-darwin:macos-aarch64"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Building $BINARY v$VERSION"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
# Ensure rustup targets are installed
|
||||||
|
rustup target add \
|
||||||
|
x86_64-unknown-linux-musl \
|
||||||
|
aarch64-unknown-linux-musl \
|
||||||
|
aarch64-apple-darwin 2>/dev/null
|
||||||
|
|
||||||
|
mkdir -p "$OUT_DIR"
|
||||||
|
# Clean previous release artifacts
|
||||||
|
rm -f "$OUT_DIR/$BINARY"-*
|
||||||
|
|
||||||
|
for entry in "${TARGETS[@]}"; do
|
||||||
|
RUST_TARGET="${entry%%:*}"
|
||||||
|
LABEL="${entry##*:}"
|
||||||
|
ARTIFACT="$OUT_DIR/${BINARY}-${LABEL}"
|
||||||
|
|
||||||
|
echo "── $LABEL ($RUST_TARGET)"
|
||||||
|
|
||||||
|
case "$RUST_TARGET" in
|
||||||
|
x86_64-unknown-linux-musl)
|
||||||
|
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-musl-gcc \
|
||||||
|
cargo build --release --target "$RUST_TARGET" --quiet
|
||||||
|
;;
|
||||||
|
aarch64-unknown-linux-musl)
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc \
|
||||||
|
cargo build --release --target "$RUST_TARGET" --quiet
|
||||||
|
;;
|
||||||
|
aarch64-apple-darwin)
|
||||||
|
cargo build --release --target "$RUST_TARGET" --quiet
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cp "target/$RUST_TARGET/release/$BINARY" "$ARTIFACT"
|
||||||
|
SIZE=$(du -sh "$ARTIFACT" | cut -f1)
|
||||||
|
echo " → $ARTIFACT ($SIZE)"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Done. Artifacts in $OUT_DIR/:"
|
||||||
|
ls -lh "$OUT_DIR/$BINARY"-*
|
||||||
833
src/app.rs
833
src/app.rs
File diff suppressed because it is too large
Load Diff
138
src/config.rs
138
src/config.rs
@@ -3,12 +3,44 @@ use anyhow::Result;
|
|||||||
use std::fs;
|
use std::fs;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
|
pub struct Endpoint {
|
||||||
|
pub name: String,
|
||||||
|
pub url: String,
|
||||||
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
pub private_key: Option<String>,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Endpoint {
|
||||||
|
/// Creates a new endpoint with a freshly generated Ed25519 key pair.
|
||||||
|
pub fn new(name: String, url: String) -> Self {
|
||||||
|
Self {
|
||||||
|
name,
|
||||||
|
url,
|
||||||
|
private_key: Some(crate::identity::Identity::generate().to_b64()),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn identity(&self) -> Option<crate::identity::Identity> {
|
||||||
|
self.private_key.as_deref()
|
||||||
|
.and_then(|k| crate::identity::Identity::from_b64(k).ok())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize, Clone)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub server_url: String,
|
// Legacy field — present only in old configs; migrated to endpoints on load.
|
||||||
|
#[serde(default, skip_serializing)]
|
||||||
|
server_url: Option<String>,
|
||||||
|
#[serde(default)]
|
||||||
|
pub endpoints: Vec<Endpoint>,
|
||||||
|
#[serde(default)]
|
||||||
|
pub active_endpoint: String,
|
||||||
pub timeout_sec: u64,
|
pub timeout_sec: u64,
|
||||||
#[serde(default = "default_theme")]
|
#[serde(default = "default_theme")]
|
||||||
pub theme: Theme,
|
pub theme: Theme,
|
||||||
|
#[serde(default)]
|
||||||
|
pub update_api: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize, Clone)]
|
#[derive(Debug, Deserialize, Serialize, Clone)]
|
||||||
@@ -22,30 +54,104 @@ fn default_selected_bg() -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn default_theme() -> Theme {
|
fn default_theme() -> Theme {
|
||||||
Theme {
|
Theme { selected_bg: default_selected_bg() }
|
||||||
selected_bg: default_selected_bg(),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn config_path() -> PathBuf {
|
||||||
|
let base = std::env::var("XDG_CONFIG_HOME")
|
||||||
|
.map(PathBuf::from)
|
||||||
|
.unwrap_or_else(|_| {
|
||||||
|
dirs::home_dir()
|
||||||
|
.unwrap_or_else(|| PathBuf::from("."))
|
||||||
|
.join(".config")
|
||||||
|
});
|
||||||
|
base.join(env!("CARGO_PKG_NAME")).join("config.toml")
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
pub fn load() -> Result<Self> {
|
pub fn exists() -> bool {
|
||||||
let config_path = dirs::config_dir()
|
config_path().exists()
|
||||||
.unwrap_or_else(|| PathBuf::from("."))
|
}
|
||||||
.join("tui-client")
|
|
||||||
.join("config.toml");
|
|
||||||
|
|
||||||
if !config_path.exists() {
|
pub fn active_url(&self) -> &str {
|
||||||
let default = Config {
|
&self.active_endpoint
|
||||||
server_url: "http://localhost:8080/api/menu".to_string(),
|
}
|
||||||
|
|
||||||
|
/// Returns the identity for the currently active endpoint, if any.
|
||||||
|
pub fn active_identity(&self) -> Option<crate::identity::Identity> {
|
||||||
|
self.endpoints.iter()
|
||||||
|
.find(|ep| ep.url == self.active_endpoint)
|
||||||
|
.and_then(|ep| ep.identity())
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn load() -> Result<Self> {
|
||||||
|
let path = config_path();
|
||||||
|
let content = fs::read_to_string(&path)?;
|
||||||
|
let mut cfg: Config = toml::from_str(&content)?;
|
||||||
|
// Migrate old single server_url format to endpoints list.
|
||||||
|
if cfg.endpoints.is_empty() {
|
||||||
|
if let Some(url) = cfg.server_url.take() {
|
||||||
|
cfg.active_endpoint = url.clone();
|
||||||
|
cfg.endpoints.push(Endpoint { name: "Default".to_string(), url, private_key: None });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if cfg.active_endpoint.is_empty() {
|
||||||
|
if let Some(ep) = cfg.endpoints.first() {
|
||||||
|
cfg.active_endpoint = ep.url.clone();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Ok(cfg)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn create_with_endpoint(url: &str, name: &str) -> Result<Self> {
|
||||||
|
let path = config_path();
|
||||||
|
let config = Config {
|
||||||
|
server_url: None,
|
||||||
|
endpoints: vec![Endpoint::new(name.to_string(), url.to_string())],
|
||||||
|
active_endpoint: url.to_string(),
|
||||||
timeout_sec: 10,
|
timeout_sec: 10,
|
||||||
theme: default_theme(),
|
theme: default_theme(),
|
||||||
|
update_api: Some("https://git.vainend.com/api/v1/repos/admin/ostiary".to_string()),
|
||||||
};
|
};
|
||||||
fs::create_dir_all(config_path.parent().unwrap())?;
|
fs::create_dir_all(path.parent().unwrap())?;
|
||||||
fs::write(config_path, toml::to_string_pretty(&default)?)?;
|
fs::write(&path, config.to_toml())?;
|
||||||
return Ok(default);
|
Ok(config)
|
||||||
}
|
}
|
||||||
|
|
||||||
let content = fs::read_to_string(config_path)?;
|
pub fn save(&self) -> Result<()> {
|
||||||
Ok(toml::from_str(&content)?)
|
let path = config_path();
|
||||||
|
fs::create_dir_all(path.parent().unwrap())?;
|
||||||
|
fs::write(&path, self.to_toml())?;
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
fn to_toml(&self) -> String {
|
||||||
|
let mut s = format!(
|
||||||
|
"active_endpoint = \"{}\"\ntimeout_sec = {}\n",
|
||||||
|
escape_toml(&self.active_endpoint),
|
||||||
|
self.timeout_sec,
|
||||||
|
);
|
||||||
|
if let Some(api) = &self.update_api {
|
||||||
|
s.push_str(&format!("update_api = \"{}\"\n", escape_toml(api)));
|
||||||
|
}
|
||||||
|
s.push_str(&format!(
|
||||||
|
"\n[theme]\nselected_bg = \"{}\"\n",
|
||||||
|
escape_toml(&self.theme.selected_bg),
|
||||||
|
));
|
||||||
|
for ep in &self.endpoints {
|
||||||
|
s.push_str(&format!(
|
||||||
|
"\n[[endpoints]]\nname = \"{}\"\nurl = \"{}\"\n",
|
||||||
|
escape_toml(&ep.name),
|
||||||
|
escape_toml(&ep.url),
|
||||||
|
));
|
||||||
|
if let Some(key) = &ep.private_key {
|
||||||
|
s.push_str(&format!("private_key = \"{}\"\n", escape_toml(key)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
s
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn escape_toml(s: &str) -> String {
|
||||||
|
s.replace('\\', "\\\\").replace('"', "\\\"")
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ pub enum AppError {
|
|||||||
Child(String),
|
Child(String),
|
||||||
#[error("Protocol error: {0}")]
|
#[error("Protocol error: {0}")]
|
||||||
Protocol(String),
|
Protocol(String),
|
||||||
|
#[error("Access denied by server")]
|
||||||
|
AccessDenied,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Result<T> = std::result::Result<T, AppError>;
|
pub type Result<T> = std::result::Result<T, AppError>;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pub mod structured;
|
pub mod structured;
|
||||||
pub use structured::{StructuredCommand, MessageLevel};
|
pub use structured::{StructuredCommand, MessageLevel, FormFieldType};
|
||||||
|
|
||||||
// Здесь могут быть функции для download, http и т.д.
|
// Здесь могут быть функции для download, http и т.д.
|
||||||
|
|||||||
@@ -28,18 +28,39 @@ pub enum StructuredCommand {
|
|||||||
text: String,
|
text: String,
|
||||||
},
|
},
|
||||||
Progress {
|
Progress {
|
||||||
percent: u8,
|
/// Some(n) = deterministic bar (0-100).
|
||||||
|
/// None = indeterminate spinner (percent omitted from JSON).
|
||||||
|
percent: Option<u8>,
|
||||||
message: Option<String>,
|
message: Option<String>,
|
||||||
},
|
},
|
||||||
|
/// A list of checkboxes and radio buttons.
|
||||||
|
/// Response: space-separated IDs of all checked/selected fields.
|
||||||
|
Form {
|
||||||
|
prompt: String,
|
||||||
|
fields: Vec<FormField>,
|
||||||
|
},
|
||||||
/// Run an interactive program that needs the real terminal.
|
/// Run an interactive program that needs the real terminal.
|
||||||
/// The client suspends ratatui, inherits stdin/stdout/stderr, waits for
|
|
||||||
/// the process to exit, then restores the TUI.
|
|
||||||
/// The script receives the exit code as the response.
|
|
||||||
Exec {
|
Exec {
|
||||||
shell: String,
|
shell: String,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
|
pub enum FormFieldType {
|
||||||
|
Checkbox,
|
||||||
|
Radio,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct FormField {
|
||||||
|
pub id: String,
|
||||||
|
pub label: String,
|
||||||
|
pub field_type: FormFieldType,
|
||||||
|
pub default: bool,
|
||||||
|
/// Radio buttons with the same group are mutually exclusive.
|
||||||
|
pub group: Option<String>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct MenuOption {
|
pub struct MenuOption {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
@@ -199,10 +220,30 @@ fn parse_command(json_str: &str, cmd_tx: UnboundedSender<StructuredCommand>) ->
|
|||||||
StructuredCommand::Message { level, text }
|
StructuredCommand::Message { level, text }
|
||||||
}
|
}
|
||||||
"progress" => {
|
"progress" => {
|
||||||
let percent = v["percent"].as_u64().unwrap_or(0) as u8;
|
// percent absent or null → None (indeterminate spinner)
|
||||||
|
let percent = v["percent"].as_u64().map(|n| n.min(100) as u8);
|
||||||
let message = v["message"].as_str().map(String::from);
|
let message = v["message"].as_str().map(String::from);
|
||||||
StructuredCommand::Progress { percent, message }
|
StructuredCommand::Progress { percent, message }
|
||||||
}
|
}
|
||||||
|
"form" => {
|
||||||
|
let prompt = v["prompt"].as_str().unwrap_or("").to_string();
|
||||||
|
let fields = v["fields"].as_array()
|
||||||
|
.map(|arr| {
|
||||||
|
arr.iter().filter_map(|f| {
|
||||||
|
let id = f["id"].as_str()?.to_string();
|
||||||
|
let label = f["label"].as_str()?.to_string();
|
||||||
|
let field_type = match f["field_type"].as_str().unwrap_or("checkbox") {
|
||||||
|
"radio" => FormFieldType::Radio,
|
||||||
|
_ => FormFieldType::Checkbox,
|
||||||
|
};
|
||||||
|
let default = f["default"].as_bool().unwrap_or(false);
|
||||||
|
let group = f["group"].as_str().map(String::from);
|
||||||
|
Some(FormField { id, label, field_type, default, group })
|
||||||
|
}).collect()
|
||||||
|
})
|
||||||
|
.unwrap_or_default();
|
||||||
|
StructuredCommand::Form { prompt, fields }
|
||||||
|
}
|
||||||
"exec" => {
|
"exec" => {
|
||||||
let shell = v["shell"].as_str().unwrap_or("").to_string();
|
let shell = v["shell"].as_str().unwrap_or("").to_string();
|
||||||
StructuredCommand::Exec { shell }
|
StructuredCommand::Exec { shell }
|
||||||
|
|||||||
46
src/identity.rs
Normal file
46
src/identity.rs
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
use anyhow::{anyhow, Result};
|
||||||
|
use base64::{engine::general_purpose::URL_SAFE_NO_PAD as B64, Engine};
|
||||||
|
use ed25519_dalek::{Signer, SigningKey};
|
||||||
|
use rand::rngs::OsRng;
|
||||||
|
|
||||||
|
pub struct Identity {
|
||||||
|
key: SigningKey,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Identity {
|
||||||
|
pub fn generate() -> Self {
|
||||||
|
Self { key: SigningKey::generate(&mut OsRng) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn from_b64(s: &str) -> Result<Self> {
|
||||||
|
let bytes = B64.decode(s)?;
|
||||||
|
let arr: [u8; 32] = bytes.try_into().map_err(|_| anyhow!("invalid key length"))?;
|
||||||
|
Ok(Self { key: SigningKey::from_bytes(&arr) })
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn to_b64(&self) -> String {
|
||||||
|
B64.encode(self.key.to_bytes())
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn public_key_b64(&self) -> String {
|
||||||
|
B64.encode(self.key.verifying_key().to_bytes())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Signs `"METHOD\nPATH\nTIMESTAMP"` and returns base64url signature.
|
||||||
|
pub fn sign(&self, method: &str, path: &str, timestamp: u64) -> String {
|
||||||
|
let msg = format!("{}\n{}\n{}", method, path, timestamp);
|
||||||
|
B64.encode(self.key.sign(msg.as_bytes()).to_bytes())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn current_hostname() -> String {
|
||||||
|
let mut buf = vec![0u8; 256];
|
||||||
|
unsafe {
|
||||||
|
if libc::gethostname(buf.as_mut_ptr() as *mut libc::c_char, buf.len()) == 0 {
|
||||||
|
let len = buf.iter().position(|&b| b == 0).unwrap_or(buf.len());
|
||||||
|
String::from_utf8_lossy(&buf[..len]).into_owned()
|
||||||
|
} else {
|
||||||
|
"unknown".to_string()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
101
src/main.rs
101
src/main.rs
@@ -3,9 +3,12 @@ mod app;
|
|||||||
mod config;
|
mod config;
|
||||||
mod error;
|
mod error;
|
||||||
mod executor;
|
mod executor;
|
||||||
|
mod identity;
|
||||||
mod menu;
|
mod menu;
|
||||||
mod network;
|
mod network;
|
||||||
|
mod text_input;
|
||||||
mod ui;
|
mod ui;
|
||||||
|
mod updater;
|
||||||
|
|
||||||
use std::io;
|
use std::io;
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
@@ -19,7 +22,12 @@ use tokio::sync::mpsc;
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
let config = config::Config::load()?;
|
let config = if config::Config::exists() {
|
||||||
|
config::Config::load()?
|
||||||
|
} else {
|
||||||
|
let (url, name) = prompt_first_endpoint()?;
|
||||||
|
config::Config::create_with_endpoint(&url, &name)?
|
||||||
|
};
|
||||||
|
|
||||||
enable_raw_mode()?;
|
enable_raw_mode()?;
|
||||||
let mut stdout = io::stdout();
|
let mut stdout = io::stdout();
|
||||||
@@ -29,7 +37,26 @@ async fn main() -> Result<()> {
|
|||||||
|
|
||||||
let (event_tx, mut event_rx) = mpsc::unbounded_channel();
|
let (event_tx, mut event_rx) = mpsc::unbounded_channel();
|
||||||
let mut app = app::App::new(config, event_tx.clone());
|
let mut app = app::App::new(config, event_tx.clone());
|
||||||
|
|
||||||
|
// Detect failed update: if the previous run wrote an expected version but
|
||||||
|
// the actual version didn't change, the replacement didn't work.
|
||||||
|
// Show an error and skip the update check to break any infinite loop.
|
||||||
|
let update_ok = match updater::take_update_target() {
|
||||||
|
Some(expected) if expected != env!("CARGO_PKG_VERSION") => {
|
||||||
|
app.error = Some(format!(
|
||||||
|
"Обновление не применилось: ожидалась v{expected}, \
|
||||||
|
запущена v{}. Проверьте, что в релизе загружен правильный бинарник.",
|
||||||
|
env!("CARGO_PKG_VERSION")
|
||||||
|
));
|
||||||
|
false
|
||||||
|
}
|
||||||
|
_ => true,
|
||||||
|
};
|
||||||
|
|
||||||
app.load_menu().await;
|
app.load_menu().await;
|
||||||
|
if update_ok {
|
||||||
|
app.check_update();
|
||||||
|
}
|
||||||
|
|
||||||
let res = run_app(&mut terminal, &mut app, &mut event_rx).await;
|
let res = run_app(&mut terminal, &mut app, &mut event_rx).await;
|
||||||
|
|
||||||
@@ -71,6 +98,21 @@ async fn run_app(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for pending restart (after update applied) — before pending_exec.
|
||||||
|
if let Some(exe_path) = app.pending_restart.take() {
|
||||||
|
disable_raw_mode()?;
|
||||||
|
execute!(
|
||||||
|
terminal.backend_mut(),
|
||||||
|
LeaveAlternateScreen,
|
||||||
|
DisableMouseCapture
|
||||||
|
)?;
|
||||||
|
terminal.show_cursor()?;
|
||||||
|
#[cfg(unix)]
|
||||||
|
updater::exec_updated(&exe_path);
|
||||||
|
#[cfg(not(unix))]
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// After handling events, check if a script requested an exec.
|
// After handling events, check if a script requested an exec.
|
||||||
if let Some(exec) = app.pending_exec.take() {
|
if let Some(exec) = app.pending_exec.take() {
|
||||||
run_exec(terminal, exec).await?;
|
run_exec(terminal, exec).await?;
|
||||||
@@ -126,6 +168,63 @@ async fn run_exec(
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Runs before ratatui starts. Prompts for endpoint URL and name on first launch.
|
||||||
|
fn prompt_first_endpoint() -> Result<(String, String)> {
|
||||||
|
use std::io::{BufRead, BufReader, Write};
|
||||||
|
|
||||||
|
// Open /dev/tty read-only for keyboard input so the wizard works even when
|
||||||
|
// stdin is a pipe (e.g. `curl | bash`). Writing goes through stdout so we
|
||||||
|
// don't touch the terminal's write-side state before crossterm takes over.
|
||||||
|
let tty_in = std::fs::File::open("/dev/tty")
|
||||||
|
.map_err(|e| anyhow::anyhow!(
|
||||||
|
"Не удалось открыть терминал ({e}). Запустите ostiary напрямую."
|
||||||
|
))?;
|
||||||
|
let mut reader = BufReader::new(tty_in);
|
||||||
|
let mut out = std::io::stdout();
|
||||||
|
|
||||||
|
writeln!(out)?;
|
||||||
|
writeln!(out, " ╔══════════════════════════════════╗")?;
|
||||||
|
writeln!(out, " ║ Ostiary — первый запуск ║")?;
|
||||||
|
writeln!(out, " ╚══════════════════════════════════╝")?;
|
||||||
|
writeln!(out)?;
|
||||||
|
writeln!(out, " Конфиг будет сохранён в:")?;
|
||||||
|
writeln!(out, " {}", config::config_path().display())?;
|
||||||
|
writeln!(out)?;
|
||||||
|
|
||||||
|
let name = loop {
|
||||||
|
write!(out, " Название эндпоинта: ")?;
|
||||||
|
out.flush()?;
|
||||||
|
let mut buf = String::new();
|
||||||
|
if reader.read_line(&mut buf)? == 0 {
|
||||||
|
anyhow::bail!("Неожиданный конец ввода.");
|
||||||
|
}
|
||||||
|
let val = buf.trim().to_string();
|
||||||
|
if val.is_empty() {
|
||||||
|
writeln!(out, " Название не может быть пустым. Попробуйте ещё раз.\n")?;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break val;
|
||||||
|
};
|
||||||
|
|
||||||
|
let url = loop {
|
||||||
|
write!(out, " URL эндпоинта: ")?;
|
||||||
|
out.flush()?;
|
||||||
|
let mut buf = String::new();
|
||||||
|
if reader.read_line(&mut buf)? == 0 {
|
||||||
|
anyhow::bail!("Неожиданный конец ввода.");
|
||||||
|
}
|
||||||
|
let val = buf.trim().to_string();
|
||||||
|
if val.is_empty() {
|
||||||
|
writeln!(out, " URL не может быть пустым. Попробуйте ещё раз.\n")?;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break val;
|
||||||
|
};
|
||||||
|
|
||||||
|
writeln!(out)?;
|
||||||
|
Ok((url, name))
|
||||||
|
}
|
||||||
|
|
||||||
async fn read_crossterm_event() -> Result<Option<crossterm::event::Event>> {
|
async fn read_crossterm_event() -> Result<Option<crossterm::event::Event>> {
|
||||||
if crossterm::event::poll(std::time::Duration::from_millis(100))? {
|
if crossterm::event::poll(std::time::Duration::from_millis(100))? {
|
||||||
Ok(Some(crossterm::event::read()?))
|
Ok(Some(crossterm::event::read()?))
|
||||||
|
|||||||
143
src/network.rs
143
src/network.rs
@@ -1,29 +1,138 @@
|
|||||||
use crate::error::Result;
|
use crate::error::{AppError, Result};
|
||||||
|
use crate::identity::Identity;
|
||||||
use crate::menu::{MenuItem, MenuRoot};
|
use crate::menu::{MenuItem, MenuRoot};
|
||||||
use reqwest::Client;
|
use reqwest::Client;
|
||||||
use serde_path_to_error as path_to_error;
|
use serde_path_to_error as path_to_error;
|
||||||
|
|
||||||
pub async fn fetch_menu(server_url: &str, timeout_sec: u64) -> Result<MenuRoot> {
|
pub async fn fetch_menu(server_url: &str, timeout_sec: u64, identity: Option<&Identity>) -> Result<MenuRoot> {
|
||||||
let client = Client::builder()
|
let client = Client::builder()
|
||||||
.timeout(std::time::Duration::from_secs(timeout_sec))
|
.timeout(std::time::Duration::from_secs(timeout_sec))
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
let resp = client.get(server_url).send().await?;
|
let mut req = client.get(server_url);
|
||||||
let text = resp.text().await?;
|
|
||||||
|
|
||||||
let mut deserializer = serde_json::Deserializer::from_str(&text);
|
if let Some(id) = identity {
|
||||||
match path_to_error::deserialize(&mut deserializer) {
|
let timestamp = unix_now();
|
||||||
|
let path = url_path(server_url);
|
||||||
|
req = req
|
||||||
|
.header("X-Public-Key", id.public_key_b64())
|
||||||
|
.header("X-Timestamp", timestamp.to_string())
|
||||||
|
.header("X-Signature", id.sign("GET", &path, timestamp));
|
||||||
|
}
|
||||||
|
|
||||||
|
let resp = req.send().await?;
|
||||||
|
|
||||||
|
if resp.status() == reqwest::StatusCode::FORBIDDEN {
|
||||||
|
return Err(parse_access_denied(resp).await);
|
||||||
|
}
|
||||||
|
|
||||||
|
let text = resp.text().await?;
|
||||||
|
parse_menu_body(&text)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sends an enrollment request to `{server_url}/access-request`.
|
||||||
|
/// The server stores the public key + source IP for admin approval.
|
||||||
|
/// Returns a human-readable status string on success.
|
||||||
|
pub async fn request_access(server_url: &str, timeout_sec: u64, identity: &Identity) -> Result<String> {
|
||||||
|
let access_url = enrollment_url(server_url);
|
||||||
|
|
||||||
|
let client = Client::builder()
|
||||||
|
.timeout(std::time::Duration::from_secs(timeout_sec))
|
||||||
|
.build()?;
|
||||||
|
|
||||||
|
let resp = client
|
||||||
|
.post(&access_url)
|
||||||
|
.json(&serde_json::json!({
|
||||||
|
"public_key": identity.public_key_b64(),
|
||||||
|
"hostname": crate::identity::current_hostname(),
|
||||||
|
}))
|
||||||
|
.send()
|
||||||
|
.await?;
|
||||||
|
|
||||||
|
let status = resp.status();
|
||||||
|
let body = resp.text().await.unwrap_or_default();
|
||||||
|
|
||||||
|
let json_status = serde_json::from_str::<serde_json::Value>(&body)
|
||||||
|
.ok()
|
||||||
|
.and_then(|v| v["status"].as_str().map(|s| s.to_string()));
|
||||||
|
|
||||||
|
if status == reqwest::StatusCode::FORBIDDEN {
|
||||||
|
let msg = match json_status.as_deref() {
|
||||||
|
Some("banned") => "Ваш IP заблокирован администратором.".to_string(),
|
||||||
|
_ => format!("Сервер вернул {}: {}", status, body),
|
||||||
|
};
|
||||||
|
return Ok(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
if !status.is_success() {
|
||||||
|
return Err(AppError::Config(format!("Сервер вернул {}: {}", status, body)));
|
||||||
|
}
|
||||||
|
|
||||||
|
let msg = match json_status.as_deref() {
|
||||||
|
Some("pending") => "Запрос отправлен. Ожидайте одобрения администратора.".to_string(),
|
||||||
|
Some("already_pending") => "Запрос уже был отправлен ранее. Ожидайте одобрения.".to_string(),
|
||||||
|
Some("already_authorized") => "Ключ уже авторизован. Нажмите R для обновления меню.".to_string(),
|
||||||
|
_ => format!("Ответ сервера: {}", body),
|
||||||
|
};
|
||||||
|
Ok(msg)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ── Helpers ──────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
fn unix_now() -> u64 {
|
||||||
|
std::time::SystemTime::now()
|
||||||
|
.duration_since(std::time::UNIX_EPOCH)
|
||||||
|
.unwrap_or_default()
|
||||||
|
.as_secs()
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Builds the enrollment URL: `access-request.php` in the same directory as the menu URL.
|
||||||
|
/// `https://host/api/menu/index.php` → `https://host/api/menu/access-request.php`
|
||||||
|
/// `https://host/api/menu/` → `https://host/api/menu/access-request.php`
|
||||||
|
fn enrollment_url(server_url: &str) -> String {
|
||||||
|
reqwest::Url::parse(server_url)
|
||||||
|
.map(|mut u| {
|
||||||
|
let path = u.path().to_string();
|
||||||
|
let trimmed = path.trim_end_matches('/');
|
||||||
|
// If the last path segment looks like a file (contains '.'), use its parent dir.
|
||||||
|
let dir = match trimmed.rfind('/') {
|
||||||
|
Some(pos) if trimmed[pos + 1..].contains('.') => &trimmed[..pos],
|
||||||
|
_ => trimmed,
|
||||||
|
};
|
||||||
|
u.set_path(&format!("{}/access-request.php", dir));
|
||||||
|
u.set_query(None);
|
||||||
|
u.to_string()
|
||||||
|
})
|
||||||
|
.unwrap_or_else(|_| format!("{}/access-request.php", server_url.trim_end_matches('/')))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Extracts just the path component from a URL string.
|
||||||
|
fn url_path(url: &str) -> String {
|
||||||
|
reqwest::Url::parse(url)
|
||||||
|
.map(|u| u.path().to_string())
|
||||||
|
.unwrap_or_else(|_| "/".to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns `AppError::AccessDenied` when the 403 body contains `{"error":"access_denied"}`,
|
||||||
|
/// otherwise a generic config error.
|
||||||
|
async fn parse_access_denied(resp: reqwest::Response) -> AppError {
|
||||||
|
#[derive(serde::Deserialize)]
|
||||||
|
struct ErrBody { error: String }
|
||||||
|
if let Ok(body) = resp.json::<ErrBody>().await {
|
||||||
|
if body.error == "access_denied" {
|
||||||
|
return AppError::AccessDenied;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AppError::Config("Сервер вернул 403 Forbidden".to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
fn parse_menu_body(text: &str) -> Result<MenuRoot> {
|
||||||
|
let mut de = serde_json::Deserializer::from_str(text);
|
||||||
|
match path_to_error::deserialize(&mut de) {
|
||||||
Ok(root) => Ok(root),
|
Ok(root) => Ok(root),
|
||||||
Err(e) => {
|
Err(e) => match serde_json::from_str::<Vec<MenuItem>>(text) {
|
||||||
// Если не удалось распарсить как объект с полем "menu",
|
Ok(items) => Ok(MenuRoot { version: "1.0".to_string(), menu: items }),
|
||||||
// пробуем интерпретировать ответ как прямой массив пунктов меню.
|
Err(_) => Err(AppError::Json(e.into_inner())),
|
||||||
match serde_json::from_str::<Vec<MenuItem>>(&text) {
|
},
|
||||||
Ok(items) => Ok(MenuRoot {
|
|
||||||
version: "1.0".to_string(),
|
|
||||||
menu: items,
|
|
||||||
}),
|
|
||||||
Err(_) => Err(crate::error::AppError::Json(e.into_inner())),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.08s
|
|
||||||
@@ -1,239 +0,0 @@
|
|||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","proc-macro"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/proc-macro2-e120ad67e7fe1db8/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106","linked_libs":[],"linked_paths":[],"cfgs":["wrap_proc_macro","proc_macro_span_location","proc_macro_span_file"],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/proc-macro2-913ca31eeed64f0b/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.24","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-ident-1.0.24/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode_ident","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-ident-1.0.24/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_ident-122d923a082262ca.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_ident-122d923a082262ca.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.45/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.45/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","proc-macro"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/quote-35043d4d5b4446ab/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.183/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.183/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/libc-f5ee3ea939ddb0c1/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#cfg-if@1.0.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cfg-if-1.0.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"cfg_if","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cfg-if-1.0.4/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcfg_if-eed30869daa6a03e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#smallvec@1.15.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/smallvec-1.15.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"smallvec","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/smallvec-1.15.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["const_generics","const_new"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsmallvec-2c0b0ecccaf193ea.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#itoa@1.0.17","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/itoa-1.0.17/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"itoa","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/itoa-1.0.17/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libitoa-b4706e056a146901.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#bitflags@2.11.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.11.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"bitflags","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.11.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libbitflags-3167ba57ef9ec9ce.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#parking_lot_core@0.9.12","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot_core-0.9.12/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot_core-0.9.12/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/parking_lot_core-753eb33bc5f912c4/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#equivalent@1.0.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/equivalent-1.0.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"equivalent","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/equivalent-1.0.2/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libequivalent-a28faa80e44c431e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#allocator-api2@0.2.21","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/allocator-api2-0.2.21/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"allocator_api2","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/allocator-api2-0.2.21/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liballocator_api2-d39ca3ec38349ee3.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#foldhash@0.2.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/foldhash-0.2.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"foldhash","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/foldhash-0.2.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfoldhash-a6ed51ce1126f727.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/quote-ac0e94b5558622ed/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.106","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"proc_macro2","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/proc-macro2-1.0.106/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","proc-macro"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libproc_macro2-e7f548cc64fe319f.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libproc_macro2-e7f548cc64fe319f.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183","linked_libs":[],"linked_paths":[],"cfgs":["freebsd12"],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/libc-3194908faa4d976a/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#hashbrown@0.16.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hashbrown-0.16.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"hashbrown","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hashbrown-0.16.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["allocator-api2","default","default-hasher","equivalent","inline-more","raw-entry"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhashbrown-860f670f29087845.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#parking_lot_core@0.9.12","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/parking_lot_core-9e7ef84878f08830/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#log@0.4.29","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/log-0.4.29/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"log","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/log-0.4.29/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liblog-d11380b34016a3e7.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#pin-project-lite@0.2.17","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pin-project-lite-0.2.17/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"pin_project_lite","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pin-project-lite-0.2.17/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libpin_project_lite-90335a9c7138bd69.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#scopeguard@1.2.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/scopeguard-1.2.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"scopeguard","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/scopeguard-1.2.0/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libscopeguard-5ebacb81608016ec.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#stable_deref_trait@1.2.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stable_deref_trait-1.2.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"stable_deref_trait","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/stable_deref_trait-1.2.1/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libstable_deref_trait-69db5b374e509273.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-core@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-core-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-core-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_core-ea48297821933c39.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#bytes@1.11.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bytes-1.11.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"bytes","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bytes-1.11.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libbytes-8569d2878c2d2684.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-sink@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-sink-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_sink","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-sink-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_sink-38966f85780c6434.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#quote@1.0.45","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.45/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"quote","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quote-1.0.45/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","proc-macro"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libquote-f7f1ef0f1b6a9d68.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libquote-f7f1ef0f1b6a9d68.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#libc@0.2.183","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.183/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"libc","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.183/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liblibc-c7cb9a18f2fb75de.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#lock_api@0.4.14","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lock_api-0.4.14/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"lock_api","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lock_api-0.4.14/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["atomic_usize","default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liblock_api-bbf09bff5a42552d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#core-foundation-sys@0.8.7","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-sys-0.8.7/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"core_foundation_sys","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-sys-0.8.7/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","link"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcore_foundation_sys-b58d4b6cd84d5e88.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","result","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/serde_core-b0753111d424f06e/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#slab@0.4.12","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/slab-0.4.12/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"slab","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/slab-0.4.12/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libslab-f2c43c9bab461865.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/once_cell-1.21.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"once_cell","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/once_cell-1.21.4/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","race","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libonce_cell-894824bd03fb1be8.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustix@1.1.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.4/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.4/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","fs","std","stdio","termios"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/rustix-d55b0e31f82f9c7d/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-channel@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-channel-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_channel","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-channel-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","futures-sink","sink","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_channel-4a828e845b289a64.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#memchr@2.8.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/memchr-2.8.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"memchr","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/memchr-2.8.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libmemchr-f298bfdb5d397a31.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustversion@1.0.22","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustversion-1.0.22/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustversion-1.0.22/build/build.rs","edition":"2018","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/rustversion-cf3eaf2abd86a894/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#http@1.4.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/http-1.4.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"http","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/http-1.4.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhttp-eb4a9f8369999e8e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#syn@2.0.117","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.117/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"syn","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/syn-2.0.117/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["clone-impls","default","derive","extra-traits","fold","full","parsing","printing","proc-macro","visit"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsyn-78da717b6f7eb2ed.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libsyn-78da717b6f7eb2ed.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#errno@0.3.14","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/errno-0.3.14/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"errno","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/errno-0.3.14/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liberrno-b5220538070da7cd.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#parking_lot_core@0.9.12","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot_core-0.9.12/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"parking_lot_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot_core-0.9.12/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libparking_lot_core-9b33988b938a481f.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#mio@1.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mio-1.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"mio","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mio-1.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","log","net","os-ext","os-poll"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libmio-72036cc1e2b59e51.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/serde_core-4bdf6487753557d2/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#socket2@0.6.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"socket2","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/socket2-0.6.3/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["all"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsocket2-0964e4de48acedc8.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustix@1.1.4","linked_libs":[],"linked_paths":[],"cfgs":["static_assertions","lower_upper_exp_for_non_zero","rustc_diagnostics","libc","apple","bsd"],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/rustix-5254f0fb6c8f0d45/out"}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustversion@1.0.22","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/rustversion-64e1fcc4a66d394c/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-io@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_io","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-io-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_io-496c95ea47da3d9c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#strsim@0.11.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/strsim-0.11.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"strsim","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/strsim-0.11.1/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libstrsim-487aeff82dd13cf0.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libstrsim-487aeff82dd13cf0.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.228/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.228/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","derive","serde_derive","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/serde-e3f9c65595ada2ff/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-task@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-task-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_task","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-task-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_task-4ddd2b76cb07ae45.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#synstructure@0.13.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/synstructure-0.13.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"synstructure","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/synstructure-0.13.2/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","proc-macro"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsynstructure-a1c26115ee265ced.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libsynstructure-a1c26115ee265ced.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#signal-hook-registry@1.4.8","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-registry-1.4.8/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"signal_hook_registry","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-registry-1.4.8/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsignal_hook_registry-0b3a871107a9fc27.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#parking_lot@0.12.5","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot-0.12.5/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"parking_lot","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/parking_lot-0.12.5/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libparking_lot-6ed9ad954e5ac141.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zerovec-derive@0.11.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-derive-0.11.2/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"zerovec_derive","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-derive-0.11.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzerovec_derive-c9eba7cb37dfce9a.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#displaydoc@0.2.5","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/displaydoc-0.2.5/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"displaydoc","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/displaydoc-0.2.5/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdisplaydoc-2d1358c6033f9586.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tokio-macros@2.6.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-macros-2.6.1/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"tokio_macros","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-macros-2.6.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtokio_macros-b65725acab643510.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_core@1.0.228","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"serde_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_core-1.0.228/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","result","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde_core-d449c5cde8501661.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-macro@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-macro-0.3.32/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"futures_macro","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-macro-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_macro-1a2319594fcb5856.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustix@1.1.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"rustix","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.4/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","fs","std","stdio","termios"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/librustix-3e94e90340f5c045.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#writeable@0.6.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/writeable-0.6.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"writeable","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/writeable-0.6.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libwriteable-9c04caa7a1d660b1.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-2.0.18/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-2.0.18/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/thiserror-b0244309b6e8ac2a/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ryu@1.0.23","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ryu-1.0.23/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ryu","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ryu-1.0.23/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libryu-8140ba8cd2919c44.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zerofrom-derive@0.1.6","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerofrom-derive-0.1.6/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"zerofrom_derive","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerofrom-derive-0.1.6/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzerofrom_derive-5f763561e751aee1.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#yoke-derive@0.8.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/yoke-derive-0.8.1/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"yoke_derive","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/yoke-derive-0.8.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libyoke_derive-45c96530ce46525a.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tokio@1.50.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tokio","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.50.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["bytes","default","fs","full","io-std","io-util","libc","macros","mio","net","parking_lot","process","rt","rt-multi-thread","signal","signal-hook-registry","socket2","sync","time","tokio-macros"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtokio-6f0b271df6b09eb6.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ident_case@1.0.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ident_case-1.0.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ident_case","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ident_case-1.0.1/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libident_case-5922b307af9ea1c1.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libident_case-5922b307af9ea1c1.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#litemap@0.8.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/litemap-0.8.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"litemap","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/litemap-0.8.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liblitemap-55809461120a4294.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/thiserror-3fceac02acdd556d/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-util@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_util","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","async-await","async-await-macro","channel","futures-channel","futures-io","futures-macro","futures-sink","io","memchr","sink","slab","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_util-36d8d0b8eca4dd4c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror-impl@2.0.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-impl-2.0.18/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"thiserror_impl","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-impl-2.0.18/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libthiserror_impl-6dd222b18e338a54.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_derive@1.0.228","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_derive-1.0.228/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"serde_derive","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_derive-1.0.228/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde_derive-be86e2d305c9b749.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228","linked_libs":[],"linked_paths":[],"cfgs":["if_docsrs_then_no_serde_core"],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/serde-2beb76a2a4a45d11/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustversion@1.0.22","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustversion-1.0.22/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"rustversion","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustversion-1.0.22/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/librustversion-064bf7827f8c4a8d.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#indexmap@2.13.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indexmap-2.13.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"indexmap","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indexmap-2.13.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libindexmap-04df6522187a20d0.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zerofrom@0.1.6","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerofrom-0.1.6/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"zerofrom","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerofrom-0.1.6/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["derive"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzerofrom-4da7cfda1c0b4348.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#darling_core@0.23.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/darling_core-0.23.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"darling_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/darling_core-0.23.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["strsim","suggestions"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdarling_core-a78d1e75339069fe.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libdarling_core-a78d1e75339069fe.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/heck-0.5.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"heck","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/heck-0.5.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libheck-99fa9ad8066eb37c.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libheck-99fa9ad8066eb37c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.2/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.2/build.rs","edition":"2024","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/getrandom-692e9cf8f9b8b84b/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_properties_data@2.1.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties_data-2.1.2/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties_data-2.1.2/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/icu_properties_data-c859392eec28501c/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#either@1.15.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/either-1.15.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"either","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/either-1.15.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std","use_std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libeither-f215abcbb0658c55.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_normalizer_data@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_normalizer_data-2.1.1/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_normalizer_data-2.1.1/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/icu_normalizer_data-bb95eba5e9e91f8f/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#castaway@0.2.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/castaway-0.2.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"castaway","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/castaway-0.2.4/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcastaway-b29d31bdf35a9029.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror@2.0.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-2.0.18/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"thiserror","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-2.0.18/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libthiserror-97074307ac5a1315.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde@1.0.228","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.228/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"serde","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.228/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","derive","serde_derive","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde-31b1cacb2da115b1.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#http-body@1.0.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/http-body-1.0.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"http_body","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/http-body-1.0.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhttp_body-b030b6edd41b69ed.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tracing-core@0.1.36","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.36/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tracing_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.36/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["once_cell","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtracing_core-1a0db7244484a37a.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#yoke@0.8.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/yoke-0.8.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"yoke","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/yoke-0.8.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["derive","zerofrom"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libyoke-02e455039675d504.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/getrandom-e6caf4bc76cd301e/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#itertools@0.14.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/itertools-0.14.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"itertools","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/itertools-0.14.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["use_alloc","use_std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libitertools-2ebabab2350b917a.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_normalizer_data@2.1.1","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/icu_normalizer_data-481cb15ff754b579/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#strum_macros@0.27.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/strum_macros-0.27.2/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"strum_macros","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/strum_macros-0.27.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libstrum_macros-da51e23f51aa5d4c.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#darling_macro@0.23.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/darling_macro-0.23.0/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"darling_macro","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/darling_macro-0.23.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdarling_macro-121bb2587324daa3.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_properties_data@2.1.2","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/icu_properties_data-0bba8c7835b6edac/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#signal-hook@0.3.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-0.3.18/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-0.3.18/build.rs","edition":"2018","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["channel","default","iterator"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/signal-hook-cf62ac1a808d205b/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#unicode-width@0.2.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-width-0.2.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode_width","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-width-0.2.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["cjk","default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_width-65b8d04a80b25aca.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#unicode-segmentation@1.12.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-segmentation-1.12.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode_segmentation","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-segmentation-1.12.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_segmentation-1d4de529bff07bb6.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#percent-encoding@2.3.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/percent-encoding-2.3.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"percent_encoding","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/percent-encoding-2.3.2/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libpercent_encoding-0c5d2c6f010e1b7d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#httparse@1.10.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/httparse-1.10.1/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/httparse-1.10.1/build.rs","edition":"2018","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/httparse-96aac2f1e6d62650/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zerovec@0.11.5","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-0.11.5/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"zerovec","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerovec-0.11.5/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["derive","yoke"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzerovec-b8dd42ba36f446a4.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zerotrie@0.2.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerotrie-0.2.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"zerotrie","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zerotrie-0.2.3/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["yoke","zerofrom"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzerotrie-2a3ee8999d0ff3ae.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#static_assertions@1.1.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/static_assertions-1.1.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"static_assertions","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/static_assertions-1.1.0/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libstatic_assertions-f3f21347abd26009.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#instability@0.3.11","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/instability-0.3.11/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/instability-0.3.11/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/instability-63e47ee98c23c2e9/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#unicode-segmentation@1.12.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-segmentation-1.12.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode_segmentation","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-segmentation-1.12.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_segmentation-c3c32ba5f294e279.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_segmentation-c3c32ba5f294e279.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#indoc@2.0.7","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indoc-2.0.7/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"indoc","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indoc-2.0.7/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libindoc-ae413d5d8e950d57.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#system-configuration-sys@0.6.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/system-configuration-sys-0.6.0/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/system-configuration-sys-0.6.0/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/system-configuration-sys-5d76e8628b697ae2/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#unicode-truncate@2.0.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-truncate-2.0.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode_truncate","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unicode-truncate-2.0.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libunicode_truncate-31a9f82695021793.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_normalizer_data@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_normalizer_data-2.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_normalizer_data","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_normalizer_data-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_normalizer_data-0254a55b90bc4928.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#signal-hook@0.3.18","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/signal-hook-bf48b3d50f2414f5/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#getrandom@0.4.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"getrandom","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.4.2/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libgetrandom-e7db038915b51532.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#darling@0.23.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/darling-0.23.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"darling","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/darling-0.23.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","suggestions"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdarling-bf63801489c15289.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libdarling-bf63801489c15289.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tinystr@0.8.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tinystr-0.8.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tinystr","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tinystr-0.8.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["zerovec"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtinystr-24f584731d372f31.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#potential_utf@0.1.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/potential_utf-0.1.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"potential_utf","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/potential_utf-0.1.4/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["zerovec"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libpotential_utf-5606a729cf304401.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#system-configuration-sys@0.6.0","linked_libs":["framework=SystemConfiguration"],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/system-configuration-sys-f9b109be807945a2/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#compact_str@0.9.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compact_str-0.9.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"compact_str","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/compact_str-0.9.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcompact_str-152226a8149f565e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#convert_case@0.10.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/convert_case-0.10.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"convert_case","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/convert_case-0.10.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libconvert_case-0378f8e1745c15e1.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/libconvert_case-0378f8e1745c15e1.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#instability@0.3.11","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/instability-82553c24bf2c12b8/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_properties_data@2.1.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties_data-2.1.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_properties_data","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties_data-2.1.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_properties_data-6e7712c3808d068d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#httparse@1.10.1","linked_libs":[],"linked_paths":[],"cfgs":["httparse_simd_neon_intrinsics","httparse_simd"],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/httparse-839e23698d971916/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#strum@0.27.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/strum-0.27.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"strum","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/strum-0.27.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["derive","std","strum_macros"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libstrum-ff12d0940a4fdb27.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#kasuari@0.4.11","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kasuari-0.4.11/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"kasuari","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kasuari-0.4.11/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libkasuari-73239aa7c89f3714.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tracing@0.1.44","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.44/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tracing","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-0.1.44/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtracing-3128651a37f5712a.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tokio-util@0.7.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-util-0.7.18/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tokio_util","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-util-0.7.18/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["codec","default","io"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtokio_util-0142d6941d1881c4.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_locale_core@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_locale_core-2.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_locale_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_locale_core-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["zerovec"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_locale_core-ea02abba68aae39d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_collections@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_collections-2.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_collections","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_collections-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_collections-c65f0217b4affa57.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#core-foundation@0.10.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-0.10.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"core_foundation","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-0.10.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","link"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcore_foundation-f5b33ef795c6fce5.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#security-framework-sys@2.17.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/security-framework-sys-2.17.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"security_framework_sys","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/security-framework-sys-2.17.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["OSX_10_13","default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsecurity_framework_sys-da81c360c3b6d110.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#lru@0.16.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lru-0.16.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"lru","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/lru-0.16.3/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","hashbrown"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liblru-8fb9523de4757397.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#try-lock@0.2.5","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/try-lock-0.2.5/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"try_lock","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/try-lock-0.2.5/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtry_lock-4f985d854b2af6be.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#fnv@1.0.7","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/fnv-1.0.7/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"fnv","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/fnv-1.0.7/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfnv-0537d2c1a8f6eb12.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#powerfmt@0.2.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"powerfmt","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/powerfmt-0.2.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libpowerfmt-137b4e755e8b9543.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tower-service@0.3.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-service-0.3.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tower_service","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-service-0.3.3/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtower_service-4a60eee298fbe75b.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#native-tls@0.2.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/native-tls-0.2.18/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/native-tls-0.2.18/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/native-tls-4d0a75f7d448fc58/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#fastrand@2.3.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/fastrand-2.3.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"fastrand","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/fastrand-2.3.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfastrand-31e8b3f7ae7829dc.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#atomic-waker@1.1.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/atomic-waker-1.1.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"atomic_waker","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/atomic-waker-1.1.2/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libatomic_waker-2ce81777cb728a88.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_provider@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_provider-2.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_provider","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_provider-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["baked"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_provider-dfc67e31f0046d36.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#native-tls@0.2.18","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/native-tls-f9497e50439f411e/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tempfile@3.27.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tempfile-3.27.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tempfile","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tempfile-3.27.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","getrandom"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtempfile-ddeeda6366fece10.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#security-framework@3.7.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/security-framework-3.7.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"security_framework","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/security-framework-3.7.0/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["OSX_10_14","alpn","default","session-tickets"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsecurity_framework-d4832a4c5251dac2.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#h2@0.4.13","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/h2-0.4.13/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"h2","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/h2-0.4.13/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libh2-44b4fbb5444e54d9.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ratatui-core@0.1.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-core-0.1.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ratatui_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-core-0.1.0/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","layout-cache","std","underline-color"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libratatui_core-0044930fb9c2ac0f.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#want@0.3.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/want-0.3.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"want","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/want-0.3.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libwant-0b9bbb44a2ec9d8b.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#deranged@0.5.8","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deranged-0.5.8/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"deranged","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/deranged-0.5.8/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","powerfmt"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libderanged-e4e98dc69b84bd9e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#derive_more-impl@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/derive_more-impl-2.1.1/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"derive_more_impl","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/derive_more-impl-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","is_variant"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libderive_more_impl-ac2bd77c64da4ac4.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#system-configuration-sys@0.6.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/system-configuration-sys-0.6.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"system_configuration_sys","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/system-configuration-sys-0.6.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsystem_configuration_sys-dfd0cdfeab88e89a.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#instability@0.3.11","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/instability-0.3.11/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"instability","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/instability-0.3.11/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libinstability-ea91ed82477afc14.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#httparse@1.10.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/httparse-1.10.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"httparse","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/httparse-1.10.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhttparse-e6e485a263eb8453.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_normalizer@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_normalizer-2.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_normalizer","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_normalizer-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["compiled_data"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_normalizer-e040f8cfd5b10f33.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#icu_properties@2.1.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties-2.1.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"icu_properties","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/icu_properties-2.1.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["compiled_data"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libicu_properties-361d22d65e14ad7b.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#signal-hook@0.3.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-0.3.18/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"signal_hook","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-0.3.18/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["channel","default","iterator"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsignal_hook-772854815183b884.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#core-foundation@0.9.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-0.9.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"core_foundation","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/core-foundation-0.9.4/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","link"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcore_foundation-132092672ce4b94e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#num_threads@0.1.7","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num_threads-0.1.7/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"num_threads","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num_threads-0.1.7/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libnum_threads-9cdec82e837c2635.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#litrs@1.0.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/litrs-1.0.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"litrs","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/litrs-1.0.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liblitrs-6ffe67d32198d2e0.rlib","/Users/pc/Projects/Ratatui/target/debug/deps/liblitrs-6ffe67d32198d2e0.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#num-conv@0.2.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-conv-0.2.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"num_conv","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/num-conv-0.2.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libnum_conv-5c9c27c6f61d60df.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zmij@1.0.21","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zmij-1.0.21/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zmij-1.0.21/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/zmij-756d5f2ee4732c75/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#time-core@0.1.8","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/time-core-0.1.8/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"time_core","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/time-core-0.1.8/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtime_core-029216ca68d6ec26.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#pin-utils@0.1.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pin-utils-0.1.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"pin_utils","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pin-utils-0.1.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libpin_utils-193c31fffae368ec.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#native-tls@0.2.18","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/native-tls-0.2.18/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"native_tls","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/native-tls-0.2.18/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libnative_tls-200b97ce644ce81a.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#derive_more@2.1.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/derive_more-2.1.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"derive_more","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/derive_more-2.1.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","is_variant","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libderive_more-dae1edadabeaf199.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#signal-hook-mio@0.2.5","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-mio-0.2.5/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"signal_hook_mio","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/signal-hook-mio-0.2.5/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["mio-1_0","support-v1_0"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsignal_hook_mio-5e991a262966af56.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#zmij@1.0.21","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/zmij-0c00a8e263317524/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#hyper@1.8.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-1.8.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"hyper","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-1.8.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["client","default","http1","http2"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhyper-62f4ff89757902f5.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#system-configuration@0.7.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/system-configuration-0.7.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"system_configuration","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/system-configuration-0.7.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsystem_configuration-89382bed125ffff7.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#time@0.3.47","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/time-0.3.47/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"time","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/time-0.3.47/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","local-offset","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtime-2ae42a0b27ab241c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#document-features@0.2.12","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/document-features-0.2.12/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"document_features","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/document-features-0.2.12/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdocument_features-0f2a227204fd7a71.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#idna_adapter@1.2.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/idna_adapter-1.2.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"idna_adapter","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/idna_adapter-1.2.1/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["compiled_data"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libidna_adapter-eb855d4446b519c9.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#form_urlencoded@1.2.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/form_urlencoded-1.2.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"form_urlencoded","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/form_urlencoded-1.2.2/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libform_urlencoded-d2229b62f38fcb2c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#sync_wrapper@1.0.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sync_wrapper-1.0.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"sync_wrapper","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sync_wrapper-1.0.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["futures","futures-core"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libsync_wrapper-2a0b6afe7df42182.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#line-clipping@0.3.5","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/line-clipping-0.3.5/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"line_clipping","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/line-clipping-0.3.5/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libline_clipping-5d88180ed3d7e7f6.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#utf8_iter@1.0.4","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/utf8_iter-1.0.4/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"utf8_iter","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/utf8_iter-1.0.4/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libutf8_iter-9b322050c8e5831b.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#base64@0.22.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/base64-0.22.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"base64","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/base64-0.22.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libbase64-c78aae63be61ba3a.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tower-layer@0.3.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tower_layer","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-layer-0.3.3/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtower_layer-00ce058ba7161670.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.149/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.149/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/serde_json-8acd51b9d068b844/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ipnet@2.12.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ipnet-2.12.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ipnet","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ipnet-2.12.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libipnet-d4a855ffc2aca3d2.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#crossterm@0.29.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"crossterm","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crossterm-0.29.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["bracketed-paste","default","derive-more","events","windows"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libcrossterm-db48d2e5a257463b.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ratatui-widgets@0.3.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-widgets-0.3.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ratatui_widgets","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-widgets-0.3.0/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["all-widgets","calendar","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libratatui_widgets-f211dffaaec1f376.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zmij@1.0.21","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zmij-1.0.21/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"zmij","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zmij-1.0.21/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzmij-5ebd53ef9124e758.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#idna@1.1.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/idna-1.1.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"idna","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/idna-1.1.0/src/lib.rs","edition":"2018","doc":true,"doctest":false,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","compiled_data","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libidna-cfbca598ed27af32.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tokio-native-tls@0.3.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-native-tls-0.3.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tokio_native_tls","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-native-tls-0.3.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtokio_native_tls-133dfbf33c1b5a54.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#http-body-util@0.1.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/http-body-util-0.1.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"http_body_util","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/http-body-util-0.1.3/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhttp_body_util-7bacd188eb3b15ba.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_spanned@0.6.9","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_spanned-0.6.9/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"serde_spanned","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_spanned-0.6.9/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["serde"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde_spanned-d9d480c6e212d5ba.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#toml_datetime@0.6.11","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml_datetime-0.6.11/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"toml_datetime","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml_datetime-0.6.11/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["serde"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtoml_datetime-ae4c3bfa2b54caac.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#winnow@0.7.15","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winnow-0.7.15/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"winnow","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winnow-0.7.15/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libwinnow-2583fd2e1f2d8b0c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#hyper-util@0.1.20","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-util-0.1.20/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"hyper_util","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-util-0.1.20/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["client","client-legacy","client-proxy","client-proxy-system","default","http1","http2","tokio"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhyper_util-79a9aee295b0adf9.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tower@0.5.3","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-0.5.3/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tower","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-0.5.3/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["futures-core","futures-util","pin-project-lite","retry","sync_wrapper","timeout","tokio","util"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtower-bc93357586515b26.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149","linked_libs":[],"linked_paths":[],"cfgs":["fast_arithmetic=\"64\""],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/serde_json-e916d692b769d808/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.102","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.102/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.102/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/anyhow-24ec003b790501cc/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#zeroize@1.8.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zeroize-1.8.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"zeroize","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/zeroize-1.8.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libzeroize-3032c9f30e41b51c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#iri-string@0.7.10","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iri-string-0.7.10/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"iri_string","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iri-string-0.7.10/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libiri_string-db226e9c1b9bce3d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror@1.0.69","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-1.0.69/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-1.0.69/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/build/thiserror-a76c80ec0f1e0fcb/build-script-build"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#toml_write@0.1.2","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml_write-0.1.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"toml_write","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml_write-0.1.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtoml_write-1e00661563c6e9bc.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#option-ext@0.2.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/option-ext-0.2.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"option_ext","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/option-ext-0.2.0/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liboption_ext-db021f8d88fe61c0.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ratatui-macros@0.7.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-macros-0.7.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ratatui_macros","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-macros-0.7.0/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libratatui_macros-19257113f42d6685.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ratatui-crossterm@0.1.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-crossterm-0.1.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ratatui_crossterm","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-crossterm-0.1.0/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["crossterm_0_29","default","underline-color"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libratatui_crossterm-455a86d8cfb85a5d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#url@2.5.8","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/url-2.5.8/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"url","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/url-2.5.8/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/liburl-9175f412b562950c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#rustls-pki-types@1.14.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-pki-types-1.14.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"rustls_pki_types","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustls-pki-types-1.14.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/librustls_pki_types-2a0085f96b63c70d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#dirs-sys@0.4.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dirs-sys-0.4.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"dirs_sys","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dirs-sys-0.4.1/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdirs_sys-181ff09c89c08c9d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror@1.0.69","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/thiserror-90e1d99a1b4d7886/out"}
|
|
||||||
{"reason":"build-script-executed","package_id":"registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.102","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/pc/Projects/Ratatui/target/debug/build/anyhow-40fe6c014f4e8bb6/out"}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#tower-http@0.6.8","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"tower_http","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tower-http-0.6.8/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["follow-redirect","futures-util","iri-string","tower"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtower_http-6bc325239183f8cd.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#toml_edit@0.22.27","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml_edit-0.22.27/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"toml_edit","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml_edit-0.22.27/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["display","parse","serde"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtoml_edit-5ea0258d8cec3e2c.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_json@1.0.149","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.149/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"serde_json","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.149/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde_json-0a24845a14e85e1f.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#hyper-tls@0.6.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-tls-0.6.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"hyper_tls","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-tls-0.6.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libhyper_tls-ecb22e0bf688b00e.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_urlencoded@0.7.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_urlencoded-0.7.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"serde_urlencoded","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_urlencoded-0.7.1/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":false},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde_urlencoded-7eac4137cd604fc5.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures-executor@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-executor-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures_executor","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-executor-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures_executor-984e36c287fa04e1.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror-impl@1.0.69","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-impl-1.0.69/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"thiserror_impl","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-impl-1.0.69/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":0,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libthiserror_impl-1e470d9190bc4a7d.dylib"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#encoding_rs@0.8.35","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/encoding_rs-0.8.35/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"encoding_rs","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/encoding_rs-0.8.35/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","default"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libencoding_rs-e6ec9b2b703df9c6.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#mime@0.3.17","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mime-0.3.17/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"mime","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mime-0.3.17/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libmime-75be28c2813a36fd.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#futures@0.3.32","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.3.32/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"futures","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/futures-0.3.32/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["alloc","async-await","default","executor","futures-executor","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libfutures-c87db94d10f585ed.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#thiserror@1.0.69","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-1.0.69/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"thiserror","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/thiserror-1.0.69/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libthiserror-6e3a17c124ec8f7d.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#dirs@5.0.1","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dirs-5.0.1/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"dirs","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dirs-5.0.1/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libdirs-2db8db8e35d7ad65.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#anyhow@1.0.102","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.102/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"anyhow","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.102/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","std"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libanyhow-c8a37cef83c7ec44.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#toml@0.8.23","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml-0.8.23/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"toml","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/toml-0.8.23/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["default","display","parse"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtoml-15f3be60ec2bfa79.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#ratatui@0.30.0","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-0.30.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"ratatui","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ratatui-0.30.0/src/lib.rs","edition":"2024","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["all-widgets","crossterm","default","layout-cache","macros","std","underline-color","widget-calendar"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libratatui-4ffc8bc37e2f9562.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#serde_path_to_error@0.1.20","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_path_to_error-0.1.20/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"serde_path_to_error","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde_path_to_error-0.1.20/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libserde_path_to_error-7d9c1b55d82b05a4.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-artifact","package_id":"registry+https://github.com/rust-lang/crates.io-index#reqwest@0.12.28","manifest_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.28/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"reqwest","src_path":"/Users/pc/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.28/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":["__tls","charset","default","default-tls","h2","http2","json","stream","system-proxy"],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libreqwest-502590463b33c2ae.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variant `ActionCompleted` is never constructed\n --> src/app.rs:14:5\n |\n11 | pub enum Event {\n | ----- variant in this enum\n...\n14 | ActionCompleted,\n | ^^^^^^^^^^^^^^^\n |\n = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]},{"children":[],"code":null,"level":"note","message":"`#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default","rendered":null,"spans":[]}],"level":"warning","message":"variant `ActionCompleted` is never constructed","spans":[{"byte_end":330,"byte_start":325,"column_end":15,"column_start":10,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"variant in this enum","line_end":11,"line_start":11,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":15,"highlight_start":10,"text":"pub enum Event {"}]},{"byte_end":417,"byte_start":402,"column_end":20,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":14,"line_start":14,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":20,"highlight_start":5,"text":" ActionCompleted,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `child` is never read\n --> src/app.rs:43:29\n |\n43 | ExecutingBashTerminal { child: tokio::process::Child },\n | --------------------- ^^^^^\n | |\n | field in this variant\n\n","$message_type":"diagnostic","children":[],"level":"warning","message":"field `child` is never read","spans":[{"byte_end":1411,"byte_start":1390,"column_end":26,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"field in this variant","line_end":43,"line_start":43,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":26,"highlight_start":5,"text":" ExecutingBashTerminal { child: tokio::process::Child },"}]},{"byte_end":1419,"byte_start":1414,"column_end":34,"column_start":29,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":43,"line_start":43,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":34,"highlight_start":29,"text":" ExecutingBashTerminal { child: tokio::process::Child },"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variant `Downloading` is never constructed\n --> src/app.rs:50:5\n |\n37 | pub enum Popup {\n | ----- variant in this enum\n...\n50 | Downloading { progress: f32, message: String },\n | ^^^^^^^^^^^\n\n","$message_type":"diagnostic","children":[],"level":"warning","message":"variant `Downloading` is never constructed","spans":[{"byte_end":1266,"byte_start":1261,"column_end":15,"column_start":10,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"variant in this enum","line_end":37,"line_start":37,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":15,"highlight_start":10,"text":"pub enum Popup {"}]},{"byte_end":1681,"byte_start":1670,"column_end":16,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":50,"line_start":50,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":5,"text":" Downloading { progress: f32, message: String },"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variant `Warn` is never constructed\n --> src/app.rs:57:5\n |\n55 | pub enum MessageLevel {\n | ------------ variant in this enum\n56 | Info,\n57 | Warn,\n | ^^^^\n |\n = note: `MessageLevel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`MessageLevel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"variant `Warn` is never constructed","spans":[{"byte_end":1823,"byte_start":1811,"column_end":22,"column_start":10,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"variant in this enum","line_end":55,"line_start":55,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":22,"highlight_start":10,"text":"pub enum MessageLevel {"}]},{"byte_end":1844,"byte_start":1840,"column_end":9,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":57,"line_start":57,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":9,"highlight_start":5,"text":" Warn,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variants `Config` and `Child` are never constructed\n --> src/error.rs:12:5\n |\n 4 | pub enum AppError {\n | -------- variants in this enum\n...\n12 | Config(String),\n | ^^^^^^\n13 | #[error(\"Child process error: {0}\")]\n14 | Child(String),\n | ^^^^^\n |\n = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"variants `Config` and `Child` are never constructed","spans":[{"byte_end":64,"byte_start":56,"column_end":18,"column_start":10,"expansion":null,"file_name":"src/error.rs","is_primary":false,"label":"variants in this enum","line_end":4,"line_start":4,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":18,"highlight_start":10,"text":"pub enum AppError {"}]},{"byte_end":321,"byte_start":315,"column_end":11,"column_start":5,"expansion":null,"file_name":"src/error.rs","is_primary":true,"label":null,"line_end":12,"line_start":12,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":11,"highlight_start":5,"text":" Config(String),"}]},{"byte_end":381,"byte_start":376,"column_end":10,"column_start":5,"expansion":null,"file_name":"src/error.rs","is_primary":true,"label":null,"line_end":14,"line_start":14,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":5,"text":" Child(String),"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `default` is never read\n --> src/executor/structured.rs:14:9\n |\n12 | Input {\n | ----- field in this variant\n13 | prompt: String,\n14 | default: Option<String>,\n | ^^^^^^^\n |\n = note: `StructuredCommand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`StructuredCommand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"field `default` is never read","spans":[{"byte_end":293,"byte_start":288,"column_end":10,"column_start":5,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":false,"label":"field in this variant","line_end":12,"line_start":12,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":5,"text":" Input {"}]},{"byte_end":335,"byte_start":328,"column_end":16,"column_start":9,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":true,"label":null,"line_end":14,"line_start":14,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":9,"text":" default: Option<String>,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `id` is never read\n --> src/executor/structured.rs:36:9\n |\n35 | pub struct MenuOption {\n | ---------- field in this struct\n36 | pub id: String,\n | ^^\n |\n = note: `MenuOption` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`MenuOption` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"field `id` is never read","spans":[{"byte_end":692,"byte_start":682,"column_end":22,"column_start":12,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":false,"label":"field in this struct","line_end":35,"line_start":35,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":22,"highlight_start":12,"text":"pub struct MenuOption {"}]},{"byte_end":705,"byte_start":703,"column_end":11,"column_start":9,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":true,"label":null,"line_end":36,"line_start":36,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":11,"highlight_start":9,"text":" pub id: String,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `version` is never read\n --> src/menu.rs:6:9\n |\n5 | pub struct MenuRoot {\n | -------- field in this struct\n6 | pub version: String,\n | ^^^^^^^\n |\n = note: `MenuRoot` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`MenuRoot` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"field `version` is never read","spans":[{"byte_end":112,"byte_start":104,"column_end":20,"column_start":12,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"field in this struct","line_end":5,"line_start":5,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":20,"highlight_start":12,"text":"pub struct MenuRoot {"}]},{"byte_end":130,"byte_start":123,"column_end":16,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":6,"line_start":6,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":9,"text":" pub version: String,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: fields `filename` and `target_dir` are never read\n --> src/menu.rs:40:9\n |\n38 | Download {\n | -------- fields in this variant\n39 | url: String,\n40 | filename: Option<String>,\n | ^^^^^^^^\n41 | target_dir: Option<String>,\n | ^^^^^^^^^^\n |\n = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"fields `filename` and `target_dir` are never read","spans":[{"byte_end":882,"byte_start":874,"column_end":13,"column_start":5,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"fields in this variant","line_end":38,"line_start":38,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":13,"highlight_start":5,"text":" Download {"}]},{"byte_end":922,"byte_start":914,"column_end":17,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":40,"line_start":40,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":9,"text":" filename: Option<String>,"}]},{"byte_end":958,"byte_start":948,"column_end":19,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":41,"line_start":41,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":19,"highlight_start":9,"text":" target_dir: Option<String>,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: fields `url`, `filename`, `run_args`, and `keep_file` are never read\n --> src/menu.rs:48:9\n |\n47 | DownloadAndRun {\n | -------------- fields in this variant\n48 | url: String,\n | ^^^\n49 | filename: Option<String>,\n | ^^^^^^^^\n50 | run_args: Vec<String>,\n | ^^^^^^^^\n51 | #[serde(default)]\n52 | keep_file: bool,\n | ^^^^^^^^^\n |\n = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"fields `url`, `filename`, `run_args`, and `keep_file` are never read","spans":[{"byte_end":1117,"byte_start":1103,"column_end":19,"column_start":5,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"fields in this variant","line_end":47,"line_start":47,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":19,"highlight_start":5,"text":" DownloadAndRun {"}]},{"byte_end":1131,"byte_start":1128,"column_end":12,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":48,"line_start":48,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":12,"highlight_start":9,"text":" url: String,"}]},{"byte_end":1157,"byte_start":1149,"column_end":17,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":49,"line_start":49,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":9,"text":" filename: Option<String>,"}]},{"byte_end":1191,"byte_start":1183,"column_end":17,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":50,"line_start":50,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":9,"text":" run_args: Vec<String>,"}]},{"byte_end":1249,"byte_start":1240,"column_end":18,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":52,"line_start":52,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":18,"highlight_start":9,"text":" keep_file: bool,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: fields `method`, `url`, `headers`, and `body` are never read\n --> src/menu.rs:59:9\n |\n58 | HttpRequest {\n | ----------- fields in this variant\n59 | method: HttpMethod,\n | ^^^^^^\n60 | url: String,\n | ^^^\n61 | headers: HashMap<String, String>,\n | ^^^^^^^\n62 | body: Option<String>,\n | ^^^^\n |\n = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"fields `method`, `url`, `headers`, and `body` are never read","spans":[{"byte_end":1395,"byte_start":1384,"column_end":16,"column_start":5,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"fields in this variant","line_end":58,"line_start":58,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":5,"text":" HttpRequest {"}]},{"byte_end":1412,"byte_start":1406,"column_end":15,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":59,"line_start":59,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":15,"highlight_start":9,"text":" method: HttpMethod,"}]},{"byte_end":1437,"byte_start":1434,"column_end":12,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":60,"line_start":60,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":12,"highlight_start":9,"text":" url: String,"}]},{"byte_end":1462,"byte_start":1455,"column_end":16,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":61,"line_start":61,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":9,"text":" headers: HashMap<String, String>,"}]},{"byte_end":1501,"byte_start":1497,"column_end":13,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":62,"line_start":62,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":13,"highlight_start":9,"text":" body: Option<String>,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":true},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtui_client-5f40b59018a6cd77.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variant `ActionCompleted` is never constructed\n --> src/app.rs:14:5\n |\n11 | pub enum Event {\n | ----- variant in this enum\n...\n14 | ActionCompleted,\n | ^^^^^^^^^^^^^^^\n |\n = note: `Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Event` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]},{"children":[],"code":null,"level":"note","message":"`#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default","rendered":null,"spans":[]}],"level":"warning","message":"variant `ActionCompleted` is never constructed","spans":[{"byte_end":330,"byte_start":325,"column_end":15,"column_start":10,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"variant in this enum","line_end":11,"line_start":11,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":15,"highlight_start":10,"text":"pub enum Event {"}]},{"byte_end":417,"byte_start":402,"column_end":20,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":14,"line_start":14,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":20,"highlight_start":5,"text":" ActionCompleted,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `child` is never read\n --> src/app.rs:43:29\n |\n43 | ExecutingBashTerminal { child: tokio::process::Child },\n | --------------------- ^^^^^\n | |\n | field in this variant\n\n","$message_type":"diagnostic","children":[],"level":"warning","message":"field `child` is never read","spans":[{"byte_end":1411,"byte_start":1390,"column_end":26,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"field in this variant","line_end":43,"line_start":43,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":26,"highlight_start":5,"text":" ExecutingBashTerminal { child: tokio::process::Child },"}]},{"byte_end":1419,"byte_start":1414,"column_end":34,"column_start":29,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":43,"line_start":43,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":34,"highlight_start":29,"text":" ExecutingBashTerminal { child: tokio::process::Child },"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variant `Downloading` is never constructed\n --> src/app.rs:50:5\n |\n37 | pub enum Popup {\n | ----- variant in this enum\n...\n50 | Downloading { progress: f32, message: String },\n | ^^^^^^^^^^^\n\n","$message_type":"diagnostic","children":[],"level":"warning","message":"variant `Downloading` is never constructed","spans":[{"byte_end":1266,"byte_start":1261,"column_end":15,"column_start":10,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"variant in this enum","line_end":37,"line_start":37,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":15,"highlight_start":10,"text":"pub enum Popup {"}]},{"byte_end":1681,"byte_start":1670,"column_end":16,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":50,"line_start":50,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":5,"text":" Downloading { progress: f32, message: String },"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variant `Warn` is never constructed\n --> src/app.rs:57:5\n |\n55 | pub enum MessageLevel {\n | ------------ variant in this enum\n56 | Info,\n57 | Warn,\n | ^^^^\n |\n = note: `MessageLevel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`MessageLevel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"variant `Warn` is never constructed","spans":[{"byte_end":1823,"byte_start":1811,"column_end":22,"column_start":10,"expansion":null,"file_name":"src/app.rs","is_primary":false,"label":"variant in this enum","line_end":55,"line_start":55,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":22,"highlight_start":10,"text":"pub enum MessageLevel {"}]},{"byte_end":1844,"byte_start":1840,"column_end":9,"column_start":5,"expansion":null,"file_name":"src/app.rs","is_primary":true,"label":null,"line_end":57,"line_start":57,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":9,"highlight_start":5,"text":" Warn,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: variants `Config` and `Child` are never constructed\n --> src/error.rs:12:5\n |\n 4 | pub enum AppError {\n | -------- variants in this enum\n...\n12 | Config(String),\n | ^^^^^^\n13 | #[error(\"Child process error: {0}\")]\n14 | Child(String),\n | ^^^^^\n |\n = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"variants `Config` and `Child` are never constructed","spans":[{"byte_end":64,"byte_start":56,"column_end":18,"column_start":10,"expansion":null,"file_name":"src/error.rs","is_primary":false,"label":"variants in this enum","line_end":4,"line_start":4,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":18,"highlight_start":10,"text":"pub enum AppError {"}]},{"byte_end":321,"byte_start":315,"column_end":11,"column_start":5,"expansion":null,"file_name":"src/error.rs","is_primary":true,"label":null,"line_end":12,"line_start":12,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":11,"highlight_start":5,"text":" Config(String),"}]},{"byte_end":381,"byte_start":376,"column_end":10,"column_start":5,"expansion":null,"file_name":"src/error.rs","is_primary":true,"label":null,"line_end":14,"line_start":14,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":5,"text":" Child(String),"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `default` is never read\n --> src/executor/structured.rs:14:9\n |\n12 | Input {\n | ----- field in this variant\n13 | prompt: String,\n14 | default: Option<String>,\n | ^^^^^^^\n |\n = note: `StructuredCommand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`StructuredCommand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"field `default` is never read","spans":[{"byte_end":293,"byte_start":288,"column_end":10,"column_start":5,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":false,"label":"field in this variant","line_end":12,"line_start":12,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":10,"highlight_start":5,"text":" Input {"}]},{"byte_end":335,"byte_start":328,"column_end":16,"column_start":9,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":true,"label":null,"line_end":14,"line_start":14,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":9,"text":" default: Option<String>,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `id` is never read\n --> src/executor/structured.rs:36:9\n |\n35 | pub struct MenuOption {\n | ---------- field in this struct\n36 | pub id: String,\n | ^^\n |\n = note: `MenuOption` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`MenuOption` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"field `id` is never read","spans":[{"byte_end":692,"byte_start":682,"column_end":22,"column_start":12,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":false,"label":"field in this struct","line_end":35,"line_start":35,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":22,"highlight_start":12,"text":"pub struct MenuOption {"}]},{"byte_end":705,"byte_start":703,"column_end":11,"column_start":9,"expansion":null,"file_name":"src/executor/structured.rs","is_primary":true,"label":null,"line_end":36,"line_start":36,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":11,"highlight_start":9,"text":" pub id: String,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: field `version` is never read\n --> src/menu.rs:6:9\n |\n5 | pub struct MenuRoot {\n | -------- field in this struct\n6 | pub version: String,\n | ^^^^^^^\n |\n = note: `MenuRoot` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`MenuRoot` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"field `version` is never read","spans":[{"byte_end":112,"byte_start":104,"column_end":20,"column_start":12,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"field in this struct","line_end":5,"line_start":5,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":20,"highlight_start":12,"text":"pub struct MenuRoot {"}]},{"byte_end":130,"byte_start":123,"column_end":16,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":6,"line_start":6,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":9,"text":" pub version: String,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: fields `filename` and `target_dir` are never read\n --> src/menu.rs:40:9\n |\n38 | Download {\n | -------- fields in this variant\n39 | url: String,\n40 | filename: Option<String>,\n | ^^^^^^^^\n41 | target_dir: Option<String>,\n | ^^^^^^^^^^\n |\n = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"fields `filename` and `target_dir` are never read","spans":[{"byte_end":882,"byte_start":874,"column_end":13,"column_start":5,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"fields in this variant","line_end":38,"line_start":38,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":13,"highlight_start":5,"text":" Download {"}]},{"byte_end":922,"byte_start":914,"column_end":17,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":40,"line_start":40,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":9,"text":" filename: Option<String>,"}]},{"byte_end":958,"byte_start":948,"column_end":19,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":41,"line_start":41,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":19,"highlight_start":9,"text":" target_dir: Option<String>,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: fields `url`, `filename`, `run_args`, and `keep_file` are never read\n --> src/menu.rs:48:9\n |\n47 | DownloadAndRun {\n | -------------- fields in this variant\n48 | url: String,\n | ^^^\n49 | filename: Option<String>,\n | ^^^^^^^^\n50 | run_args: Vec<String>,\n | ^^^^^^^^\n51 | #[serde(default)]\n52 | keep_file: bool,\n | ^^^^^^^^^\n |\n = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"fields `url`, `filename`, `run_args`, and `keep_file` are never read","spans":[{"byte_end":1117,"byte_start":1103,"column_end":19,"column_start":5,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"fields in this variant","line_end":47,"line_start":47,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":19,"highlight_start":5,"text":" DownloadAndRun {"}]},{"byte_end":1131,"byte_start":1128,"column_end":12,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":48,"line_start":48,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":12,"highlight_start":9,"text":" url: String,"}]},{"byte_end":1157,"byte_start":1149,"column_end":17,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":49,"line_start":49,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":9,"text":" filename: Option<String>,"}]},{"byte_end":1191,"byte_start":1183,"column_end":17,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":50,"line_start":50,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":17,"highlight_start":9,"text":" run_args: Vec<String>,"}]},{"byte_end":1249,"byte_start":1240,"column_end":18,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":52,"line_start":52,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":18,"highlight_start":9,"text":" keep_file: bool,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-message","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"message":{"rendered":"warning: fields `method`, `url`, `headers`, and `body` are never read\n --> src/menu.rs:59:9\n |\n58 | HttpRequest {\n | ----------- fields in this variant\n59 | method: HttpMethod,\n | ^^^^^^\n60 | url: String,\n | ^^^\n61 | headers: HashMap<String, String>,\n | ^^^^^^^\n62 | body: Option<String>,\n | ^^^^\n |\n = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis\n\n","$message_type":"diagnostic","children":[{"children":[],"code":null,"level":"note","message":"`Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis","rendered":null,"spans":[]}],"level":"warning","message":"fields `method`, `url`, `headers`, and `body` are never read","spans":[{"byte_end":1395,"byte_start":1384,"column_end":16,"column_start":5,"expansion":null,"file_name":"src/menu.rs","is_primary":false,"label":"fields in this variant","line_end":58,"line_start":58,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":5,"text":" HttpRequest {"}]},{"byte_end":1412,"byte_start":1406,"column_end":15,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":59,"line_start":59,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":15,"highlight_start":9,"text":" method: HttpMethod,"}]},{"byte_end":1437,"byte_start":1434,"column_end":12,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":60,"line_start":60,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":12,"highlight_start":9,"text":" url: String,"}]},{"byte_end":1462,"byte_start":1455,"column_end":16,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":61,"line_start":61,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":16,"highlight_start":9,"text":" headers: HashMap<String, String>,"}]},{"byte_end":1501,"byte_start":1497,"column_end":13,"column_start":9,"expansion":null,"file_name":"src/menu.rs","is_primary":true,"label":null,"line_end":62,"line_start":62,"suggested_replacement":null,"suggestion_applicability":null,"text":[{"highlight_end":13,"highlight_start":9,"text":" body: Option<String>,"}]}],"code":{"code":"dead_code","explanation":null}}}
|
|
||||||
{"reason":"compiler-artifact","package_id":"path+file:///Users/pc/Projects/Ratatui#tui-client@0.1.0","manifest_path":"/Users/pc/Projects/Ratatui/Cargo.toml","target":{"kind":["bin"],"crate_types":["bin"],"name":"tui-client","src_path":"/Users/pc/Projects/Ratatui/src/main.rs","edition":"2024","doc":true,"doctest":false,"test":true},"profile":{"opt_level":"0","debuginfo":2,"debug_assertions":true,"overflow_checks":true,"test":false},"features":[],"filenames":["/Users/pc/Projects/Ratatui/target/debug/deps/libtui_client-670c9237b3c1caf0.rmeta"],"executable":null,"fresh":true}
|
|
||||||
{"reason":"build-finished","success":true}
|
|
||||||
98
src/text_input.rs
Normal file
98
src/text_input.rs
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
|
||||||
|
|
||||||
|
pub struct TextInput {
|
||||||
|
pub buf: String,
|
||||||
|
pub cursor: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl TextInput {
|
||||||
|
pub fn new() -> Self {
|
||||||
|
Self { buf: String::new(), cursor: 0 }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn with_text(text: impl Into<String>) -> Self {
|
||||||
|
let buf = text.into();
|
||||||
|
let cursor = buf.chars().count();
|
||||||
|
Self { buf, cursor }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn value(&self) -> &str {
|
||||||
|
&self.buf
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn clear(&mut self) {
|
||||||
|
self.buf.clear();
|
||||||
|
self.cursor = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn move_left(&mut self) {
|
||||||
|
self.cursor = self.cursor.saturating_sub(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn move_right(&mut self) {
|
||||||
|
self.cursor = (self.cursor + 1).min(self.buf.chars().count());
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn word_back(&mut self) {
|
||||||
|
let chars: Vec<char> = self.buf.chars().collect();
|
||||||
|
let mut pos = self.cursor;
|
||||||
|
while pos > 0 && !is_word(chars[pos - 1]) { pos -= 1; }
|
||||||
|
while pos > 0 && is_word(chars[pos - 1]) { pos -= 1; }
|
||||||
|
self.cursor = pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn word_fwd(&mut self) {
|
||||||
|
let chars: Vec<char> = self.buf.chars().collect();
|
||||||
|
let len = chars.len();
|
||||||
|
let mut pos = self.cursor;
|
||||||
|
while pos < len && !is_word(chars[pos]) { pos += 1; }
|
||||||
|
while pos < len && is_word(chars[pos]) { pos += 1; }
|
||||||
|
self.cursor = pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn insert(&mut self, c: char) {
|
||||||
|
let byte_idx = self.buf.char_indices().nth(self.cursor).map(|(b, _)| b).unwrap_or(self.buf.len());
|
||||||
|
self.buf.insert(byte_idx, c);
|
||||||
|
self.cursor += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn backspace(&mut self) {
|
||||||
|
if self.cursor == 0 { return; }
|
||||||
|
let byte_idx = self.buf.char_indices().nth(self.cursor - 1).map(|(b, _)| b).unwrap_or(0);
|
||||||
|
self.buf.remove(byte_idx);
|
||||||
|
self.cursor -= 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn word_delete_back(&mut self) {
|
||||||
|
let chars: Vec<char> = self.buf.chars().collect();
|
||||||
|
let mut new_cursor = self.cursor;
|
||||||
|
while new_cursor > 0 && !is_word(chars[new_cursor - 1]) { new_cursor -= 1; }
|
||||||
|
while new_cursor > 0 && is_word(chars[new_cursor - 1]) { new_cursor -= 1; }
|
||||||
|
if new_cursor == self.cursor { return; }
|
||||||
|
let start_byte = self.buf.char_indices().nth(new_cursor).map(|(b, _)| b).unwrap_or(0);
|
||||||
|
let end_byte = self.buf.char_indices().nth(self.cursor).map(|(b, _)| b).unwrap_or(self.buf.len());
|
||||||
|
self.buf.drain(start_byte..end_byte);
|
||||||
|
self.cursor = new_cursor;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns true if the key was consumed.
|
||||||
|
pub fn handle_key(&mut self, key: &KeyEvent) -> bool {
|
||||||
|
let alt = key.modifiers.intersects(KeyModifiers::ALT | KeyModifiers::SUPER);
|
||||||
|
match key.code {
|
||||||
|
KeyCode::Left if alt => { self.word_back(); true }
|
||||||
|
KeyCode::Right if alt => { self.word_fwd(); true }
|
||||||
|
KeyCode::Char('b') if alt => { self.word_back(); true }
|
||||||
|
KeyCode::Char('f') if alt => { self.word_fwd(); true }
|
||||||
|
KeyCode::Left => { self.move_left(); true }
|
||||||
|
KeyCode::Right => { self.move_right(); true }
|
||||||
|
KeyCode::Backspace if alt => { self.word_delete_back(); true }
|
||||||
|
KeyCode::Backspace => { self.backspace(); true }
|
||||||
|
KeyCode::Char(c) => { self.insert(c); true }
|
||||||
|
_ => false,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fn is_word(c: char) -> bool {
|
||||||
|
c.is_alphanumeric() || c == '_'
|
||||||
|
}
|
||||||
798
src/ui.rs
798
src/ui.rs
@@ -1,6 +1,9 @@
|
|||||||
use crate::ansi;
|
use crate::ansi;
|
||||||
|
use crate::config::Config;
|
||||||
use crate::executor;
|
use crate::executor;
|
||||||
use crate::app::{App, MessageLevel, Popup};
|
use crate::app::{App, MessageLevel, Popup, UpdatingStatus};
|
||||||
|
use crate::text_input::TextInput;
|
||||||
|
use unicode_width::UnicodeWidthChar;
|
||||||
use ratatui::{
|
use ratatui::{
|
||||||
layout::{Alignment, Constraint, Direction, Layout, Rect},
|
layout::{Alignment, Constraint, Direction, Layout, Rect},
|
||||||
style::{Color, Modifier, Style},
|
style::{Color, Modifier, Style},
|
||||||
@@ -24,33 +27,118 @@ pub fn render(f: &mut Frame, app: &mut App) {
|
|||||||
render_description(f, app, chunks[1]);
|
render_description(f, app, chunks[1]);
|
||||||
|
|
||||||
if let Some(popup) = &mut app.popup {
|
if let Some(popup) = &mut app.popup {
|
||||||
render_popup(f, popup);
|
render_popup(f, popup, &app.config);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_menu(f: &mut Frame, app: &App, area: Rect) {
|
fn render_menu(f: &mut Frame, app: &mut App, area: Rect) {
|
||||||
|
const SCROLLOFF: usize = 1;
|
||||||
|
|
||||||
let items = app.current_items();
|
let items = app.current_items();
|
||||||
let list_items: Vec<ListItem> = items
|
let total = items.len();
|
||||||
.iter()
|
let inner_w = area.width.saturating_sub(2) as usize;
|
||||||
.enumerate()
|
let inner_h = area.height.saturating_sub(2) as usize;
|
||||||
.map(|(i, item)| {
|
let sel = if total > 0 { app.selected_index.min(total - 1) } else { 0 };
|
||||||
|
|
||||||
|
let item_lines: Vec<Vec<String>> = items.iter().map(|item| {
|
||||||
let prefix = match &item.kind {
|
let prefix = match &item.kind {
|
||||||
crate::menu::MenuItemKind::Category { .. } => "📁 ",
|
crate::menu::MenuItemKind::Category { .. } => "📁 ",
|
||||||
crate::menu::MenuItemKind::Action { .. } => "⚡ ",
|
crate::menu::MenuItemKind::Action { .. } => "⚡ ",
|
||||||
};
|
};
|
||||||
let content = Line::from(Span::raw(format!("{}{}", prefix, item.title)));
|
wrap_to_lines(&format!("{}{}", prefix, item.title), inner_w)
|
||||||
if i == app.selected_index {
|
}).collect();
|
||||||
ListItem::new(content).style(Style::default().bg(Color::Blue))
|
|
||||||
|
let vis_from = |off: usize| -> usize {
|
||||||
|
let mut rows = 0usize;
|
||||||
|
let mut n = 0usize;
|
||||||
|
for lines in item_lines.get(off..).unwrap_or(&[]) {
|
||||||
|
let h = lines.len().max(1);
|
||||||
|
if rows + h > inner_h { break; }
|
||||||
|
rows += h;
|
||||||
|
n += 1;
|
||||||
|
}
|
||||||
|
n
|
||||||
|
};
|
||||||
|
|
||||||
|
let offset = &mut app.menu_scroll_offset;
|
||||||
|
if total == 0 {
|
||||||
|
*offset = 0;
|
||||||
} else {
|
} else {
|
||||||
ListItem::new(content)
|
if *offset > sel { *offset = sel; }
|
||||||
|
if sel < offset.saturating_add(SCROLLOFF) && *offset > 0 {
|
||||||
|
*offset = sel.saturating_sub(SCROLLOFF);
|
||||||
|
}
|
||||||
|
loop {
|
||||||
|
let vis = vis_from(*offset);
|
||||||
|
if vis == 0 { break; }
|
||||||
|
let trigger = offset.saturating_add(vis).saturating_sub(SCROLLOFF);
|
||||||
|
if sel >= trigger && *offset + vis < total {
|
||||||
|
*offset += 1;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let max_off = total.saturating_sub(1);
|
||||||
|
*offset = (*offset).min(max_off);
|
||||||
|
}
|
||||||
|
|
||||||
|
let start = *offset;
|
||||||
|
let vis = vis_from(start);
|
||||||
|
let end = (start + vis).min(total);
|
||||||
|
|
||||||
|
let list_items: Vec<ListItem> = item_lines[start..end]
|
||||||
|
.iter()
|
||||||
|
.enumerate()
|
||||||
|
.map(|(i, lines)| {
|
||||||
|
let abs = start + i;
|
||||||
|
let text: Vec<Line> = lines.iter().map(|l| Line::from(l.clone())).collect();
|
||||||
|
let li = ListItem::new(ratatui::text::Text::from(text));
|
||||||
|
if abs == sel {
|
||||||
|
li.style(Style::default().bg(Color::Blue).add_modifier(Modifier::BOLD))
|
||||||
|
} else {
|
||||||
|
li
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let list = List::new(list_items)
|
let endpoint_title = app.config.endpoints.iter()
|
||||||
.block(Block::default().borders(Borders::ALL).title("Меню"))
|
.find(|ep| ep.url == app.config.active_endpoint)
|
||||||
.highlight_style(Style::default().add_modifier(Modifier::BOLD));
|
.map(|ep| Line::from(vec![
|
||||||
|
Span::raw(format!(" {} ", ep.name)),
|
||||||
|
Span::styled(" — [↹] Изменить ", Style::default().fg(Color::DarkGray)),
|
||||||
|
]))
|
||||||
|
.unwrap_or_else(|| Line::from(" Меню "));
|
||||||
|
|
||||||
|
let list = List::new(list_items).block(
|
||||||
|
Block::default()
|
||||||
|
.borders(Borders::ALL)
|
||||||
|
.title(endpoint_title)
|
||||||
|
.title(
|
||||||
|
Line::from(Span::styled(
|
||||||
|
format!(" v{} ", env!("CARGO_PKG_VERSION")),
|
||||||
|
Style::default().fg(Color::DarkGray),
|
||||||
|
))
|
||||||
|
.alignment(Alignment::Right),
|
||||||
|
),
|
||||||
|
);
|
||||||
f.render_widget(list, area);
|
f.render_widget(list, area);
|
||||||
|
|
||||||
|
if total > vis {
|
||||||
|
let max_off = total.saturating_sub(vis);
|
||||||
|
let scrollbar = Scrollbar::default()
|
||||||
|
.orientation(ScrollbarOrientation::VerticalRight)
|
||||||
|
.begin_symbol(Some("▲"))
|
||||||
|
.end_symbol(Some("▼"))
|
||||||
|
.thumb_symbol("█");
|
||||||
|
let mut sb_state = ScrollbarState::new(max_off).position(start);
|
||||||
|
let sb_area = Rect {
|
||||||
|
x: area.x + area.width.saturating_sub(1),
|
||||||
|
y: area.y + 1,
|
||||||
|
width: 1,
|
||||||
|
height: area.height.saturating_sub(2),
|
||||||
|
};
|
||||||
|
f.render_stateful_widget(scrollbar, sb_area, &mut sb_state);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_description(f: &mut Frame, app: &App, area: Rect) {
|
fn render_description(f: &mut Frame, app: &App, area: Rect) {
|
||||||
@@ -67,18 +155,18 @@ fn render_description(f: &mut Frame, app: &App, area: Rect) {
|
|||||||
f.render_widget(paragraph, area);
|
f.render_widget(paragraph, area);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
fn render_popup(f: &mut Frame, popup: &mut Popup, config: &Config) {
|
||||||
let area = f.area();
|
let area = f.area();
|
||||||
let popup_area = centered_rect(80, 90, area);
|
|
||||||
|
let popup_area = match popup {
|
||||||
|
Popup::UpdateConfirm { .. } | Popup::Updating { .. } => centered_rect(50, 40, area),
|
||||||
|
_ => centered_rect(80, 90, area),
|
||||||
|
};
|
||||||
|
|
||||||
f.render_widget(Clear, popup_area);
|
f.render_widget(Clear, popup_area);
|
||||||
|
|
||||||
match popup {
|
match popup {
|
||||||
Popup::Confirming {
|
Popup::Confirming { action: _, item_title, confirm_message } => {
|
||||||
action: _,
|
|
||||||
item_title,
|
|
||||||
confirm_message,
|
|
||||||
} => {
|
|
||||||
let block = Block::default()
|
let block = Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.title("Подтверждение")
|
.title("Подтверждение")
|
||||||
@@ -102,11 +190,10 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
)),
|
)),
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
let paragraph = Paragraph::new(text)
|
f.render_widget(
|
||||||
.block(block)
|
Paragraph::new(text).block(block).alignment(Alignment::Center).wrap(Wrap { trim: true }),
|
||||||
.alignment(Alignment::Center)
|
popup_area,
|
||||||
.wrap(Wrap { trim: true });
|
);
|
||||||
f.render_widget(paragraph, popup_area);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Popup::ExecutingStructured {
|
Popup::ExecutingStructured {
|
||||||
@@ -114,16 +201,18 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
kill_tx: _,
|
kill_tx: _,
|
||||||
log_buffer,
|
log_buffer,
|
||||||
current_command,
|
current_command,
|
||||||
input_buffer,
|
input,
|
||||||
menu_selected_index,
|
menu_selected_index,
|
||||||
|
form_cursor,
|
||||||
|
form_values,
|
||||||
log_scroll_pos,
|
log_scroll_pos,
|
||||||
|
log_scroll_x,
|
||||||
log_follow_bottom,
|
log_follow_bottom,
|
||||||
finished,
|
finished,
|
||||||
} => {
|
} => {
|
||||||
let cmd_height: u16 = match current_command {
|
let cmd_height: u16 = match current_command {
|
||||||
Some(executor::StructuredCommand::Menu { options, .. }) => {
|
Some(executor::StructuredCommand::Menu { options, .. }) => (options.len() as u16 + 2).min(14),
|
||||||
(options.len() as u16 + 2).min(14)
|
Some(executor::StructuredCommand::Form { fields, .. }) => (fields.len() as u16 + 2).min(16),
|
||||||
}
|
|
||||||
Some(_) => 5,
|
Some(_) => 5,
|
||||||
None => 0,
|
None => 0,
|
||||||
};
|
};
|
||||||
@@ -134,11 +223,9 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
.constraints([Constraint::Min(3), Constraint::Length(cmd_height)].as_ref())
|
.constraints([Constraint::Min(3), Constraint::Length(cmd_height)].as_ref())
|
||||||
.split(popup_area);
|
.split(popup_area);
|
||||||
|
|
||||||
// ── Scrollable log ──────────────────────────────────────────────
|
|
||||||
let visible = chunks[0].height.saturating_sub(2) as usize;
|
let visible = chunks[0].height.saturating_sub(2) as usize;
|
||||||
let total = log_buffer.len();
|
let total = log_buffer.len();
|
||||||
|
|
||||||
// Clamp pos so we never show empty lines past the end.
|
|
||||||
let max_pos = total.saturating_sub(visible);
|
let max_pos = total.saturating_sub(visible);
|
||||||
if *log_follow_bottom {
|
if *log_follow_bottom {
|
||||||
*log_scroll_pos = max_pos;
|
*log_scroll_pos = max_pos;
|
||||||
@@ -149,13 +236,20 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
let start = pos;
|
let start = pos;
|
||||||
let end = (start + visible).min(total);
|
let end = (start + visible).min(total);
|
||||||
|
|
||||||
|
let viewport_w = chunks[0].width.saturating_sub(2) as usize;
|
||||||
|
let max_content_w: usize = log_buffer
|
||||||
|
.iter()
|
||||||
|
.map(|l| ansi::parse_line(l).iter().map(|(_, s)| s.chars().count()).sum::<usize>())
|
||||||
|
.max()
|
||||||
|
.unwrap_or(0);
|
||||||
|
let max_scroll_x = max_content_w.saturating_sub(viewport_w);
|
||||||
|
*log_scroll_x = (*log_scroll_x).min(max_scroll_x);
|
||||||
|
let scroll_x = *log_scroll_x;
|
||||||
|
|
||||||
let log_items: Vec<ListItem> = log_buffer[start..end]
|
let log_items: Vec<ListItem> = log_buffer[start..end]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|line| {
|
.map(|line| {
|
||||||
let spans: Vec<Span> = ansi::parse_line(line)
|
let spans: Vec<Span> = h_scroll(ansi::parse_line(line), scroll_x);
|
||||||
.into_iter()
|
|
||||||
.map(|(style, text)| Span::styled(text, style))
|
|
||||||
.collect();
|
|
||||||
ListItem::new(Line::from(spans))
|
ListItem::new(Line::from(spans))
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
@@ -163,37 +257,32 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
let at_bottom = pos >= max_pos;
|
let at_bottom = pos >= max_pos;
|
||||||
let at_top = pos == 0;
|
let at_top = pos == 0;
|
||||||
|
|
||||||
|
let scroll_hint = if total <= visible {
|
||||||
|
String::new()
|
||||||
|
} else if at_top && at_bottom {
|
||||||
|
String::new()
|
||||||
|
} else if at_top {
|
||||||
|
format!(" │ PgDn/↓ вниз ({}/{})", end, total)
|
||||||
|
} else if at_bottom {
|
||||||
|
format!(" │ PgUp/↑ вверх ({}/{})", end, total)
|
||||||
|
} else {
|
||||||
|
format!(" │ PgUp ↑ PgDn ↓ ({}/{})", end, total)
|
||||||
|
};
|
||||||
|
|
||||||
let (title, border_color): (String, Color) = match finished {
|
let (title, border_color): (String, Color) = match finished {
|
||||||
Some(0) => (
|
Some(0) => (format!(" ✓ Завершено — Esc закрыть{} ", scroll_hint), Color::Green),
|
||||||
" ✓ Завершено — Esc закрыть │ PgUp/↑↓ скролл ".to_string(),
|
Some(code) => (format!(" ✗ Ошибка (код {}) — Esc закрыть{} ", code, scroll_hint), Color::Red),
|
||||||
Color::Green,
|
None if at_top && at_bottom => (" Выполняется… ".to_string(), Color::DarkGray),
|
||||||
),
|
None if at_bottom => (" Выполняется… │ PgUp/↑ прокрутить вверх ".to_string(), Color::DarkGray),
|
||||||
Some(code) => (
|
None => (format!(" Выполняется… │ {}/{} │ PgDn/↓ вниз ", pos + 1, total), Color::Yellow),
|
||||||
format!(" ✗ Ошибка (код {}) — Esc закрыть │ PgUp/↑↓ скролл ", code),
|
|
||||||
Color::Red,
|
|
||||||
),
|
|
||||||
None if at_top && at_bottom => (
|
|
||||||
" Выполняется… ".to_string(),
|
|
||||||
Color::DarkGray,
|
|
||||||
),
|
|
||||||
None if at_bottom => (
|
|
||||||
" Выполняется… │ PgUp/↑ прокрутить вверх ".to_string(),
|
|
||||||
Color::DarkGray,
|
|
||||||
),
|
|
||||||
None => (
|
|
||||||
format!(" Выполняется… │ {}/{} │ PgDn/↓ вниз ", pos + 1, total),
|
|
||||||
Color::Yellow,
|
|
||||||
),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let log_block = Block::default()
|
let log_block = Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.title(title.as_str())
|
.title(title.as_str())
|
||||||
.border_style(Style::default().fg(border_color));
|
.border_style(Style::default().fg(border_color));
|
||||||
|
|
||||||
f.render_widget(List::new(log_items).block(log_block), chunks[0]);
|
f.render_widget(List::new(log_items).block(log_block), chunks[0]);
|
||||||
|
|
||||||
// ── Scrollbar ───────────────────────────────────────────────────
|
|
||||||
if total > visible {
|
if total > visible {
|
||||||
let scrollbar = Scrollbar::default()
|
let scrollbar = Scrollbar::default()
|
||||||
.orientation(ScrollbarOrientation::VerticalRight)
|
.orientation(ScrollbarOrientation::VerticalRight)
|
||||||
@@ -210,58 +299,369 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
f.render_stateful_widget(scrollbar, sb_area, &mut sb_state);
|
f.render_stateful_widget(scrollbar, sb_area, &mut sb_state);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Interactive command area ─────────────────────────────────────
|
if max_content_w > viewport_w {
|
||||||
|
let mut h_state = ScrollbarState::new(max_scroll_x).position(scroll_x);
|
||||||
|
let hscroll_area = Rect {
|
||||||
|
x: chunks[0].x + 1,
|
||||||
|
y: chunks[0].y + chunks[0].height.saturating_sub(1),
|
||||||
|
width: chunks[0].width.saturating_sub(2),
|
||||||
|
height: 1,
|
||||||
|
};
|
||||||
|
f.render_stateful_widget(
|
||||||
|
Scrollbar::new(ScrollbarOrientation::HorizontalBottom)
|
||||||
|
.begin_symbol(Some("◄"))
|
||||||
|
.end_symbol(Some("►"))
|
||||||
|
.thumb_symbol("▄")
|
||||||
|
.track_symbol(Some("─")),
|
||||||
|
hscroll_area,
|
||||||
|
&mut h_state,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if cmd_height > 0 {
|
if cmd_height > 0 {
|
||||||
if let Some(cmd) = current_command {
|
if let Some(cmd) = current_command {
|
||||||
render_command(f, cmd, input_buffer, *menu_selected_index, chunks[1]);
|
render_command(f, cmd, input, *menu_selected_index, *form_cursor, form_values, chunks[1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Popup::Message { text, level } => {
|
Popup::Message { text, level, .. } => {
|
||||||
let color = match level {
|
let color = match level {
|
||||||
MessageLevel::Info => Color::Green,
|
MessageLevel::Info => Color::Green,
|
||||||
MessageLevel::Warn => Color::Yellow,
|
MessageLevel::Warn => Color::Yellow,
|
||||||
MessageLevel::Error => Color::Red,
|
MessageLevel::Error => Color::Red,
|
||||||
};
|
};
|
||||||
|
let content = format!("{}\n\n[любая клавиша] Закрыть", text);
|
||||||
let block = Block::default()
|
let block = Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.title("Сообщение")
|
.title("Сообщение")
|
||||||
.border_style(Style::default().fg(color));
|
.border_style(Style::default().fg(color));
|
||||||
let paragraph = Paragraph::new(text.as_str())
|
f.render_widget(
|
||||||
.block(block)
|
Paragraph::new(content.as_str()).block(block).alignment(Alignment::Center).wrap(Wrap { trim: true }),
|
||||||
.alignment(Alignment::Center)
|
popup_area,
|
||||||
.wrap(Wrap { trim: true });
|
);
|
||||||
f.render_widget(paragraph, popup_area);
|
}
|
||||||
|
|
||||||
|
Popup::UpdateConfirm { info } => {
|
||||||
|
let mut lines = vec![
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::raw(format!(" {} → {}", info.current_version, info.new_version))),
|
||||||
|
];
|
||||||
|
if info.size > 0 {
|
||||||
|
let mb = info.size as f64 / 1_048_576.0;
|
||||||
|
lines.push(Line::from(Span::raw(format!(" Размер: {:.1} МБ", mb))));
|
||||||
|
}
|
||||||
|
lines.push(Line::from(""));
|
||||||
|
lines.push(Line::from(Span::styled(
|
||||||
|
" [Y] Обновить [N / Esc] Пропустить",
|
||||||
|
Style::default().fg(Color::Yellow),
|
||||||
|
)));
|
||||||
|
|
||||||
|
let block = Block::default()
|
||||||
|
.borders(Borders::ALL)
|
||||||
|
.title(" Доступно обновление ")
|
||||||
|
.border_style(Style::default().fg(Color::Cyan));
|
||||||
|
f.render_widget(Paragraph::new(lines).block(block).wrap(Wrap { trim: true }), popup_area);
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::Updating { info, downloaded, status } => {
|
||||||
|
let (title, border_color) = match status {
|
||||||
|
UpdatingStatus::Downloading => (" Загрузка обновления… ", Color::Cyan),
|
||||||
|
UpdatingStatus::Applying => (" Применение обновления… ", Color::Yellow),
|
||||||
|
UpdatingStatus::Done => (" Обновление завершено ", Color::Green),
|
||||||
|
UpdatingStatus::Failed(_) => (" Ошибка обновления ", Color::Red),
|
||||||
|
};
|
||||||
|
|
||||||
|
let bar_width = popup_area.width.saturating_sub(4) as usize;
|
||||||
|
|
||||||
|
let progress_line = if info.size > 0 {
|
||||||
|
let percent = ((*downloaded as f64 / info.size as f64) * 100.0).min(100.0) as usize;
|
||||||
|
let filled = (percent * bar_width) / 100;
|
||||||
|
format!("[{}{}] {}%", "█".repeat(filled), "░".repeat(bar_width.saturating_sub(filled)), percent)
|
||||||
|
} else {
|
||||||
|
let pos = ((*downloaded / 4096) as usize) % bar_width.max(1);
|
||||||
|
let thumb = 4.min(bar_width);
|
||||||
|
let mut bar = vec!['░'; bar_width];
|
||||||
|
for i in pos..((pos + thumb).min(bar_width)) { bar[i] = '█'; }
|
||||||
|
format!("[{}]", bar.iter().collect::<String>())
|
||||||
|
};
|
||||||
|
|
||||||
|
let status_text = match status {
|
||||||
|
UpdatingStatus::Downloading => {
|
||||||
|
if info.size > 0 {
|
||||||
|
let mb_done = *downloaded as f64 / 1_048_576.0;
|
||||||
|
let mb_total = info.size as f64 / 1_048_576.0;
|
||||||
|
format!(" {:.1} / {:.1} МБ", mb_done, mb_total)
|
||||||
|
} else {
|
||||||
|
format!(" {} КБ загружено", *downloaded / 1024)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
UpdatingStatus::Applying => " Применяется…".to_string(),
|
||||||
|
UpdatingStatus::Done => " Обновление успешно установлено. Перезапуск…".to_string(),
|
||||||
|
UpdatingStatus::Failed(msg) => format!(" Ошибка: {}", msg),
|
||||||
|
};
|
||||||
|
|
||||||
|
let mut lines = vec![
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::raw(progress_line)),
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::raw(status_text)),
|
||||||
|
];
|
||||||
|
|
||||||
|
if matches!(status, UpdatingStatus::Failed(_)) {
|
||||||
|
lines.push(Line::from(""));
|
||||||
|
lines.push(Line::from(Span::styled(" [Esc] Закрыть", Style::default().fg(Color::Yellow))));
|
||||||
|
}
|
||||||
|
|
||||||
|
let block = Block::default()
|
||||||
|
.borders(Borders::ALL)
|
||||||
|
.title(title)
|
||||||
|
.border_style(Style::default().fg(border_color));
|
||||||
|
f.render_widget(Paragraph::new(lines).block(block).wrap(Wrap { trim: true }), popup_area);
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::EndpointSelector { selected, scroll_offset } => {
|
||||||
|
let popup_area = centered_rect(70, 60, area);
|
||||||
|
f.render_widget(Clear, popup_area);
|
||||||
|
|
||||||
|
let endpoints = &config.endpoints;
|
||||||
|
let total = endpoints.len();
|
||||||
|
let inner_h = popup_area.height.saturating_sub(2) as usize;
|
||||||
|
|
||||||
|
let name_col_w = endpoints.iter()
|
||||||
|
.map(|ep| ep.name.chars().count())
|
||||||
|
.max()
|
||||||
|
.unwrap_or(8)
|
||||||
|
.max(8);
|
||||||
|
|
||||||
|
if *selected < *scroll_offset {
|
||||||
|
*scroll_offset = *selected;
|
||||||
|
} else if inner_h > 0 && *selected >= *scroll_offset + inner_h {
|
||||||
|
*scroll_offset = selected.saturating_sub(inner_h - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
let start = *scroll_offset;
|
||||||
|
let end = (start + inner_h).min(total);
|
||||||
|
|
||||||
|
let items: Vec<ListItem> = endpoints.get(start..end).unwrap_or(&[])
|
||||||
|
.iter()
|
||||||
|
.enumerate()
|
||||||
|
.map(|(i, ep)| {
|
||||||
|
let abs = start + i;
|
||||||
|
let is_selected = abs == *selected;
|
||||||
|
let is_active = ep.url == config.active_endpoint;
|
||||||
|
|
||||||
|
let prefix = if is_selected { "▶ " } else { " " };
|
||||||
|
let n = ep.name.chars().count();
|
||||||
|
let pad = if n < name_col_w { " ".repeat(name_col_w - n) } else { String::new() };
|
||||||
|
|
||||||
|
let (bg, name_fg, url_fg) = if is_selected {
|
||||||
|
(Color::Blue, Color::White, Color::Gray)
|
||||||
|
} else {
|
||||||
|
(Color::Reset, Color::White, Color::DarkGray)
|
||||||
|
};
|
||||||
|
|
||||||
|
let name_style = if is_active {
|
||||||
|
Style::default().fg(name_fg).bg(bg).add_modifier(Modifier::BOLD)
|
||||||
|
} else {
|
||||||
|
Style::default().fg(name_fg).bg(bg)
|
||||||
|
};
|
||||||
|
|
||||||
|
ListItem::new(Line::from(vec![
|
||||||
|
Span::styled(prefix, Style::default().bg(bg)),
|
||||||
|
Span::styled(format!("{}{}", ep.name, pad), name_style),
|
||||||
|
Span::styled(" ", Style::default().bg(bg)),
|
||||||
|
Span::styled(ep.url.clone(), Style::default().fg(url_fg).bg(bg)),
|
||||||
|
]))
|
||||||
|
})
|
||||||
|
.collect();
|
||||||
|
|
||||||
|
let active_name = config.endpoints.iter()
|
||||||
|
.find(|ep| ep.url == config.active_endpoint)
|
||||||
|
.map(|ep| ep.name.as_str())
|
||||||
|
.unwrap_or("—");
|
||||||
|
|
||||||
|
let block = Block::default()
|
||||||
|
.borders(Borders::ALL)
|
||||||
|
.title(format!(" Эндпоинты [активен: {}] ", active_name))
|
||||||
|
.title(
|
||||||
|
Line::from(Span::styled(" [Esc] ", Style::default().fg(Color::DarkGray)))
|
||||||
|
.alignment(Alignment::Right),
|
||||||
|
)
|
||||||
|
.title_bottom(
|
||||||
|
Line::from(Span::styled(
|
||||||
|
" [N] добавить [E] редактировать [D] удалить ",
|
||||||
|
Style::default().fg(Color::DarkGray),
|
||||||
|
))
|
||||||
|
.alignment(Alignment::Right),
|
||||||
|
)
|
||||||
|
.border_style(Style::default().fg(Color::Cyan));
|
||||||
|
|
||||||
|
f.render_widget(List::new(items).block(block), popup_area);
|
||||||
|
|
||||||
|
if total > inner_h {
|
||||||
|
let max_off = total.saturating_sub(inner_h);
|
||||||
|
let scrollbar = Scrollbar::default()
|
||||||
|
.orientation(ScrollbarOrientation::VerticalRight)
|
||||||
|
.begin_symbol(Some("▲"))
|
||||||
|
.end_symbol(Some("▼"))
|
||||||
|
.thumb_symbol("█");
|
||||||
|
let mut sb_state = ScrollbarState::new(max_off).position(start);
|
||||||
|
let sb_area = Rect {
|
||||||
|
x: popup_area.x + popup_area.width.saturating_sub(1),
|
||||||
|
y: popup_area.y + 1,
|
||||||
|
width: 1,
|
||||||
|
height: popup_area.height.saturating_sub(2),
|
||||||
|
};
|
||||||
|
f.render_stateful_widget(scrollbar, sb_area, &mut sb_state);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::UpsertEndpoint { edit_index, fields, active_field, error, .. } => {
|
||||||
|
let popup_area = centered_rect(60, 50, area);
|
||||||
|
f.render_widget(Clear, popup_area);
|
||||||
|
|
||||||
|
let chunks = Layout::default()
|
||||||
|
.direction(Direction::Vertical)
|
||||||
|
.margin(1)
|
||||||
|
.constraints([
|
||||||
|
Constraint::Length(3),
|
||||||
|
Constraint::Length(3),
|
||||||
|
Constraint::Length(2),
|
||||||
|
Constraint::Min(0),
|
||||||
|
])
|
||||||
|
.split(popup_area);
|
||||||
|
|
||||||
|
render_text_field(f, " Название ", &fields[0], *active_field == 0, chunks[0]);
|
||||||
|
render_text_field(f, " URL ", &fields[1], *active_field == 1, chunks[1]);
|
||||||
|
|
||||||
|
if let Some(err) = error {
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(err.as_str())
|
||||||
|
.style(Style::default().fg(Color::Red))
|
||||||
|
.wrap(Wrap { trim: true }),
|
||||||
|
chunks[2],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Real terminal cursor in the active field
|
||||||
|
let af = *active_field;
|
||||||
|
let cx = (chunks[af].x + 1 + display_cols(&fields[af].buf, fields[af].cursor))
|
||||||
|
.min(chunks[af].x + chunks[af].width.saturating_sub(2));
|
||||||
|
f.set_cursor_position((cx, chunks[af].y + 1));
|
||||||
|
|
||||||
|
|
||||||
|
let (title, hint) = if edit_index.is_some() {
|
||||||
|
(" Редактировать эндпоинт ", " Enter — далее / сохранить ")
|
||||||
|
} else {
|
||||||
|
(" Добавить эндпоинт ", " Enter — далее / добавить ")
|
||||||
|
};
|
||||||
|
|
||||||
|
f.render_widget(
|
||||||
|
Block::default()
|
||||||
|
.borders(Borders::ALL)
|
||||||
|
.title(title)
|
||||||
|
.title(
|
||||||
|
Line::from(Span::styled(" [Esc] ", Style::default().fg(Color::DarkGray)))
|
||||||
|
.alignment(Alignment::Right),
|
||||||
|
)
|
||||||
|
.title_bottom(
|
||||||
|
Line::from(Span::styled(hint, Style::default().fg(Color::DarkGray)))
|
||||||
|
.alignment(Alignment::Right),
|
||||||
|
)
|
||||||
|
.border_style(Style::default().fg(Color::Cyan)),
|
||||||
|
popup_area,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::AccessDenied { endpoint_url } => {
|
||||||
|
let popup_area = centered_rect(55, 30, area);
|
||||||
|
f.render_widget(Clear, popup_area);
|
||||||
|
|
||||||
|
let name = config.endpoints.iter()
|
||||||
|
.find(|ep| &ep.url == endpoint_url)
|
||||||
|
.map(|ep| ep.name.as_str())
|
||||||
|
.unwrap_or(endpoint_url.as_str());
|
||||||
|
|
||||||
|
let text = vec![
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::raw(format!(" Сервер «{}» запретил доступ.", name))),
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::styled(
|
||||||
|
" [Y] Запросить доступ [N / Esc] Отмена",
|
||||||
|
Style::default().fg(Color::Yellow),
|
||||||
|
)),
|
||||||
|
];
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(text)
|
||||||
|
.block(Block::default().borders(Borders::ALL).title(" Доступ запрещён ")
|
||||||
|
.border_style(Style::default().fg(Color::Red)))
|
||||||
|
.wrap(Wrap { trim: true }),
|
||||||
|
popup_area,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::ConfirmDeleteEndpoint { index, .. } => {
|
||||||
|
let popup_area = centered_rect(50, 30, area);
|
||||||
|
f.render_widget(Clear, popup_area);
|
||||||
|
|
||||||
|
let name = config.endpoints.get(*index).map(|ep| ep.name.as_str()).unwrap_or("?");
|
||||||
|
let text = vec![
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::raw(format!(" Удалить эндпоинт «{}»?", name))),
|
||||||
|
Line::from(""),
|
||||||
|
Line::from(Span::styled(" [Y] Да [N / Esc] Нет", Style::default().fg(Color::Yellow))),
|
||||||
|
];
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(text)
|
||||||
|
.block(Block::default().borders(Borders::ALL).title(" Подтверждение ")
|
||||||
|
.border_style(Style::default().fg(Color::Yellow)))
|
||||||
|
.wrap(Wrap { trim: true }),
|
||||||
|
popup_area,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Renders a labelled text field with colored border for active/inactive state.
|
||||||
|
fn render_text_field(f: &mut Frame, label: &str, input: &TextInput, is_active: bool, area: Rect) {
|
||||||
|
let color = if is_active { Color::Cyan } else { Color::DarkGray };
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(input.buf.as_str()).block(
|
||||||
|
Block::default().borders(Borders::ALL).title(label)
|
||||||
|
.border_style(Style::default().fg(color)),
|
||||||
|
),
|
||||||
|
area,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
fn render_command(
|
fn render_command(
|
||||||
f: &mut Frame,
|
f: &mut Frame,
|
||||||
cmd: &executor::StructuredCommand,
|
cmd: &executor::StructuredCommand,
|
||||||
input_buffer: &str,
|
input: &TextInput,
|
||||||
menu_selected_index: usize,
|
menu_selected_index: usize,
|
||||||
|
form_cursor: usize,
|
||||||
|
form_values: &[bool],
|
||||||
area: Rect,
|
area: Rect,
|
||||||
) {
|
) {
|
||||||
match cmd {
|
match cmd {
|
||||||
executor::StructuredCommand::Input { prompt, secret, .. } => {
|
executor::StructuredCommand::Input { prompt, secret, .. } => {
|
||||||
let display = if *secret {
|
let display = if *secret {
|
||||||
"•".repeat(input_buffer.chars().count())
|
"•".repeat(input.buf.chars().count())
|
||||||
} else {
|
} else {
|
||||||
input_buffer.to_string()
|
input.buf.clone()
|
||||||
};
|
};
|
||||||
let paragraph = Paragraph::new(display.as_str()).block(
|
f.render_widget(
|
||||||
Block::default()
|
Paragraph::new(display.as_str()).block(
|
||||||
.borders(Borders::ALL)
|
Block::default().borders(Borders::ALL).title(format!(" {} ", prompt))
|
||||||
.title(format!(" {} ", prompt))
|
|
||||||
.border_style(Style::default().fg(Color::Cyan)),
|
.border_style(Style::default().fg(Color::Cyan)),
|
||||||
|
),
|
||||||
|
area,
|
||||||
);
|
);
|
||||||
f.render_widget(paragraph, area);
|
let col = if *secret { input.cursor as u16 } else { display_cols(&input.buf, input.cursor) };
|
||||||
let cursor_x = (area.x + 1 + input_buffer.chars().count() as u16)
|
let cursor_x = (area.x + 1 + col).min(area.x + area.width.saturating_sub(2));
|
||||||
.min(area.x + area.width.saturating_sub(2));
|
|
||||||
f.set_cursor_position((cursor_x, area.y + 1));
|
f.set_cursor_position((cursor_x, area.y + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -273,12 +673,7 @@ fn render_command(
|
|||||||
if i == menu_selected_index {
|
if i == menu_selected_index {
|
||||||
ListItem::new(Line::from(vec![
|
ListItem::new(Line::from(vec![
|
||||||
Span::styled(" ▶ ", Style::default().fg(Color::Cyan)),
|
Span::styled(" ▶ ", Style::default().fg(Color::Cyan)),
|
||||||
Span::styled(
|
Span::styled(opt.label.as_str(), Style::default().bg(Color::Blue).add_modifier(Modifier::BOLD)),
|
||||||
opt.label.as_str(),
|
|
||||||
Style::default()
|
|
||||||
.bg(Color::Blue)
|
|
||||||
.add_modifier(Modifier::BOLD),
|
|
||||||
),
|
|
||||||
]))
|
]))
|
||||||
} else {
|
} else {
|
||||||
ListItem::new(Line::from(vec![
|
ListItem::new(Line::from(vec![
|
||||||
@@ -292,40 +687,32 @@ fn render_command(
|
|||||||
let mut state = ListState::default();
|
let mut state = ListState::default();
|
||||||
state.select(Some(menu_selected_index));
|
state.select(Some(menu_selected_index));
|
||||||
|
|
||||||
let list = List::new(items).block(
|
f.render_stateful_widget(
|
||||||
Block::default()
|
List::new(items).block(
|
||||||
.borders(Borders::ALL)
|
Block::default().borders(Borders::ALL).title(format!(" {} ", prompt))
|
||||||
.title(format!(" {} ", prompt))
|
|
||||||
.title_bottom(
|
.title_bottom(
|
||||||
Line::from(Span::styled(
|
Line::from(Span::styled(" ↑↓ навигация Enter выбор ", Style::default().fg(Color::DarkGray)))
|
||||||
" ↑↓ навигация Enter выбор ",
|
|
||||||
Style::default().fg(Color::DarkGray),
|
|
||||||
))
|
|
||||||
.alignment(Alignment::Right),
|
.alignment(Alignment::Right),
|
||||||
)
|
)
|
||||||
.border_style(Style::default().fg(Color::Cyan)),
|
.border_style(Style::default().fg(Color::Cyan)),
|
||||||
|
),
|
||||||
|
area,
|
||||||
|
&mut state,
|
||||||
);
|
);
|
||||||
f.render_stateful_widget(list, area, &mut state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
executor::StructuredCommand::Confirm { prompt } => {
|
executor::StructuredCommand::Confirm { prompt } => {
|
||||||
let text = vec![
|
f.render_widget(
|
||||||
|
Paragraph::new(vec![
|
||||||
Line::from(Span::raw(prompt.as_str())),
|
Line::from(Span::raw(prompt.as_str())),
|
||||||
Line::from(""),
|
Line::from(""),
|
||||||
Line::from(Span::styled(
|
Line::from(Span::styled(" [Y] Да [N / Esc] Нет", Style::default().fg(Color::Yellow))),
|
||||||
" [Y] Да [N / Esc] Нет",
|
])
|
||||||
Style::default().fg(Color::Yellow),
|
.block(Block::default().borders(Borders::ALL).title(" Подтверждение ")
|
||||||
)),
|
.border_style(Style::default().fg(Color::Yellow)))
|
||||||
];
|
.wrap(Wrap { trim: true }),
|
||||||
let paragraph = Paragraph::new(text)
|
area,
|
||||||
.block(
|
);
|
||||||
Block::default()
|
|
||||||
.borders(Borders::ALL)
|
|
||||||
.title(" Подтверждение ")
|
|
||||||
.border_style(Style::default().fg(Color::Yellow)),
|
|
||||||
)
|
|
||||||
.wrap(Wrap { trim: true });
|
|
||||||
f.render_widget(paragraph, area);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
executor::StructuredCommand::Message { level, text } => {
|
executor::StructuredCommand::Message { level, text } => {
|
||||||
@@ -334,81 +721,190 @@ fn render_command(
|
|||||||
executor::MessageLevel::Warn => Color::Yellow,
|
executor::MessageLevel::Warn => Color::Yellow,
|
||||||
executor::MessageLevel::Error => Color::Red,
|
executor::MessageLevel::Error => Color::Red,
|
||||||
};
|
};
|
||||||
let lines = vec![
|
f.render_widget(
|
||||||
|
Paragraph::new(vec![
|
||||||
Line::from(Span::styled(text.as_str(), Style::default().fg(color))),
|
Line::from(Span::styled(text.as_str(), Style::default().fg(color))),
|
||||||
Line::from(""),
|
Line::from(""),
|
||||||
Line::from(Span::styled(
|
Line::from(Span::styled(" Нажмите Enter для продолжения", Style::default().fg(Color::DarkGray))),
|
||||||
" Нажмите Enter для продолжения",
|
])
|
||||||
Style::default().fg(Color::DarkGray),
|
.block(Block::default().borders(Borders::ALL).title(" Сообщение ")
|
||||||
)),
|
.border_style(Style::default().fg(color)))
|
||||||
];
|
.wrap(Wrap { trim: true }),
|
||||||
let paragraph = Paragraph::new(lines)
|
area,
|
||||||
.block(
|
);
|
||||||
Block::default()
|
|
||||||
.borders(Borders::ALL)
|
|
||||||
.title(" Сообщение ")
|
|
||||||
.border_style(Style::default().fg(color)),
|
|
||||||
)
|
|
||||||
.wrap(Wrap { trim: true });
|
|
||||||
f.render_widget(paragraph, area);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
executor::StructuredCommand::Progress { percent, message } => {
|
executor::StructuredCommand::Progress { percent, message } => {
|
||||||
|
let msg = message.as_deref().unwrap_or("");
|
||||||
|
match percent {
|
||||||
|
Some(pct) => {
|
||||||
let bar_width = area.width.saturating_sub(4) as usize;
|
let bar_width = area.width.saturating_sub(4) as usize;
|
||||||
let filled = (*percent as usize * bar_width) / 100;
|
let filled = (*pct as usize * bar_width) / 100;
|
||||||
let bar = format!(
|
let bar = format!(
|
||||||
"[{}{}] {}%",
|
"[{}{}] {}%",
|
||||||
"█".repeat(filled),
|
"█".repeat(filled),
|
||||||
"░".repeat(bar_width.saturating_sub(filled)),
|
"░".repeat(bar_width.saturating_sub(filled)),
|
||||||
percent
|
pct
|
||||||
);
|
);
|
||||||
let msg = message.as_deref().unwrap_or("");
|
f.render_widget(
|
||||||
let paragraph = Paragraph::new(vec![Line::from(bar), Line::from(msg)]).block(
|
Paragraph::new(vec![Line::from(bar), Line::from(msg)])
|
||||||
Block::default()
|
.block(Block::default().borders(Borders::ALL).title(" Прогресс ")
|
||||||
.borders(Borders::ALL)
|
.border_style(Style::default().fg(Color::Cyan))),
|
||||||
.title(" Прогресс ")
|
area,
|
||||||
.border_style(Style::default().fg(Color::Cyan)),
|
|
||||||
);
|
);
|
||||||
f.render_widget(paragraph, area);
|
}
|
||||||
|
None => {
|
||||||
|
const SPINNER: &[&str] = &["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
|
||||||
|
let frame = (std::time::SystemTime::now()
|
||||||
|
.duration_since(std::time::UNIX_EPOCH)
|
||||||
|
.unwrap_or_default()
|
||||||
|
.as_millis() / 120) as usize;
|
||||||
|
let spinner = SPINNER[frame % SPINNER.len()];
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(format!("{} {}", spinner, msg))
|
||||||
|
.block(Block::default().borders(Borders::ALL).title(" Прогресс ")
|
||||||
|
.border_style(Style::default().fg(Color::Cyan))),
|
||||||
|
area,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exec is handled by the main loop before rendering; this arm is
|
executor::StructuredCommand::Form { prompt, fields } => {
|
||||||
// never reached in practice but satisfies the exhaustiveness check.
|
let items: Vec<ListItem> = fields.iter().enumerate().map(|(i, field)| {
|
||||||
executor::StructuredCommand::Exec { shell } => {
|
let checked = form_values.get(i).copied().unwrap_or(false);
|
||||||
let paragraph = Paragraph::new(format!("Запуск: {}", shell))
|
let icon = match field.field_type {
|
||||||
.block(
|
executor::FormFieldType::Checkbox => if checked { "[✓]" } else { "[ ]" },
|
||||||
Block::default()
|
executor::FormFieldType::Radio => if checked { "(●)" } else { "( )" },
|
||||||
.borders(Borders::ALL)
|
};
|
||||||
.title(" Внешнее приложение ")
|
let is_cursor = i == form_cursor;
|
||||||
.border_style(Style::default().fg(Color::Magenta)),
|
let prefix = if is_cursor { "▶ " } else { " " };
|
||||||
|
let style = if is_cursor {
|
||||||
|
Style::default().bg(Color::Blue).add_modifier(Modifier::BOLD)
|
||||||
|
} else {
|
||||||
|
Style::default()
|
||||||
|
};
|
||||||
|
ListItem::new(Line::from(vec![
|
||||||
|
Span::raw(format!("{}{} {}", prefix, icon, field.label)),
|
||||||
|
])).style(style)
|
||||||
|
}).collect();
|
||||||
|
|
||||||
|
let mut state = ListState::default();
|
||||||
|
state.select(Some(form_cursor));
|
||||||
|
|
||||||
|
f.render_stateful_widget(
|
||||||
|
List::new(items).block(
|
||||||
|
Block::default().borders(Borders::ALL).title(format!(" {} ", prompt))
|
||||||
|
.title_bottom(
|
||||||
|
Line::from(Span::styled(
|
||||||
|
" Space — переключить Enter/l — применить Esc — отмена ",
|
||||||
|
Style::default().fg(Color::DarkGray),
|
||||||
|
)).alignment(Alignment::Right),
|
||||||
)
|
)
|
||||||
.wrap(Wrap { trim: true });
|
.border_style(Style::default().fg(Color::Cyan)),
|
||||||
f.render_widget(paragraph, area);
|
),
|
||||||
|
area,
|
||||||
|
&mut state,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
executor::StructuredCommand::Exec { shell } => {
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(format!("Запуск: {}", shell))
|
||||||
|
.block(Block::default().borders(Borders::ALL).title(" Внешнее приложение ")
|
||||||
|
.border_style(Style::default().fg(Color::Magenta)))
|
||||||
|
.wrap(Wrap { trim: true }),
|
||||||
|
area,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Display-column width of `buf` up to char index `cursor`.
|
||||||
|
/// Accounts for wide characters (emoji, CJK) that occupy 2 terminal columns.
|
||||||
|
fn display_cols(buf: &str, cursor: usize) -> u16 {
|
||||||
|
buf.chars()
|
||||||
|
.take(cursor)
|
||||||
|
.map(|c| UnicodeWidthChar::width(c).unwrap_or(0))
|
||||||
|
.sum::<usize>() as u16
|
||||||
|
}
|
||||||
|
|
||||||
fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect {
|
fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect {
|
||||||
let popup_layout = Layout::default()
|
let popup_layout = Layout::default()
|
||||||
.direction(Direction::Vertical)
|
.direction(Direction::Vertical)
|
||||||
.constraints(
|
.constraints([
|
||||||
[
|
|
||||||
Constraint::Percentage((100 - percent_y) / 2),
|
Constraint::Percentage((100 - percent_y) / 2),
|
||||||
Constraint::Percentage(percent_y),
|
Constraint::Percentage(percent_y),
|
||||||
Constraint::Percentage((100 - percent_y) / 2),
|
Constraint::Percentage((100 - percent_y) / 2),
|
||||||
]
|
].as_ref())
|
||||||
.as_ref(),
|
|
||||||
)
|
|
||||||
.split(r);
|
.split(r);
|
||||||
Layout::default()
|
Layout::default()
|
||||||
.direction(Direction::Horizontal)
|
.direction(Direction::Horizontal)
|
||||||
.constraints(
|
.constraints([
|
||||||
[
|
|
||||||
Constraint::Percentage((100 - percent_x) / 2),
|
Constraint::Percentage((100 - percent_x) / 2),
|
||||||
Constraint::Percentage(percent_x),
|
Constraint::Percentage(percent_x),
|
||||||
Constraint::Percentage((100 - percent_x) / 2),
|
Constraint::Percentage((100 - percent_x) / 2),
|
||||||
]
|
].as_ref())
|
||||||
.as_ref(),
|
|
||||||
)
|
|
||||||
.split(popup_layout[1])[1]
|
.split(popup_layout[1])[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn wrap_to_lines(text: &str, max_width: usize) -> Vec<String> {
|
||||||
|
if max_width == 0 || text.is_empty() {
|
||||||
|
return vec![text.to_string()];
|
||||||
|
}
|
||||||
|
let mut lines: Vec<String> = Vec::new();
|
||||||
|
let mut current = String::new();
|
||||||
|
for word in text.split_whitespace() {
|
||||||
|
let wlen = word.chars().count();
|
||||||
|
if current.is_empty() {
|
||||||
|
if wlen > max_width {
|
||||||
|
let chars: Vec<char> = word.chars().collect();
|
||||||
|
for chunk in chars.chunks(max_width) {
|
||||||
|
let s: String = chunk.iter().collect();
|
||||||
|
if s.chars().count() == max_width {
|
||||||
|
lines.push(s);
|
||||||
|
} else {
|
||||||
|
current = s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
current = word.to_string();
|
||||||
|
}
|
||||||
|
} else if current.chars().count() + 1 + wlen <= max_width {
|
||||||
|
current.push(' ');
|
||||||
|
current.push_str(word);
|
||||||
|
} else {
|
||||||
|
lines.push(std::mem::take(&mut current));
|
||||||
|
current = word.to_string();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if !current.is_empty() {
|
||||||
|
lines.push(current);
|
||||||
|
}
|
||||||
|
if lines.is_empty() {
|
||||||
|
lines.push(String::new());
|
||||||
|
}
|
||||||
|
lines
|
||||||
|
}
|
||||||
|
|
||||||
|
fn h_scroll(parsed: Vec<(ratatui::style::Style, String)>, offset: usize) -> Vec<Span<'static>> {
|
||||||
|
let mut skip = offset;
|
||||||
|
let mut result = Vec::new();
|
||||||
|
for (style, text) in parsed {
|
||||||
|
if skip == 0 {
|
||||||
|
result.push(Span::styled(text, style));
|
||||||
|
} else {
|
||||||
|
let len = text.chars().count();
|
||||||
|
if skip >= len {
|
||||||
|
skip -= len;
|
||||||
|
} else {
|
||||||
|
let trimmed: String = text.chars().skip(skip).collect();
|
||||||
|
skip = 0;
|
||||||
|
if !trimmed.is_empty() {
|
||||||
|
result.push(Span::styled(trimmed, style));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
result
|
||||||
|
}
|
||||||
|
|||||||
213
src/updater.rs
Normal file
213
src/updater.rs
Normal file
@@ -0,0 +1,213 @@
|
|||||||
|
// src/updater.rs
|
||||||
|
use anyhow::{Context, Result};
|
||||||
|
use futures::StreamExt;
|
||||||
|
use serde::Deserialize;
|
||||||
|
use tokio::io::AsyncWriteExt;
|
||||||
|
use tokio::sync::mpsc::UnboundedSender;
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct UpdateInfo {
|
||||||
|
pub current_version: String,
|
||||||
|
pub new_version: String,
|
||||||
|
pub download_url: String,
|
||||||
|
pub size: u64,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize)]
|
||||||
|
struct Release {
|
||||||
|
tag_name: String,
|
||||||
|
prerelease: bool,
|
||||||
|
assets: Vec<ReleaseAsset>,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Deserialize)]
|
||||||
|
struct ReleaseAsset {
|
||||||
|
name: String,
|
||||||
|
browser_download_url: String,
|
||||||
|
size: u64,
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Checks Gitea releases API for latest stable (non-prerelease) release.
|
||||||
|
/// Returns Ok(None) if already up to date or no matching asset found.
|
||||||
|
pub async fn check(api_base: &str, timeout_sec: u64) -> Result<Option<UpdateInfo>> {
|
||||||
|
let url = format!("{}/releases?limit=10&page=1", api_base);
|
||||||
|
|
||||||
|
let client = reqwest::Client::builder()
|
||||||
|
.timeout(std::time::Duration::from_secs(timeout_sec))
|
||||||
|
.build()
|
||||||
|
.context("failed to build HTTP client")?;
|
||||||
|
|
||||||
|
let releases: Vec<Release> = client
|
||||||
|
.get(&url)
|
||||||
|
.send()
|
||||||
|
.await
|
||||||
|
.context("failed to fetch releases")?
|
||||||
|
.json()
|
||||||
|
.await
|
||||||
|
.context("failed to parse releases JSON")?;
|
||||||
|
|
||||||
|
let current_version = env!("CARGO_PKG_VERSION").to_string();
|
||||||
|
|
||||||
|
// Find the latest non-prerelease release
|
||||||
|
let latest = releases.into_iter().find(|r| !r.prerelease);
|
||||||
|
let release = match latest {
|
||||||
|
Some(r) => r,
|
||||||
|
None => return Ok(None),
|
||||||
|
};
|
||||||
|
|
||||||
|
// Strip "v" prefix and anything after "@" (e.g. "v1.0.0@master" → "1.0.0")
|
||||||
|
let tag = release.tag_name.as_str();
|
||||||
|
let tag = tag.strip_prefix('v').unwrap_or(tag);
|
||||||
|
let tag = tag.split('@').next().unwrap_or(tag).trim();
|
||||||
|
let new_version = tag.to_string();
|
||||||
|
|
||||||
|
// Only offer update if the remote version is strictly newer
|
||||||
|
if !is_newer(&new_version, ¤t_version) {
|
||||||
|
return Ok(None);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Find a matching asset
|
||||||
|
let asset_prefix = format!(
|
||||||
|
"{}-{}-{}",
|
||||||
|
env!("CARGO_PKG_NAME"),
|
||||||
|
std::env::consts::OS,
|
||||||
|
std::env::consts::ARCH
|
||||||
|
);
|
||||||
|
|
||||||
|
let asset = release
|
||||||
|
.assets
|
||||||
|
.into_iter()
|
||||||
|
.find(|a| a.name.starts_with(&asset_prefix));
|
||||||
|
|
||||||
|
let asset = match asset {
|
||||||
|
Some(a) => a,
|
||||||
|
None => return Ok(None),
|
||||||
|
};
|
||||||
|
|
||||||
|
Ok(Some(UpdateInfo {
|
||||||
|
current_version,
|
||||||
|
new_version,
|
||||||
|
download_url: asset.browser_download_url,
|
||||||
|
size: asset.size,
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Downloads binary to temp file with streaming progress, atomically replaces
|
||||||
|
/// current exe, sets chmod 755.
|
||||||
|
/// Returns the path of the replaced executable (captured before rename so it
|
||||||
|
/// remains valid even after the old inode is marked "(deleted)" by the kernel).
|
||||||
|
pub async fn download_and_apply(
|
||||||
|
info: &UpdateInfo,
|
||||||
|
progress_tx: UnboundedSender<u64>,
|
||||||
|
) -> Result<std::path::PathBuf> {
|
||||||
|
let client = reqwest::Client::new();
|
||||||
|
|
||||||
|
let response = client
|
||||||
|
.get(&info.download_url)
|
||||||
|
.send()
|
||||||
|
.await
|
||||||
|
.context("failed to start download")?
|
||||||
|
.error_for_status()
|
||||||
|
.context("download request failed with error status")?;
|
||||||
|
|
||||||
|
// Write to a temp file next to the current exe so rename is atomic
|
||||||
|
let current_exe = std::env::current_exe().context("failed to get current exe path")?;
|
||||||
|
let exe_dir = current_exe
|
||||||
|
.parent()
|
||||||
|
.context("current exe has no parent directory")?;
|
||||||
|
|
||||||
|
let tmp_path = exe_dir.join(format!(".{}.tmp", env!("CARGO_PKG_NAME")));
|
||||||
|
|
||||||
|
let mut file = tokio::fs::File::create(&tmp_path)
|
||||||
|
.await
|
||||||
|
.context("failed to create temp file")?;
|
||||||
|
|
||||||
|
let mut stream = response.bytes_stream();
|
||||||
|
let mut downloaded: u64 = 0;
|
||||||
|
|
||||||
|
while let Some(chunk) = stream.next().await {
|
||||||
|
let chunk = chunk.context("error reading download chunk")?;
|
||||||
|
downloaded += chunk.len() as u64;
|
||||||
|
file.write_all(&chunk)
|
||||||
|
.await
|
||||||
|
.context("failed to write to temp file")?;
|
||||||
|
let _ = progress_tx.send(downloaded);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flush and close
|
||||||
|
drop(file);
|
||||||
|
|
||||||
|
// chmod 755
|
||||||
|
#[cfg(unix)]
|
||||||
|
{
|
||||||
|
use std::os::unix::fs::PermissionsExt;
|
||||||
|
let perms = std::fs::Permissions::from_mode(0o755);
|
||||||
|
std::fs::set_permissions(&tmp_path, perms).context("failed to set permissions")?;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Atomically replace current exe.
|
||||||
|
// current_exe is captured BEFORE this rename — after rename, /proc/self/exe
|
||||||
|
// on Linux returns the path with " (deleted)" appended, but the PathBuf we
|
||||||
|
// hold still refers to the correct filesystem path of the new binary.
|
||||||
|
std::fs::rename(&tmp_path, ¤t_exe).context("failed to replace current exe")?;
|
||||||
|
|
||||||
|
Ok(current_exe)
|
||||||
|
}
|
||||||
|
|
||||||
|
// ── Update-target file ───────────────────────────────────────────────────────
|
||||||
|
// Written just before exec. On next startup we compare the expected version
|
||||||
|
// with CARGO_PKG_VERSION. A mismatch means the replacement didn't work
|
||||||
|
// (wrong asset, failed rename, etc.) and we show an error instead of looping.
|
||||||
|
|
||||||
|
fn update_target_path() -> std::path::PathBuf {
|
||||||
|
crate::config::config_path()
|
||||||
|
.parent()
|
||||||
|
.expect("config dir has parent")
|
||||||
|
.join(".update_target")
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Write the expected version to disk before exec'ing the new binary.
|
||||||
|
pub fn write_update_target(new_version: &str) {
|
||||||
|
let _ = std::fs::write(update_target_path(), new_version);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Read and delete the update-target file.
|
||||||
|
/// Returns `Some(expected_version)` if a previous run attempted an update.
|
||||||
|
/// The caller should compare it with `env!("CARGO_PKG_VERSION")` and show
|
||||||
|
/// an error if they differ.
|
||||||
|
pub fn take_update_target() -> Option<String> {
|
||||||
|
let path = update_target_path();
|
||||||
|
if !path.exists() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
let version = std::fs::read_to_string(&path).ok()?;
|
||||||
|
let _ = std::fs::remove_file(&path);
|
||||||
|
Some(version.trim().to_string())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns true if `candidate` is strictly greater than `current` by semver rules.
|
||||||
|
/// Parses `MAJOR.MINOR.PATCH`; any unparseable component is treated as 0.
|
||||||
|
fn is_newer(candidate: &str, current: &str) -> bool {
|
||||||
|
fn parse(v: &str) -> (u64, u64, u64) {
|
||||||
|
let mut parts = v.splitn(3, '.').map(|s| s.parse::<u64>().unwrap_or(0));
|
||||||
|
(parts.next().unwrap_or(0), parts.next().unwrap_or(0), parts.next().unwrap_or(0))
|
||||||
|
}
|
||||||
|
parse(candidate) > parse(current)
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Replaces current process via execv (Unix). Never returns on success.
|
||||||
|
/// `exe_path` must be the path captured *before* the binary was replaced —
|
||||||
|
/// do NOT call std::env::current_exe() here, it returns "(deleted)" on Linux.
|
||||||
|
#[cfg(unix)]
|
||||||
|
pub fn exec_updated(exe_path: &std::path::Path) -> ! {
|
||||||
|
use std::os::unix::process::CommandExt;
|
||||||
|
|
||||||
|
let args: Vec<String> = std::env::args().collect();
|
||||||
|
|
||||||
|
let err = std::process::Command::new(exe_path)
|
||||||
|
.args(&args[1..])
|
||||||
|
.exec();
|
||||||
|
|
||||||
|
eprintln!("Failed to exec updated binary: {}", err);
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
64
uninstall.sh
Executable file
64
uninstall.sh
Executable file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BINARY="ostiary"
|
||||||
|
INSTALL_DIR="$HOME/.local/bin"
|
||||||
|
CONFIG_DIR="$HOME/.config/$BINARY"
|
||||||
|
|
||||||
|
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
|
||||||
|
CYAN='\033[0;36m'; NC='\033[0m'
|
||||||
|
|
||||||
|
info() { echo -e "${CYAN}[ostiary]${NC} $*"; }
|
||||||
|
ok() { echo -e "${GREEN}[ostiary]${NC} $*"; }
|
||||||
|
warn() { echo -e "${YELLOW}[ostiary]${NC} $*"; }
|
||||||
|
|
||||||
|
# Read from /dev/tty so the script works when piped through bash
|
||||||
|
# (e.g. curl ... | bash), where stdin is the pipe, not the terminal.
|
||||||
|
ask() {
|
||||||
|
local answer
|
||||||
|
read -rp "$1 [y/N] " answer </dev/tty
|
||||||
|
[[ "$answer" =~ ^[Yy]$ ]]
|
||||||
|
}
|
||||||
|
|
||||||
|
# ── Remove binary ────────────────────────────────────────────────────────────
|
||||||
|
BINARY_PATH="$INSTALL_DIR/$BINARY"
|
||||||
|
|
||||||
|
if [ -f "$BINARY_PATH" ]; then
|
||||||
|
info "Найден бинарник: $BINARY_PATH"
|
||||||
|
if ask " Удалить?"; then
|
||||||
|
rm "$BINARY_PATH"
|
||||||
|
ok "Бинарник удалён"
|
||||||
|
else
|
||||||
|
ok "Бинарник оставлен"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
warn "Бинарник не найден в $BINARY_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ── Remove config ────────────────────────────────────────────────────────────
|
||||||
|
echo ""
|
||||||
|
if [ -d "$CONFIG_DIR" ]; then
|
||||||
|
info "Найден конфиг: $CONFIG_DIR"
|
||||||
|
if ask " Удалить конфиг и настройки?"; then
|
||||||
|
rm -rf "$CONFIG_DIR"
|
||||||
|
ok "Конфиг удалён"
|
||||||
|
else
|
||||||
|
ok "Конфиг оставлен: $CONFIG_DIR"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# ── Remove PATH entry from shell profile ─────────────────────────────────────
|
||||||
|
for PROFILE in "$HOME/.bashrc" "$HOME/.bash_profile" "$HOME/.profile"; do
|
||||||
|
if [ -f "$PROFILE" ] && grep -qF "# Added by ostiary installer" "$PROFILE"; then
|
||||||
|
echo ""
|
||||||
|
info "Найдена запись PATH в $PROFILE"
|
||||||
|
if ask " Удалить строку PATH, добавленную установщиком?"; then
|
||||||
|
sed -i '/# Added by ostiary installer/d' "$PROFILE"
|
||||||
|
sed -i '/\.local\/bin.*PATH/d' "$PROFILE"
|
||||||
|
ok "Запись PATH удалена из $PROFILE"
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
ok "Готово"
|
||||||
Reference in New Issue
Block a user