Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9aa0ad736 | ||
|
|
a83987af19 | ||
|
|
3d6fd77d85 | ||
|
|
b438cbd6b4 | ||
|
|
25ccff3a37 | ||
|
|
6a79fb2c54 | ||
| ab4ad186e6 | |||
|
|
13abe1d42a | ||
|
|
5f152a750c | ||
|
|
4d0438a2cb | ||
|
|
bb0eb3189b | ||
|
|
b395df590e | ||
|
|
3fafc71cdd |
15
.gitignore
vendored
15
.gitignore
vendored
@@ -1,4 +1,15 @@
|
|||||||
|
# Cargo build artifacts (all levels, including src/target/ from rust-analyzer)
|
||||||
/target
|
/target
|
||||||
*txt
|
src/target/
|
||||||
.DS_Store
|
|
||||||
|
# rust-analyzer background check artifacts
|
||||||
|
**/.rust-analyzer/
|
||||||
|
**/rust-analyzer/
|
||||||
|
|
||||||
|
# Distribution binaries
|
||||||
/dist
|
/dist
|
||||||
|
|
||||||
|
# macOS metadata
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
*txt
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1123,7 +1123,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ostiary"
|
name = "ostiary"
|
||||||
version = "1.0.5"
|
version = "1.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"crossterm",
|
"crossterm",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ostiary"
|
name = "ostiary"
|
||||||
version = "1.0.5"
|
version = "1.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
386
README.md
386
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,29 +502,18 @@ 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-консоль\"},
|
||||||
{\"id\":\"cancel\", \"label\":\"Отмена\"}
|
{\"id\":\"cancel\",\"label\":\"Отмена\"}
|
||||||
]}")
|
]}")
|
||||||
|
|
||||||
case $action in
|
case $action in
|
||||||
@@ -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) и не требует никаких зависимостей на целевом сервере.
|
||||||
|
|||||||
117
install.sh
Executable file
117
install.sh
Executable file
@@ -0,0 +1,117 @@
|
|||||||
|
#!/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
|
||||||
|
warn "$INSTALL_DIR is not in PATH — adding it now..."
|
||||||
|
|
||||||
|
EXPORT_LINE="export PATH=\"\$HOME/.local/bin:\$PATH\""
|
||||||
|
|
||||||
|
# Determine which profile file to update
|
||||||
|
if [ -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
|
||||||
|
# Create .bashrc if nothing exists
|
||||||
|
PROFILE="$HOME/.bashrc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Avoid duplicate entries
|
||||||
|
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
|
||||||
|
|
||||||
|
warn "Run the following to use ostiary in this session:"
|
||||||
|
warn " export PATH=\"\$HOME/.local/bin:\$PATH\""
|
||||||
|
warn "New shells will pick it up automatically."
|
||||||
|
else
|
||||||
|
ok "$INSTALL_DIR is already in PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
ok "Done! Run: $BINARY"
|
||||||
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"-*
|
||||||
626
src/app.rs
626
src/app.rs
@@ -1,11 +1,11 @@
|
|||||||
// src/app.rs
|
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use crate::error::Result;
|
use crate::error::Result;
|
||||||
use crate::executor;
|
use crate::executor;
|
||||||
use crate::menu::{Action, InteractionMode, MenuItem, MenuItemKind, MenuRoot};
|
use crate::menu::{Action, InteractionMode, MenuItem, MenuItemKind, MenuRoot};
|
||||||
use crate::network;
|
use crate::network;
|
||||||
|
use crate::text_input::TextInput;
|
||||||
use crate::updater;
|
use crate::updater;
|
||||||
use crossterm::event::{Event as CrosstermEvent, KeyCode, KeyEventKind};
|
use crossterm::event::{Event as CrosstermEvent, KeyCode, KeyEventKind, KeyModifiers};
|
||||||
use tokio::sync::mpsc::UnboundedSender;
|
use tokio::sync::mpsc::UnboundedSender;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@@ -25,7 +25,6 @@ pub enum Event {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A pending request to hand the terminal to an external interactive process.
|
/// A pending request to hand the terminal to an external interactive process.
|
||||||
/// Set by the structured-protocol handler; consumed by the main event loop.
|
|
||||||
pub struct PendingExec {
|
pub struct PendingExec {
|
||||||
pub shell: String,
|
pub shell: String,
|
||||||
pub reply_tx: tokio::sync::mpsc::UnboundedSender<String>,
|
pub reply_tx: tokio::sync::mpsc::UnboundedSender<String>,
|
||||||
@@ -37,11 +36,10 @@ pub struct App {
|
|||||||
pub error: Option<String>,
|
pub error: Option<String>,
|
||||||
pub breadcrumbs: Vec<usize>,
|
pub breadcrumbs: Vec<usize>,
|
||||||
pub selected_index: usize,
|
pub selected_index: usize,
|
||||||
|
pub menu_scroll_offset: usize,
|
||||||
pub popup: Option<Popup>,
|
pub popup: Option<Popup>,
|
||||||
pub event_tx: UnboundedSender<Event>,
|
pub event_tx: UnboundedSender<Event>,
|
||||||
/// When set, main loop suspends ratatui, runs the command, then restores.
|
|
||||||
pub pending_exec: Option<PendingExec>,
|
pub pending_exec: Option<PendingExec>,
|
||||||
/// Exe path to exec after update; captured before the binary was replaced.
|
|
||||||
pub pending_restart: Option<std::path::PathBuf>,
|
pub pending_restart: Option<std::path::PathBuf>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,20 +52,35 @@ pub enum Popup {
|
|||||||
ExecutingBashTerminal { child: tokio::process::Child },
|
ExecutingBashTerminal { child: tokio::process::Child },
|
||||||
ExecutingStructured {
|
ExecutingStructured {
|
||||||
reply_tx: tokio::sync::mpsc::UnboundedSender<String>,
|
reply_tx: tokio::sync::mpsc::UnboundedSender<String>,
|
||||||
/// Fires SIGTERM to the script's process group on Esc.
|
|
||||||
kill_tx: Option<tokio::sync::oneshot::Sender<()>>,
|
kill_tx: Option<tokio::sync::oneshot::Sender<()>>,
|
||||||
log_buffer: Vec<String>,
|
log_buffer: Vec<String>,
|
||||||
current_command: Option<executor::StructuredCommand>,
|
current_command: Option<executor::StructuredCommand>,
|
||||||
input_buffer: String,
|
input: TextInput,
|
||||||
/// Cursor position for Menu-type commands.
|
|
||||||
menu_selected_index: usize,
|
menu_selected_index: usize,
|
||||||
/// Index of the first visible line in log_buffer (0 = top of output).
|
form_cursor: usize,
|
||||||
|
form_values: Vec<bool>,
|
||||||
log_scroll_pos: usize,
|
log_scroll_pos: usize,
|
||||||
/// When true, keep position pinned to the bottom as new output arrives.
|
log_scroll_x: usize,
|
||||||
log_follow_bottom: bool,
|
log_follow_bottom: bool,
|
||||||
/// Set when the process has exited; popup stays open until Esc.
|
|
||||||
finished: Option<i32>,
|
finished: Option<i32>,
|
||||||
},
|
},
|
||||||
|
EndpointSelector {
|
||||||
|
selected: usize,
|
||||||
|
scroll_offset: usize,
|
||||||
|
},
|
||||||
|
/// Unified add/edit popup. `edit_index = None` → adding new endpoint.
|
||||||
|
UpsertEndpoint {
|
||||||
|
edit_index: Option<usize>,
|
||||||
|
/// [0] = name, [1] = url
|
||||||
|
fields: [TextInput; 2],
|
||||||
|
active_field: usize,
|
||||||
|
error: Option<String>,
|
||||||
|
return_selected: usize,
|
||||||
|
},
|
||||||
|
ConfirmDeleteEndpoint {
|
||||||
|
index: usize,
|
||||||
|
return_selected: usize,
|
||||||
|
},
|
||||||
Downloading { progress: f32, message: String },
|
Downloading { progress: f32, message: String },
|
||||||
Message { text: String, level: MessageLevel },
|
Message { text: String, level: MessageLevel },
|
||||||
UpdateConfirm {
|
UpdateConfirm {
|
||||||
@@ -103,6 +116,7 @@ impl App {
|
|||||||
error: None,
|
error: None,
|
||||||
breadcrumbs: Vec::new(),
|
breadcrumbs: Vec::new(),
|
||||||
selected_index: 0,
|
selected_index: 0,
|
||||||
|
menu_scroll_offset: 0,
|
||||||
popup: None,
|
popup: None,
|
||||||
event_tx,
|
event_tx,
|
||||||
pending_exec: None,
|
pending_exec: None,
|
||||||
@@ -126,7 +140,7 @@ impl App {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn load_menu(&mut self) {
|
pub async fn load_menu(&mut self) {
|
||||||
let server_url = self.config.server_url.clone();
|
let server_url = self.config.active_url().to_string();
|
||||||
let timeout = self.config.timeout_sec;
|
let timeout = self.config.timeout_sec;
|
||||||
let tx = self.event_tx.clone();
|
let tx = self.event_tx.clone();
|
||||||
|
|
||||||
@@ -181,9 +195,6 @@ impl App {
|
|||||||
Ok(false)
|
Ok(false)
|
||||||
}
|
}
|
||||||
Event::StructuredCommand(cmd) => {
|
Event::StructuredCommand(cmd) => {
|
||||||
// Exec hands the terminal to an external process — clone reply_tx,
|
|
||||||
// store as pending_exec, and skip setting current_command so the
|
|
||||||
// main loop can suspend ratatui immediately.
|
|
||||||
if let executor::StructuredCommand::Exec { shell } = &cmd {
|
if let executor::StructuredCommand::Exec { shell } = &cmd {
|
||||||
if let Some(Popup::ExecutingStructured { reply_tx, .. }) = &self.popup {
|
if let Some(Popup::ExecutingStructured { reply_tx, .. }) = &self.popup {
|
||||||
self.pending_exec = Some(PendingExec {
|
self.pending_exec = Some(PendingExec {
|
||||||
@@ -197,41 +208,50 @@ impl App {
|
|||||||
if let Some(Popup::ExecutingStructured {
|
if let Some(Popup::ExecutingStructured {
|
||||||
current_command,
|
current_command,
|
||||||
menu_selected_index,
|
menu_selected_index,
|
||||||
|
form_cursor,
|
||||||
|
form_values,
|
||||||
..
|
..
|
||||||
}) = &mut self.popup
|
}) = &mut self.popup
|
||||||
{
|
{
|
||||||
if matches!(cmd, executor::StructuredCommand::Menu { .. }) {
|
match &cmd {
|
||||||
*menu_selected_index = 0;
|
executor::StructuredCommand::Menu { .. } => {
|
||||||
|
*menu_selected_index = 0;
|
||||||
|
}
|
||||||
|
executor::StructuredCommand::Form { fields, .. } => {
|
||||||
|
*form_cursor = 0;
|
||||||
|
*form_values = fields.iter().map(|f| f.default).collect();
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
}
|
}
|
||||||
*current_command = Some(cmd);
|
*current_command = Some(cmd);
|
||||||
}
|
}
|
||||||
Ok(false)
|
Ok(false)
|
||||||
}
|
}
|
||||||
Event::StructuredOutput(line) => {
|
Event::StructuredOutput(line) => {
|
||||||
if let Some(Popup::ExecutingStructured {
|
if let Some(Popup::ExecutingStructured { log_buffer, .. }) = &mut self.popup {
|
||||||
log_buffer,
|
|
||||||
log_follow_bottom,
|
|
||||||
log_scroll_pos,
|
|
||||||
..
|
|
||||||
}) = &mut self.popup
|
|
||||||
{
|
|
||||||
log_buffer.push(line);
|
log_buffer.push(line);
|
||||||
// log_follow_bottom: render will pin pos to bottom.
|
|
||||||
// Otherwise pos stays fixed → new line appears off-screen.
|
|
||||||
let _ = (log_follow_bottom, log_scroll_pos); // used by render
|
|
||||||
}
|
}
|
||||||
Ok(false)
|
Ok(false)
|
||||||
}
|
}
|
||||||
Event::StructuredFinished(exit_code) => {
|
Event::StructuredFinished(exit_code) => {
|
||||||
if let Some(Popup::ExecutingStructured { finished, .. }) = &mut self.popup {
|
if let Some(Popup::ExecutingStructured {
|
||||||
|
finished,
|
||||||
|
current_command,
|
||||||
|
..
|
||||||
|
}) = &mut self.popup
|
||||||
|
{
|
||||||
*finished = Some(exit_code);
|
*finished = Some(exit_code);
|
||||||
|
if matches!(
|
||||||
|
current_command,
|
||||||
|
Some(executor::StructuredCommand::Progress { .. })
|
||||||
|
| Some(executor::StructuredCommand::Message { .. })
|
||||||
|
) {
|
||||||
|
*current_command = None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// If popup was already closed (user pressed Esc to kill the
|
|
||||||
// script), we silently discard the exit event.
|
|
||||||
Ok(false)
|
Ok(false)
|
||||||
}
|
}
|
||||||
Event::UpdateAvailable(info) => {
|
Event::UpdateAvailable(info) => {
|
||||||
// Only show if no popup is currently open (don't interrupt running scripts)
|
|
||||||
if self.popup.is_none() {
|
if self.popup.is_none() {
|
||||||
self.popup = Some(Popup::UpdateConfirm { info });
|
self.popup = Some(Popup::UpdateConfirm { info });
|
||||||
}
|
}
|
||||||
@@ -282,13 +302,16 @@ impl App {
|
|||||||
Popup::ExecutingStructured {
|
Popup::ExecutingStructured {
|
||||||
reply_tx,
|
reply_tx,
|
||||||
kill_tx,
|
kill_tx,
|
||||||
input_buffer,
|
input,
|
||||||
current_command,
|
current_command,
|
||||||
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,
|
||||||
log_buffer,
|
log_buffer,
|
||||||
finished,
|
finished: _,
|
||||||
} => {
|
} => {
|
||||||
let is_menu = matches!(
|
let is_menu = matches!(
|
||||||
current_command,
|
current_command,
|
||||||
@@ -298,106 +321,156 @@ impl App {
|
|||||||
current_command,
|
current_command,
|
||||||
Some(executor::StructuredCommand::Confirm { .. })
|
Some(executor::StructuredCommand::Confirm { .. })
|
||||||
);
|
);
|
||||||
let has_command = current_command.is_some();
|
let is_form = matches!(
|
||||||
// Vim motions are disabled only when free text input is active.
|
current_command,
|
||||||
|
Some(executor::StructuredCommand::Form { .. })
|
||||||
|
);
|
||||||
|
let blocks_scroll = matches!(
|
||||||
|
current_command,
|
||||||
|
Some(executor::StructuredCommand::Input { .. })
|
||||||
|
| Some(executor::StructuredCommand::Menu { .. })
|
||||||
|
| Some(executor::StructuredCommand::Confirm { .. })
|
||||||
|
| Some(executor::StructuredCommand::Form { .. })
|
||||||
|
);
|
||||||
let is_text_input = matches!(
|
let is_text_input = matches!(
|
||||||
current_command,
|
current_command,
|
||||||
Some(executor::StructuredCommand::Input { .. })
|
Some(executor::StructuredCommand::Input { .. })
|
||||||
);
|
);
|
||||||
|
let alt = key.modifiers.intersects(KeyModifiers::ALT | KeyModifiers::SUPER);
|
||||||
|
|
||||||
match key.code {
|
match key.code {
|
||||||
// ── Log scrolling (PageUp / PageDown always work) ─
|
// ── Log scrolling ────────────────────────────────
|
||||||
KeyCode::PageUp => {
|
KeyCode::PageUp => {
|
||||||
*log_scroll_pos = log_scroll_pos.saturating_sub(10);
|
*log_scroll_pos = log_scroll_pos.saturating_sub(10);
|
||||||
*log_follow_bottom = false;
|
*log_follow_bottom = false;
|
||||||
}
|
}
|
||||||
KeyCode::PageDown => {
|
KeyCode::PageDown => {
|
||||||
*log_scroll_pos = log_scroll_pos.saturating_add(10);
|
*log_scroll_pos = log_scroll_pos.saturating_add(10);
|
||||||
// Render will clamp to max; if we're at the
|
*log_follow_bottom = *log_scroll_pos + 1 >= log_buffer.len();
|
||||||
// bottom, mark as following.
|
|
||||||
*log_follow_bottom =
|
|
||||||
*log_scroll_pos + 1 >= log_buffer.len();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Arrow keys ────────────────────────────────────
|
// ── Form navigation ──────────────────────────────
|
||||||
KeyCode::Up if is_menu => {
|
KeyCode::Up if is_form => {
|
||||||
if *menu_selected_index > 0 {
|
if *form_cursor > 0 { *form_cursor -= 1; }
|
||||||
*menu_selected_index -= 1;
|
}
|
||||||
|
KeyCode::Down if is_form => {
|
||||||
|
let len = if let Some(executor::StructuredCommand::Form { fields, .. }) = current_command {
|
||||||
|
fields.len()
|
||||||
|
} else { 0 };
|
||||||
|
if *form_cursor + 1 < len { *form_cursor += 1; }
|
||||||
|
}
|
||||||
|
KeyCode::Char(' ') if is_form => {
|
||||||
|
let cursor = *form_cursor;
|
||||||
|
let toggle = if let Some(executor::StructuredCommand::Form { fields, .. }) = current_command {
|
||||||
|
fields.get(cursor).map(|f| {
|
||||||
|
let group_indices: Vec<usize> = fields.iter()
|
||||||
|
.enumerate()
|
||||||
|
.filter(|(_, ff)| ff.group.is_some() && ff.group == f.group)
|
||||||
|
.map(|(i, _)| i)
|
||||||
|
.collect();
|
||||||
|
(f.field_type.clone(), group_indices)
|
||||||
|
})
|
||||||
|
} else { None };
|
||||||
|
|
||||||
|
if let Some((ftype, group_indices)) = toggle {
|
||||||
|
match ftype {
|
||||||
|
executor::FormFieldType::Checkbox => {
|
||||||
|
if let Some(v) = form_values.get_mut(cursor) {
|
||||||
|
*v = !*v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
executor::FormFieldType::Radio => {
|
||||||
|
for i in group_indices {
|
||||||
|
if let Some(v) = form_values.get_mut(i) {
|
||||||
|
*v = i == cursor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ── Arrow / cursor keys ──────────────────────────
|
||||||
|
KeyCode::Up if is_menu => {
|
||||||
|
if *menu_selected_index > 0 { *menu_selected_index -= 1; }
|
||||||
|
}
|
||||||
KeyCode::Down if is_menu => {
|
KeyCode::Down if is_menu => {
|
||||||
if let Some(executor::StructuredCommand::Menu {
|
if let Some(executor::StructuredCommand::Menu { options, .. }) = current_command {
|
||||||
options, ..
|
|
||||||
}) = current_command
|
|
||||||
{
|
|
||||||
if *menu_selected_index + 1 < options.len() {
|
if *menu_selected_index + 1 < options.len() {
|
||||||
*menu_selected_index += 1;
|
*menu_selected_index += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Scroll log one line when no interactive command pending
|
KeyCode::Up if !blocks_scroll => {
|
||||||
KeyCode::Up if !has_command => {
|
|
||||||
*log_scroll_pos = log_scroll_pos.saturating_sub(1);
|
*log_scroll_pos = log_scroll_pos.saturating_sub(1);
|
||||||
*log_follow_bottom = false;
|
*log_follow_bottom = false;
|
||||||
}
|
}
|
||||||
KeyCode::Down if !has_command => {
|
KeyCode::Down if !blocks_scroll => {
|
||||||
*log_scroll_pos = log_scroll_pos.saturating_add(1);
|
*log_scroll_pos = log_scroll_pos.saturating_add(1);
|
||||||
*log_follow_bottom =
|
*log_follow_bottom = *log_scroll_pos + 1 >= log_buffer.len();
|
||||||
*log_scroll_pos + 1 >= log_buffer.len();
|
}
|
||||||
|
KeyCode::Left if is_text_input && alt => { input.word_back(); }
|
||||||
|
KeyCode::Right if is_text_input && alt => { input.word_fwd(); }
|
||||||
|
KeyCode::Left if is_text_input => { input.move_left(); }
|
||||||
|
KeyCode::Right if is_text_input => { input.move_right(); }
|
||||||
|
KeyCode::Left if !is_text_input && !is_menu && !is_form => {
|
||||||
|
*log_scroll_x = log_scroll_x.saturating_sub(4);
|
||||||
|
}
|
||||||
|
KeyCode::Right if !is_text_input && !is_menu && !is_form => {
|
||||||
|
*log_scroll_x = log_scroll_x.saturating_add(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Confirm shortcuts (immediate, no Enter needed) ─
|
// ── Confirm shortcuts ────────────────────────────
|
||||||
KeyCode::Char('y') | KeyCode::Char('Y') if is_confirm => {
|
KeyCode::Char('y') | KeyCode::Char('Y') if is_confirm => {
|
||||||
let _ = current_command.take();
|
let _ = current_command.take();
|
||||||
let _ = reply_tx.send("y".to_string());
|
let _ = reply_tx.send("y".to_string());
|
||||||
input_buffer.clear();
|
input.clear();
|
||||||
}
|
}
|
||||||
KeyCode::Char('n') | KeyCode::Char('N') if is_confirm => {
|
KeyCode::Char('n') | KeyCode::Char('N') if is_confirm => {
|
||||||
let _ = current_command.take();
|
let _ = current_command.take();
|
||||||
let _ = reply_tx.send("n".to_string());
|
let _ = reply_tx.send("n".to_string());
|
||||||
input_buffer.clear();
|
input.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Text input ────────────────────────────────────
|
// ── Text input ───────────────────────────────────
|
||||||
// Vim motion keys (j/k/l/h) are excluded here so they
|
KeyCode::Char('b') if is_text_input && alt => { input.word_back(); }
|
||||||
// fall through to the vim-motion arms below.
|
KeyCode::Char('f') if is_text_input && alt => { input.word_fwd(); }
|
||||||
KeyCode::Char(c)
|
KeyCode::Char(c)
|
||||||
if !is_menu
|
if !is_menu && !is_confirm && !is_form
|
||||||
&& !is_confirm
|
&& (is_text_input || !matches!(c, 'j' | 'k' | 'l' | 'h' | 'd' | 'u')) =>
|
||||||
&& (is_text_input
|
|
||||||
|| !matches!(c, 'j' | 'k' | 'l' | 'h')) =>
|
|
||||||
{
|
{
|
||||||
input_buffer.push(c);
|
input.insert(c);
|
||||||
}
|
|
||||||
KeyCode::Backspace if !is_menu => {
|
|
||||||
input_buffer.pop();
|
|
||||||
}
|
}
|
||||||
|
KeyCode::Backspace if is_text_input && alt => { input.word_delete_back(); }
|
||||||
|
KeyCode::Backspace if !is_menu && !is_form => { input.backspace(); }
|
||||||
|
|
||||||
// ── Enter: commit response ────────────────────────
|
// ── Enter ────────────────────────────────────────
|
||||||
KeyCode::Enter => {
|
KeyCode::Enter => {
|
||||||
if let Some(cmd) = current_command.take() {
|
if is_form {
|
||||||
|
if let Some(executor::StructuredCommand::Form { fields, .. }) = current_command.take() {
|
||||||
|
let response = fields.iter().enumerate()
|
||||||
|
.filter_map(|(i, f)| {
|
||||||
|
form_values.get(i).copied().filter(|&v| v).map(|_| f.id.as_str())
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>()
|
||||||
|
.join(" ");
|
||||||
|
let _ = reply_tx.send(response);
|
||||||
|
form_values.clear();
|
||||||
|
*form_cursor = 0;
|
||||||
|
}
|
||||||
|
} else if let Some(cmd) = current_command.take() {
|
||||||
let response = match &cmd {
|
let response = match &cmd {
|
||||||
executor::StructuredCommand::Input { .. } => {
|
executor::StructuredCommand::Input { .. } => input.buf.clone(),
|
||||||
input_buffer.clone()
|
|
||||||
}
|
|
||||||
executor::StructuredCommand::Confirm { .. } => {
|
executor::StructuredCommand::Confirm { .. } => {
|
||||||
if input_buffer.to_lowercase().starts_with('y') {
|
if input.buf.to_lowercase().starts_with('y') { "y".to_string() } else { "n".to_string() }
|
||||||
"y".to_string()
|
}
|
||||||
} else {
|
executor::StructuredCommand::Menu { options, .. } => {
|
||||||
"n".to_string()
|
options.get(*menu_selected_index).map(|o| o.id.clone()).unwrap_or_default()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
executor::StructuredCommand::Menu {
|
|
||||||
options, ..
|
|
||||||
} => options
|
|
||||||
.get(*menu_selected_index)
|
|
||||||
.map(|opt| opt.id.clone())
|
|
||||||
.unwrap_or_default(),
|
|
||||||
// Message / Progress: send empty ack.
|
|
||||||
_ => String::new(),
|
_ => String::new(),
|
||||||
};
|
};
|
||||||
let _ = reply_tx.send(response);
|
let _ = reply_tx.send(response);
|
||||||
input_buffer.clear();
|
input.clear();
|
||||||
*menu_selected_index = 0;
|
*menu_selected_index = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -415,71 +488,291 @@ impl App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Vim motions (off during text input) ───────────
|
// ── Vim motions ──────────────────────────────────
|
||||||
KeyCode::Char('k') if !is_text_input => {
|
KeyCode::Char('k') if !is_text_input => {
|
||||||
if is_menu {
|
if is_menu {
|
||||||
if *menu_selected_index > 0 {
|
if *menu_selected_index > 0 { *menu_selected_index -= 1; }
|
||||||
*menu_selected_index -= 1;
|
} else if is_form {
|
||||||
}
|
if *form_cursor > 0 { *form_cursor -= 1; }
|
||||||
} else if !has_command {
|
} else if !blocks_scroll {
|
||||||
*log_scroll_pos = log_scroll_pos.saturating_sub(1);
|
*log_scroll_pos = log_scroll_pos.saturating_sub(1);
|
||||||
*log_follow_bottom = false;
|
*log_follow_bottom = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Char('j') if !is_text_input => {
|
KeyCode::Char('j') if !is_text_input => {
|
||||||
if is_menu {
|
if is_menu {
|
||||||
if let Some(executor::StructuredCommand::Menu {
|
if let Some(executor::StructuredCommand::Menu { options, .. }) = current_command {
|
||||||
options, ..
|
|
||||||
}) = current_command
|
|
||||||
{
|
|
||||||
if *menu_selected_index + 1 < options.len() {
|
if *menu_selected_index + 1 < options.len() {
|
||||||
*menu_selected_index += 1;
|
*menu_selected_index += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if !has_command {
|
} else if is_form {
|
||||||
|
let len = if let Some(executor::StructuredCommand::Form { fields, .. }) = current_command {
|
||||||
|
fields.len()
|
||||||
|
} else { 0 };
|
||||||
|
if *form_cursor + 1 < len { *form_cursor += 1; }
|
||||||
|
} else if !blocks_scroll {
|
||||||
*log_scroll_pos = log_scroll_pos.saturating_add(1);
|
*log_scroll_pos = log_scroll_pos.saturating_add(1);
|
||||||
*log_follow_bottom =
|
*log_follow_bottom = *log_scroll_pos + 1 >= log_buffer.len();
|
||||||
*log_scroll_pos + 1 >= log_buffer.len();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Char('l') if !is_text_input => {
|
KeyCode::Char('l') if !is_text_input => {
|
||||||
// Forward / confirm — same logic as Enter.
|
if is_form {
|
||||||
if let Some(cmd) = current_command.take() {
|
if let Some(executor::StructuredCommand::Form { fields, .. }) = current_command.take() {
|
||||||
|
let response = fields.iter().enumerate()
|
||||||
|
.filter_map(|(i, f)| {
|
||||||
|
form_values.get(i).copied().filter(|&v| v).map(|_| f.id.as_str())
|
||||||
|
})
|
||||||
|
.collect::<Vec<_>>().join(" ");
|
||||||
|
let _ = reply_tx.send(response);
|
||||||
|
form_values.clear();
|
||||||
|
*form_cursor = 0;
|
||||||
|
}
|
||||||
|
} else if let Some(cmd) = current_command.take() {
|
||||||
let response = match &cmd {
|
let response = match &cmd {
|
||||||
executor::StructuredCommand::Confirm { .. } => {
|
executor::StructuredCommand::Confirm { .. } => "y".to_string(),
|
||||||
"y".to_string()
|
executor::StructuredCommand::Menu { options, .. } => {
|
||||||
|
options.get(*menu_selected_index).map(|o| o.id.clone()).unwrap_or_default()
|
||||||
}
|
}
|
||||||
executor::StructuredCommand::Menu {
|
|
||||||
options, ..
|
|
||||||
} => options
|
|
||||||
.get(*menu_selected_index)
|
|
||||||
.map(|o| o.id.clone())
|
|
||||||
.unwrap_or_default(),
|
|
||||||
_ => String::new(),
|
_ => String::new(),
|
||||||
};
|
};
|
||||||
let _ = reply_tx.send(response);
|
let _ = reply_tx.send(response);
|
||||||
input_buffer.clear();
|
input.clear();
|
||||||
*menu_selected_index = 0;
|
*menu_selected_index = 0;
|
||||||
|
} else {
|
||||||
|
*log_scroll_x = log_scroll_x.saturating_add(4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Char('h') if !is_text_input => {
|
KeyCode::Char('h') if !is_text_input => {
|
||||||
// Back / cancel — same logic as Esc.
|
|
||||||
if is_confirm {
|
if is_confirm {
|
||||||
let _ = current_command.take();
|
let _ = current_command.take();
|
||||||
let _ = reply_tx.send("n".to_string());
|
let _ = reply_tx.send("n".to_string());
|
||||||
} else {
|
} else if !is_menu && !is_form {
|
||||||
if let Some(kx) = kill_tx.take() {
|
*log_scroll_x = log_scroll_x.saturating_sub(4);
|
||||||
let _ = kx.send(());
|
|
||||||
}
|
|
||||||
self.popup = None;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
KeyCode::Char('H') if !is_text_input && !is_menu && !is_form => {
|
||||||
|
*log_scroll_x = 0;
|
||||||
|
}
|
||||||
|
KeyCode::Char('L') if !is_text_input && !is_menu && !is_form => {
|
||||||
|
*log_scroll_x = usize::MAX;
|
||||||
|
}
|
||||||
|
KeyCode::Char('d') if !is_text_input && !is_form => {
|
||||||
|
*log_scroll_pos = log_scroll_pos.saturating_add(10);
|
||||||
|
*log_follow_bottom = *log_scroll_pos + 1 >= log_buffer.len();
|
||||||
|
}
|
||||||
|
KeyCode::Char('u') if !is_text_input && !is_form => {
|
||||||
|
*log_scroll_pos = log_scroll_pos.saturating_sub(10);
|
||||||
|
*log_follow_bottom = false;
|
||||||
|
}
|
||||||
|
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Popup::EndpointSelector { selected, scroll_offset: _ } => {
|
||||||
|
match key.code {
|
||||||
|
KeyCode::Up | KeyCode::Char('k') => {
|
||||||
|
if *selected > 0 { *selected -= 1; }
|
||||||
|
}
|
||||||
|
KeyCode::Down | KeyCode::Char('j') => {
|
||||||
|
let len = self.config.endpoints.len();
|
||||||
|
if *selected + 1 < len { *selected += 1; }
|
||||||
|
}
|
||||||
|
KeyCode::Enter | KeyCode::Char('l') => {
|
||||||
|
let sel = *selected;
|
||||||
|
self.popup = None;
|
||||||
|
let url = self.config.endpoints.get(sel).map(|ep| ep.url.clone());
|
||||||
|
if let Some(url) = url {
|
||||||
|
if url != self.config.active_endpoint {
|
||||||
|
self.config.active_endpoint = url;
|
||||||
|
let _ = self.config.save();
|
||||||
|
self.menu = None;
|
||||||
|
self.breadcrumbs.clear();
|
||||||
|
self.selected_index = 0;
|
||||||
|
self.menu_scroll_offset = 0;
|
||||||
|
self.load_menu().await;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
KeyCode::Char('d') | KeyCode::Char('D') => {
|
||||||
|
let sel = *selected;
|
||||||
|
if sel < self.config.endpoints.len() {
|
||||||
|
self.popup = Some(Popup::ConfirmDeleteEndpoint {
|
||||||
|
index: sel,
|
||||||
|
return_selected: sel,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
KeyCode::Char('e') | KeyCode::Char('E') => {
|
||||||
|
let sel = *selected;
|
||||||
|
if let Some(ep) = self.config.endpoints.get(sel) {
|
||||||
|
let name = ep.name.clone();
|
||||||
|
let url = ep.url.clone();
|
||||||
|
self.popup = Some(Popup::UpsertEndpoint {
|
||||||
|
edit_index: Some(sel),
|
||||||
|
fields: [TextInput::with_text(name), TextInput::with_text(url)],
|
||||||
|
active_field: 0,
|
||||||
|
error: None,
|
||||||
|
return_selected: sel,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
KeyCode::Char('n') | KeyCode::Char('N') => {
|
||||||
|
let sel = *selected;
|
||||||
|
self.popup = Some(Popup::UpsertEndpoint {
|
||||||
|
edit_index: None,
|
||||||
|
fields: [TextInput::new(), TextInput::new()],
|
||||||
|
active_field: 0,
|
||||||
|
error: None,
|
||||||
|
return_selected: sel,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
KeyCode::Esc | KeyCode::Tab => {
|
||||||
|
self.popup = None;
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
return Ok(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::UpsertEndpoint {
|
||||||
|
edit_index,
|
||||||
|
fields,
|
||||||
|
active_field,
|
||||||
|
error,
|
||||||
|
return_selected,
|
||||||
|
} => {
|
||||||
|
match key.code {
|
||||||
|
KeyCode::Enter => {
|
||||||
|
if *active_field == 0 {
|
||||||
|
let name = fields[0].buf.trim().to_string();
|
||||||
|
let edit_idx = *edit_index;
|
||||||
|
if name.is_empty() {
|
||||||
|
*error = Some("Название не может быть пустым".to_string());
|
||||||
|
} else if let Some(conflict_url) = self.config.endpoints.iter()
|
||||||
|
.enumerate()
|
||||||
|
.find(|(i, ep)| Some(*i) != edit_idx && ep.name == name)
|
||||||
|
.map(|(_, ep)| ep.url.clone())
|
||||||
|
{
|
||||||
|
*error = Some(format!(
|
||||||
|
"Название \"{}\" уже используется для {}",
|
||||||
|
name, conflict_url
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
fields[0].buf = name;
|
||||||
|
*active_field = 1;
|
||||||
|
*error = None;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
let url = fields[1].buf.trim().to_string();
|
||||||
|
let name = fields[0].buf.trim().to_string();
|
||||||
|
let edit_idx = *edit_index;
|
||||||
|
let ret = *return_selected;
|
||||||
|
if url.is_empty() {
|
||||||
|
*error = Some("URL не может быть пустым".to_string());
|
||||||
|
} else if let Some(conflict_name) = self.config.endpoints.iter()
|
||||||
|
.enumerate()
|
||||||
|
.find(|(i, ep)| Some(*i) != edit_idx && ep.url == url)
|
||||||
|
.map(|(_, ep)| ep.name.clone())
|
||||||
|
{
|
||||||
|
*error = Some(format!(
|
||||||
|
"URL уже используется для эндпоинта \"{}\"",
|
||||||
|
conflict_name
|
||||||
|
));
|
||||||
|
} else {
|
||||||
|
match edit_idx {
|
||||||
|
None => {
|
||||||
|
self.config.endpoints.push(crate::config::Endpoint { name, url });
|
||||||
|
let _ = self.config.save();
|
||||||
|
let new_sel = self.config.endpoints.len() - 1;
|
||||||
|
self.popup = Some(Popup::EndpointSelector {
|
||||||
|
selected: new_sel,
|
||||||
|
scroll_offset: ret,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Some(idx) => {
|
||||||
|
let was_active = self.config.endpoints
|
||||||
|
.get(idx)
|
||||||
|
.map(|ep| ep.url == self.config.active_endpoint)
|
||||||
|
.unwrap_or(false);
|
||||||
|
if let Some(ep) = self.config.endpoints.get_mut(idx) {
|
||||||
|
ep.name = name;
|
||||||
|
ep.url = url.clone();
|
||||||
|
}
|
||||||
|
if was_active {
|
||||||
|
self.config.active_endpoint = url;
|
||||||
|
}
|
||||||
|
let _ = self.config.save();
|
||||||
|
self.popup = Some(Popup::EndpointSelector {
|
||||||
|
selected: ret,
|
||||||
|
scroll_offset: 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
KeyCode::Esc => {
|
||||||
|
let ret = *return_selected;
|
||||||
|
self.popup = Some(Popup::EndpointSelector {
|
||||||
|
selected: ret,
|
||||||
|
scroll_offset: 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
let af = *active_field;
|
||||||
|
if fields[af].handle_key(&key) {
|
||||||
|
*error = None;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Ok(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
Popup::ConfirmDeleteEndpoint { index, return_selected } => {
|
||||||
|
match key.code {
|
||||||
|
KeyCode::Char('y') | KeyCode::Char('Y') => {
|
||||||
|
let idx = *index;
|
||||||
|
let ret = *return_selected;
|
||||||
|
self.popup = None;
|
||||||
|
if idx < self.config.endpoints.len() {
|
||||||
|
let was_active = self.config.endpoints[idx].url == self.config.active_endpoint;
|
||||||
|
self.config.endpoints.remove(idx);
|
||||||
|
let _ = self.config.save();
|
||||||
|
if self.config.endpoints.is_empty() {
|
||||||
|
self.config.active_endpoint = String::new();
|
||||||
|
self.menu = None;
|
||||||
|
} else {
|
||||||
|
if was_active {
|
||||||
|
self.config.active_endpoint = self.config.endpoints[0].url.clone();
|
||||||
|
self.menu = None;
|
||||||
|
self.breadcrumbs.clear();
|
||||||
|
self.selected_index = 0;
|
||||||
|
self.menu_scroll_offset = 0;
|
||||||
|
self.load_menu().await;
|
||||||
|
}
|
||||||
|
let new_sel = ret.min(self.config.endpoints.len() - 1);
|
||||||
|
self.popup = Some(Popup::EndpointSelector {
|
||||||
|
selected: new_sel,
|
||||||
|
scroll_offset: 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
KeyCode::Char('n') | KeyCode::Char('N') | KeyCode::Esc => {
|
||||||
|
let ret = *return_selected;
|
||||||
|
self.popup = Some(Popup::EndpointSelector {
|
||||||
|
selected: ret,
|
||||||
|
scroll_offset: 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
return Ok(false);
|
||||||
|
}
|
||||||
|
|
||||||
Popup::Message { .. } => {
|
Popup::Message { .. } => {
|
||||||
self.popup = None;
|
self.popup = None;
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
@@ -500,28 +793,21 @@ impl App {
|
|||||||
let tx = self.event_tx.clone();
|
let tx = self.event_tx.clone();
|
||||||
let info_clone = info.clone();
|
let info_clone = info.clone();
|
||||||
|
|
||||||
// Forward progress events
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
while let Some(bytes) = progress_rx.recv().await {
|
while let Some(bytes) = progress_rx.recv().await {
|
||||||
let _ = tx.send(Event::UpdateProgress(bytes));
|
let _ = tx.send(Event::UpdateProgress(bytes));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Download and apply
|
|
||||||
let tx2 = self.event_tx.clone();
|
let tx2 = self.event_tx.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
match updater::download_and_apply(
|
match updater::download_and_apply(&info_clone, progress_tx).await {
|
||||||
&info_clone,
|
|
||||||
progress_tx,
|
|
||||||
)
|
|
||||||
.await
|
|
||||||
{
|
|
||||||
Ok(exe_path) => {
|
Ok(exe_path) => {
|
||||||
|
updater::write_update_target(&info_clone.new_version);
|
||||||
let _ = tx2.send(Event::UpdateDone(exe_path));
|
let _ = tx2.send(Event::UpdateDone(exe_path));
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let _ =
|
let _ = tx2.send(Event::UpdateError(e.to_string()));
|
||||||
tx2.send(Event::UpdateError(e.to_string()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -540,7 +826,6 @@ impl App {
|
|||||||
if matches!(status, UpdatingStatus::Failed(_)) {
|
if matches!(status, UpdatingStatus::Failed(_)) {
|
||||||
self.popup = None;
|
self.popup = None;
|
||||||
}
|
}
|
||||||
// Ignore Esc while downloading/applying
|
|
||||||
}
|
}
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
@@ -549,35 +834,80 @@ impl App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Main menu navigation ─────────────────────────────────────────
|
// ── Main menu navigation ──────────────────────────────────────────
|
||||||
match key.code {
|
match key.code {
|
||||||
KeyCode::Char('q') => return Ok(true),
|
KeyCode::Char('q') => return Ok(true),
|
||||||
KeyCode::Up | KeyCode::Char('k') => {
|
KeyCode::Up | KeyCode::Char('k') => {
|
||||||
let len = self.current_items().len();
|
let len = self.current_items().len();
|
||||||
if len > 0 {
|
if len > 0 {
|
||||||
self.selected_index = (self.selected_index + len - 1) % len;
|
self.selected_index = self.selected_index.saturating_sub(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Down | KeyCode::Char('j') => {
|
KeyCode::Down | KeyCode::Char('j') => {
|
||||||
let len = self.current_items().len();
|
let len = self.current_items().len();
|
||||||
if len > 0 {
|
if len > 0 && self.selected_index + 1 < len {
|
||||||
self.selected_index = (self.selected_index + 1) % len;
|
self.selected_index += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Enter | KeyCode::Char('l') => {
|
KeyCode::Enter | KeyCode::Char('l') | KeyCode::Right => {
|
||||||
if let Some(item) = self.selected_item().cloned() {
|
if let Some(item) = self.selected_item().cloned() {
|
||||||
self.activate_item(item).await?;
|
self.activate_item(item).await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Esc | KeyCode::Char('h') => {
|
KeyCode::Esc | KeyCode::Char('h') | KeyCode::Left => {
|
||||||
if !self.breadcrumbs.is_empty() {
|
if !self.breadcrumbs.is_empty() {
|
||||||
self.breadcrumbs.pop();
|
self.breadcrumbs.pop();
|
||||||
self.selected_index = 0;
|
self.selected_index = 0;
|
||||||
|
self.menu_scroll_offset = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
KeyCode::Char('r') | KeyCode::Char('R') => {
|
KeyCode::Char('r') | KeyCode::Char('R') => {
|
||||||
self.load_menu().await;
|
self.load_menu().await;
|
||||||
}
|
}
|
||||||
|
KeyCode::Tab => {
|
||||||
|
let sel = self.config.endpoints.iter()
|
||||||
|
.position(|ep| ep.url == self.config.active_endpoint)
|
||||||
|
.unwrap_or(0);
|
||||||
|
self.popup = Some(Popup::EndpointSelector {
|
||||||
|
selected: sel,
|
||||||
|
scroll_offset: 0,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
_ => {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CrosstermEvent::Mouse(mouse) => {
|
||||||
|
use crossterm::event::MouseEventKind;
|
||||||
|
match mouse.kind {
|
||||||
|
MouseEventKind::ScrollUp => {
|
||||||
|
if let Some(Popup::ExecutingStructured { log_scroll_pos, log_follow_bottom, .. }) = &mut self.popup {
|
||||||
|
*log_scroll_pos = log_scroll_pos.saturating_sub(3);
|
||||||
|
*log_follow_bottom = false;
|
||||||
|
} else if let Some(Popup::EndpointSelector { selected, .. }) = &mut self.popup {
|
||||||
|
if *selected > 0 { *selected -= 1; }
|
||||||
|
} else if self.popup.is_none() {
|
||||||
|
let len = self.current_items().len();
|
||||||
|
if len > 0 {
|
||||||
|
self.selected_index = (self.selected_index + len - 1) % len;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MouseEventKind::ScrollDown => {
|
||||||
|
if let Some(Popup::ExecutingStructured {
|
||||||
|
log_scroll_pos, log_follow_bottom, log_buffer, ..
|
||||||
|
}) = &mut self.popup {
|
||||||
|
*log_scroll_pos = log_scroll_pos.saturating_add(3);
|
||||||
|
*log_follow_bottom = *log_scroll_pos + 1 >= log_buffer.len();
|
||||||
|
} else if let Some(Popup::EndpointSelector { selected, .. }) = &mut self.popup {
|
||||||
|
let len = self.config.endpoints.len();
|
||||||
|
if *selected + 1 < len { *selected += 1; }
|
||||||
|
} else if self.popup.is_none() {
|
||||||
|
let len = self.current_items().len();
|
||||||
|
if len > 0 {
|
||||||
|
self.selected_index = (self.selected_index + 1) % len;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -612,24 +942,11 @@ impl App {
|
|||||||
|
|
||||||
async fn run_action(&mut self, action: Action) -> Result<()> {
|
async fn run_action(&mut self, action: Action) -> Result<()> {
|
||||||
match action {
|
match action {
|
||||||
Action::Bash {
|
Action::Bash { script, interaction, confirm: _, confirm_message: _ } => match interaction {
|
||||||
script,
|
InteractionMode::Terminal => self.run_bash_terminal(&script).await?,
|
||||||
interaction,
|
InteractionMode::Structured => self.run_bash_structured(&script).await?,
|
||||||
confirm: _,
|
|
||||||
confirm_message: _,
|
|
||||||
} => match interaction {
|
|
||||||
InteractionMode::Terminal => {
|
|
||||||
self.run_bash_terminal(&script).await?;
|
|
||||||
}
|
|
||||||
InteractionMode::Structured => {
|
|
||||||
self.run_bash_structured(&script).await?;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
Action::Download {
|
Action::Download { url, confirm: _, .. } => {
|
||||||
url,
|
|
||||||
confirm: _,
|
|
||||||
..
|
|
||||||
} => {
|
|
||||||
self.popup = Some(Popup::Message {
|
self.popup = Some(Popup::Message {
|
||||||
text: format!("Скачивание {} пока не реализовано", url),
|
text: format!("Скачивание {} пока не реализовано", url),
|
||||||
level: MessageLevel::Info,
|
level: MessageLevel::Info,
|
||||||
@@ -656,9 +973,7 @@ impl App {
|
|||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let mut rx = output_rx;
|
let mut rx = output_rx;
|
||||||
while let Some(line) = rx.recv().await {
|
while let Some(line) = rx.recv().await {
|
||||||
if tx_output.send(Event::StructuredOutput(line)).is_err() {
|
if tx_output.send(Event::StructuredOutput(line)).is_err() { break; }
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -666,9 +981,7 @@ impl App {
|
|||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
let mut rx = command_rx;
|
let mut rx = command_rx;
|
||||||
while let Some(cmd) = rx.recv().await {
|
while let Some(cmd) = rx.recv().await {
|
||||||
if tx_cmd.send(Event::StructuredCommand(cmd)).is_err() {
|
if tx_cmd.send(Event::StructuredCommand(cmd)).is_err() { break; }
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -683,9 +996,12 @@ impl App {
|
|||||||
kill_tx: Some(kill_tx),
|
kill_tx: Some(kill_tx),
|
||||||
log_buffer: Vec::new(),
|
log_buffer: Vec::new(),
|
||||||
current_command: None,
|
current_command: None,
|
||||||
input_buffer: String::new(),
|
input: TextInput::new(),
|
||||||
menu_selected_index: 0,
|
menu_selected_index: 0,
|
||||||
|
form_cursor: 0,
|
||||||
|
form_values: Vec::new(),
|
||||||
log_scroll_pos: 0,
|
log_scroll_pos: 0,
|
||||||
|
log_scroll_x: 0,
|
||||||
log_follow_bottom: false,
|
log_follow_bottom: false,
|
||||||
finished: None,
|
finished: None,
|
||||||
});
|
});
|
||||||
|
|||||||
126
src/config.rs
126
src/config.rs
@@ -3,9 +3,21 @@ 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,
|
||||||
|
}
|
||||||
|
|
||||||
#[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,
|
||||||
@@ -29,33 +41,97 @@ fn default_theme() -> Theme {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 exists() -> bool {
|
||||||
|
config_path().exists()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn active_url(&self) -> &str {
|
||||||
|
&self.active_endpoint
|
||||||
|
}
|
||||||
|
|
||||||
pub fn load() -> Result<Self> {
|
pub fn load() -> Result<Self> {
|
||||||
// Respect XDG_CONFIG_HOME; fall back to ~/.config on all platforms.
|
let path = config_path();
|
||||||
let config_base = std::env::var("XDG_CONFIG_HOME")
|
let content = fs::read_to_string(&path)?;
|
||||||
.map(PathBuf::from)
|
let mut cfg: Config = toml::from_str(&content)?;
|
||||||
.unwrap_or_else(|_| {
|
// Migrate old single server_url format to endpoints list.
|
||||||
dirs::home_dir()
|
if cfg.endpoints.is_empty() {
|
||||||
.unwrap_or_else(|| PathBuf::from("."))
|
if let Some(url) = cfg.server_url.take() {
|
||||||
.join(".config")
|
cfg.active_endpoint = url.clone();
|
||||||
});
|
cfg.endpoints.push(Endpoint {
|
||||||
let config_path = config_base
|
name: "Default".to_string(),
|
||||||
.join(env!("CARGO_PKG_NAME"))
|
url,
|
||||||
.join("config.toml");
|
});
|
||||||
|
}
|
||||||
if !config_path.exists() {
|
|
||||||
let default = Config {
|
|
||||||
server_url: "http://localhost:8080/api/menu".to_string(),
|
|
||||||
timeout_sec: 10,
|
|
||||||
theme: default_theme(),
|
|
||||||
update_api: None,
|
|
||||||
};
|
|
||||||
fs::create_dir_all(config_path.parent().unwrap())?;
|
|
||||||
fs::write(config_path, toml::to_string_pretty(&default)?)?;
|
|
||||||
return Ok(default);
|
|
||||||
}
|
}
|
||||||
|
if cfg.active_endpoint.is_empty() {
|
||||||
|
if let Some(ep) = cfg.endpoints.first() {
|
||||||
|
cfg.active_endpoint = ep.url.clone();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Ok(cfg)
|
||||||
|
}
|
||||||
|
|
||||||
let content = fs::read_to_string(config_path)?;
|
pub fn create_with_endpoint(url: &str, name: &str) -> Result<Self> {
|
||||||
Ok(toml::from_str(&content)?)
|
let path = config_path();
|
||||||
|
let config = Config {
|
||||||
|
server_url: None,
|
||||||
|
endpoints: vec![Endpoint {
|
||||||
|
name: name.to_string(),
|
||||||
|
url: url.to_string(),
|
||||||
|
}],
|
||||||
|
active_endpoint: url.to_string(),
|
||||||
|
timeout_sec: 10,
|
||||||
|
theme: default_theme(),
|
||||||
|
update_api: Some("https://git.vainend.com/api/v1/repos/admin/ostiary".to_string()),
|
||||||
|
};
|
||||||
|
fs::create_dir_all(path.parent().unwrap())?;
|
||||||
|
fs::write(&path, config.to_toml())?;
|
||||||
|
Ok(config)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn save(&self) -> Result<()> {
|
||||||
|
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),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn escape_toml(s: &str) -> String {
|
||||||
|
s.replace('\\', "\\\\").replace('"', "\\\"")
|
||||||
|
}
|
||||||
|
|||||||
@@ -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 }
|
||||||
|
|||||||
73
src/main.rs
73
src/main.rs
@@ -5,6 +5,7 @@ mod error;
|
|||||||
mod executor;
|
mod executor;
|
||||||
mod menu;
|
mod menu;
|
||||||
mod network;
|
mod network;
|
||||||
|
mod text_input;
|
||||||
mod ui;
|
mod ui;
|
||||||
mod updater;
|
mod updater;
|
||||||
|
|
||||||
@@ -20,7 +21,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();
|
||||||
@@ -30,8 +36,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;
|
||||||
app.check_update();
|
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;
|
||||||
|
|
||||||
@@ -84,7 +108,7 @@ async fn run_app(
|
|||||||
terminal.show_cursor()?;
|
terminal.show_cursor()?;
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
updater::exec_updated(&exe_path);
|
updater::exec_updated(&exe_path);
|
||||||
// fallback for non-unix or if exec failed
|
#[cfg(not(unix))]
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,6 +167,49 @@ 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::Write;
|
||||||
|
|
||||||
|
println!();
|
||||||
|
println!(" ╔══════════════════════════════════╗");
|
||||||
|
println!(" ║ Ostiary — первый запуск ║");
|
||||||
|
println!(" ╚══════════════════════════════════╝");
|
||||||
|
println!();
|
||||||
|
println!(" Конфиг будет сохранён в:");
|
||||||
|
println!(" {}", config::config_path().display());
|
||||||
|
println!();
|
||||||
|
|
||||||
|
let name = loop {
|
||||||
|
print!(" Название эндпоинта: ");
|
||||||
|
std::io::stdout().flush()?;
|
||||||
|
let mut buf = String::new();
|
||||||
|
std::io::stdin().read_line(&mut buf)?;
|
||||||
|
let val = buf.trim().to_string();
|
||||||
|
if val.is_empty() {
|
||||||
|
println!(" Название не может быть пустым. Попробуйте ещё раз.\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break val;
|
||||||
|
};
|
||||||
|
|
||||||
|
let url = loop {
|
||||||
|
print!(" URL эндпоинта: ");
|
||||||
|
std::io::stdout().flush()?;
|
||||||
|
let mut buf = String::new();
|
||||||
|
std::io::stdin().read_line(&mut buf)?;
|
||||||
|
let val = buf.trim().to_string();
|
||||||
|
if val.is_empty() {
|
||||||
|
println!(" URL не может быть пустым. Попробуйте ещё раз.\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break val;
|
||||||
|
};
|
||||||
|
|
||||||
|
println!();
|
||||||
|
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()?))
|
||||||
|
|||||||
@@ -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 == '_'
|
||||||
|
}
|
||||||
758
src/ui.rs
758
src/ui.rs
@@ -1,6 +1,8 @@
|
|||||||
use crate::ansi;
|
use crate::ansi;
|
||||||
|
use crate::config::Config;
|
||||||
use crate::executor;
|
use crate::executor;
|
||||||
use crate::app::{App, MessageLevel, Popup, UpdatingStatus};
|
use crate::app::{App, MessageLevel, Popup, UpdatingStatus};
|
||||||
|
use crate::text_input::TextInput;
|
||||||
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 +26,115 @@ 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();
|
||||||
|
let inner_w = area.width.saturating_sub(2) as usize;
|
||||||
|
let inner_h = area.height.saturating_sub(2) as usize;
|
||||||
|
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 {
|
||||||
|
crate::menu::MenuItemKind::Category { .. } => "📁 ",
|
||||||
|
crate::menu::MenuItemKind::Action { .. } => "⚡ ",
|
||||||
|
};
|
||||||
|
wrap_to_lines(&format!("{}{}", prefix, item.title), inner_w)
|
||||||
|
}).collect();
|
||||||
|
|
||||||
|
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 {
|
||||||
|
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()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.map(|(i, item)| {
|
.map(|(i, lines)| {
|
||||||
let prefix = match &item.kind {
|
let abs = start + i;
|
||||||
crate::menu::MenuItemKind::Category { .. } => "📁 ",
|
let text: Vec<Line> = lines.iter().map(|l| Line::from(l.clone())).collect();
|
||||||
crate::menu::MenuItemKind::Action { .. } => "⚡ ",
|
let li = ListItem::new(ratatui::text::Text::from(text));
|
||||||
};
|
if abs == sel {
|
||||||
let content = Line::from(Span::raw(format!("{}{}", prefix, item.title)));
|
li.style(Style::default().bg(Color::Blue).add_modifier(Modifier::BOLD))
|
||||||
if i == app.selected_index {
|
|
||||||
ListItem::new(content).style(Style::default().bg(Color::Blue))
|
|
||||||
} else {
|
} else {
|
||||||
ListItem::new(content)
|
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| format!(" {} ", ep.name))
|
||||||
|
.unwrap_or_else(|| " Меню ".to_string());
|
||||||
|
|
||||||
|
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,10 +151,9 @@ 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();
|
||||||
|
|
||||||
// Use a smaller area for update-related popups
|
|
||||||
let popup_area = match popup {
|
let popup_area = match popup {
|
||||||
Popup::UpdateConfirm { .. } | Popup::Updating { .. } => centered_rect(50, 40, area),
|
Popup::UpdateConfirm { .. } | Popup::Updating { .. } => centered_rect(50, 40, area),
|
||||||
_ => centered_rect(80, 90, area),
|
_ => centered_rect(80, 90, area),
|
||||||
@@ -79,11 +162,7 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
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("Подтверждение")
|
||||||
@@ -107,11 +186,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 {
|
||||||
@@ -119,16 +197,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,
|
||||||
};
|
};
|
||||||
@@ -139,11 +219,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;
|
||||||
@@ -154,13 +232,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();
|
||||||
@@ -168,37 +253,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)
|
||||||
@@ -215,10 +295,28 @@ 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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -233,20 +331,16 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
.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(text.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 } => {
|
Popup::UpdateConfirm { info } => {
|
||||||
let mut lines = vec![
|
let mut lines = vec![
|
||||||
Line::from(""),
|
Line::from(""),
|
||||||
Line::from(Span::raw(format!(
|
Line::from(Span::raw(format!(" {} → {}", info.current_version, info.new_version))),
|
||||||
" {} → {}",
|
|
||||||
info.current_version, info.new_version
|
|
||||||
))),
|
|
||||||
];
|
];
|
||||||
if info.size > 0 {
|
if info.size > 0 {
|
||||||
let mb = info.size as f64 / 1_048_576.0;
|
let mb = info.size as f64 / 1_048_576.0;
|
||||||
@@ -262,17 +356,10 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.title(" Доступно обновление ")
|
.title(" Доступно обновление ")
|
||||||
.border_style(Style::default().fg(Color::Cyan));
|
.border_style(Style::default().fg(Color::Cyan));
|
||||||
let paragraph = Paragraph::new(lines)
|
f.render_widget(Paragraph::new(lines).block(block).wrap(Wrap { trim: true }), popup_area);
|
||||||
.block(block)
|
|
||||||
.wrap(Wrap { trim: true });
|
|
||||||
f.render_widget(paragraph, popup_area);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Popup::Updating {
|
Popup::Updating { info, downloaded, status } => {
|
||||||
info,
|
|
||||||
downloaded,
|
|
||||||
status,
|
|
||||||
} => {
|
|
||||||
let (title, border_color) = match status {
|
let (title, border_color) = match status {
|
||||||
UpdatingStatus::Downloading => (" Загрузка обновления… ", Color::Cyan),
|
UpdatingStatus::Downloading => (" Загрузка обновления… ", Color::Cyan),
|
||||||
UpdatingStatus::Applying => (" Применение обновления… ", Color::Yellow),
|
UpdatingStatus::Applying => (" Применение обновления… ", Color::Yellow),
|
||||||
@@ -283,23 +370,14 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
let bar_width = popup_area.width.saturating_sub(4) as usize;
|
let bar_width = popup_area.width.saturating_sub(4) as usize;
|
||||||
|
|
||||||
let progress_line = if info.size > 0 {
|
let progress_line = if info.size > 0 {
|
||||||
let percent = ((*downloaded as f64 / info.size as f64) * 100.0)
|
let percent = ((*downloaded as f64 / info.size as f64) * 100.0).min(100.0) as usize;
|
||||||
.min(100.0) as usize;
|
|
||||||
let filled = (percent * bar_width) / 100;
|
let filled = (percent * bar_width) / 100;
|
||||||
format!(
|
format!("[{}{}] {}%", "█".repeat(filled), "░".repeat(bar_width.saturating_sub(filled)), percent)
|
||||||
"[{}{}] {}%",
|
|
||||||
"█".repeat(filled),
|
|
||||||
"░".repeat(bar_width.saturating_sub(filled)),
|
|
||||||
percent
|
|
||||||
)
|
|
||||||
} else {
|
} else {
|
||||||
// Indeterminate: animate based on downloaded bytes
|
|
||||||
let pos = ((*downloaded / 4096) as usize) % bar_width.max(1);
|
let pos = ((*downloaded / 4096) as usize) % bar_width.max(1);
|
||||||
let thumb = 4.min(bar_width);
|
let thumb = 4.min(bar_width);
|
||||||
let mut bar = vec!['░'; bar_width];
|
let mut bar = vec!['░'; bar_width];
|
||||||
for i in pos..((pos + thumb).min(bar_width)) {
|
for i in pos..((pos + thumb).min(bar_width)) { bar[i] = '█'; }
|
||||||
bar[i] = '█';
|
|
||||||
}
|
|
||||||
format!("[{}]", bar.iter().collect::<String>())
|
format!("[{}]", bar.iter().collect::<String>())
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -310,8 +388,7 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
let mb_total = info.size as f64 / 1_048_576.0;
|
let mb_total = info.size as f64 / 1_048_576.0;
|
||||||
format!(" {:.1} / {:.1} МБ", mb_done, mb_total)
|
format!(" {:.1} / {:.1} МБ", mb_done, mb_total)
|
||||||
} else {
|
} else {
|
||||||
let kb = *downloaded / 1024;
|
format!(" {} КБ загружено", *downloaded / 1024)
|
||||||
format!(" {} КБ загружено", kb)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UpdatingStatus::Applying => " Применяется…".to_string(),
|
UpdatingStatus::Applying => " Применяется…".to_string(),
|
||||||
@@ -328,49 +405,229 @@ fn render_popup(f: &mut Frame, popup: &mut Popup) {
|
|||||||
|
|
||||||
if matches!(status, UpdatingStatus::Failed(_)) {
|
if matches!(status, UpdatingStatus::Failed(_)) {
|
||||||
lines.push(Line::from(""));
|
lines.push(Line::from(""));
|
||||||
lines.push(Line::from(Span::styled(
|
lines.push(Line::from(Span::styled(" [Esc] Закрыть", Style::default().fg(Color::Yellow))));
|
||||||
" [Esc] Закрыть",
|
|
||||||
Style::default().fg(Color::Yellow),
|
|
||||||
)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let block = Block::default()
|
let block = Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.title(title)
|
.title(title)
|
||||||
.border_style(Style::default().fg(border_color));
|
.border_style(Style::default().fg(border_color));
|
||||||
let paragraph = Paragraph::new(lines)
|
f.render_widget(Paragraph::new(lines).block(block).wrap(Wrap { trim: true }), popup_area);
|
||||||
.block(block)
|
}
|
||||||
.wrap(Wrap { trim: true });
|
|
||||||
f.render_widget(paragraph, 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 + fields[af].cursor as u16)
|
||||||
|
.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::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 cursor_x = (area.x + 1 + input.cursor as u16).min(area.x + area.width.saturating_sub(2));
|
||||||
let cursor_x = (area.x + 1 + input_buffer.chars().count() as u16)
|
|
||||||
.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));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -382,12 +639,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![
|
||||||
@@ -401,40 +653,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(" ↑↓ навигация Enter выбор ", Style::default().fg(Color::DarkGray)))
|
||||||
Line::from(Span::styled(
|
.alignment(Alignment::Right),
|
||||||
" ↑↓ навигация Enter выбор ",
|
)
|
||||||
Style::default().fg(Color::DarkGray),
|
.border_style(Style::default().fg(Color::Cyan)),
|
||||||
))
|
),
|
||||||
.alignment(Alignment::Right),
|
area,
|
||||||
)
|
&mut state,
|
||||||
.border_style(Style::default().fg(Color::Cyan)),
|
|
||||||
);
|
);
|
||||||
f.render_stateful_widget(list, area, &mut state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
executor::StructuredCommand::Confirm { prompt } => {
|
executor::StructuredCommand::Confirm { prompt } => {
|
||||||
let text = vec![
|
f.render_widget(
|
||||||
Line::from(Span::raw(prompt.as_str())),
|
Paragraph::new(vec![
|
||||||
Line::from(""),
|
Line::from(Span::raw(prompt.as_str())),
|
||||||
Line::from(Span::styled(
|
Line::from(""),
|
||||||
" [Y] Да [N / Esc] Нет",
|
Line::from(Span::styled(" [Y] Да [N / Esc] Нет", Style::default().fg(Color::Yellow))),
|
||||||
Style::default().fg(Color::Yellow),
|
])
|
||||||
)),
|
.block(Block::default().borders(Borders::ALL).title(" Подтверждение ")
|
||||||
];
|
.border_style(Style::default().fg(Color::Yellow)))
|
||||||
let paragraph = Paragraph::new(text)
|
.wrap(Wrap { trim: true }),
|
||||||
.block(
|
area,
|
||||||
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 } => {
|
||||||
@@ -443,56 +687,101 @@ 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(
|
||||||
Line::from(Span::styled(text.as_str(), Style::default().fg(color))),
|
Paragraph::new(vec![
|
||||||
Line::from(""),
|
Line::from(Span::styled(text.as_str(), Style::default().fg(color))),
|
||||||
Line::from(Span::styled(
|
Line::from(""),
|
||||||
" Нажмите Enter для продолжения",
|
Line::from(Span::styled(" Нажмите Enter для продолжения", Style::default().fg(Color::DarkGray))),
|
||||||
Style::default().fg(Color::DarkGray),
|
])
|
||||||
)),
|
.block(Block::default().borders(Borders::ALL).title(" Сообщение ")
|
||||||
];
|
.border_style(Style::default().fg(color)))
|
||||||
let paragraph = Paragraph::new(lines)
|
.wrap(Wrap { trim: true }),
|
||||||
.block(
|
area,
|
||||||
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 bar_width = area.width.saturating_sub(4) as usize;
|
|
||||||
let filled = (*percent as usize * bar_width) / 100;
|
|
||||||
let bar = format!(
|
|
||||||
"[{}{}] {}%",
|
|
||||||
"█".repeat(filled),
|
|
||||||
"░".repeat(bar_width.saturating_sub(filled)),
|
|
||||||
percent
|
|
||||||
);
|
|
||||||
let msg = message.as_deref().unwrap_or("");
|
let msg = message.as_deref().unwrap_or("");
|
||||||
let paragraph = Paragraph::new(vec![Line::from(bar), Line::from(msg)]).block(
|
match percent {
|
||||||
Block::default()
|
Some(pct) => {
|
||||||
.borders(Borders::ALL)
|
let bar_width = area.width.saturating_sub(4) as usize;
|
||||||
.title(" Прогресс ")
|
let filled = (*pct as usize * bar_width) / 100;
|
||||||
.border_style(Style::default().fg(Color::Cyan)),
|
let bar = format!(
|
||||||
);
|
"[{}{}] {}%",
|
||||||
f.render_widget(paragraph, area);
|
"█".repeat(filled),
|
||||||
|
"░".repeat(bar_width.saturating_sub(filled)),
|
||||||
|
pct
|
||||||
|
);
|
||||||
|
f.render_widget(
|
||||||
|
Paragraph::new(vec![Line::from(bar), Line::from(msg)])
|
||||||
|
.block(Block::default().borders(Borders::ALL).title(" Прогресс ")
|
||||||
|
.border_style(Style::default().fg(Color::Cyan))),
|
||||||
|
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,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
executor::StructuredCommand::Form { prompt, fields } => {
|
||||||
|
let items: Vec<ListItem> = fields.iter().enumerate().map(|(i, field)| {
|
||||||
|
let checked = form_values.get(i).copied().unwrap_or(false);
|
||||||
|
let icon = match field.field_type {
|
||||||
|
executor::FormFieldType::Checkbox => if checked { "[✓]" } else { "[ ]" },
|
||||||
|
executor::FormFieldType::Radio => if checked { "(●)" } else { "( )" },
|
||||||
|
};
|
||||||
|
let is_cursor = i == form_cursor;
|
||||||
|
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),
|
||||||
|
)
|
||||||
|
.border_style(Style::default().fg(Color::Cyan)),
|
||||||
|
),
|
||||||
|
area,
|
||||||
|
&mut state,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Exec is handled by the main loop before rendering; this arm is
|
|
||||||
// never reached in practice but satisfies the exhaustiveness check.
|
|
||||||
executor::StructuredCommand::Exec { shell } => {
|
executor::StructuredCommand::Exec { shell } => {
|
||||||
let paragraph = Paragraph::new(format!("Запуск: {}", shell))
|
f.render_widget(
|
||||||
.block(
|
Paragraph::new(format!("Запуск: {}", shell))
|
||||||
Block::default()
|
.block(Block::default().borders(Borders::ALL).title(" Внешнее приложение ")
|
||||||
.borders(Borders::ALL)
|
.border_style(Style::default().fg(Color::Magenta)))
|
||||||
.title(" Внешнее приложение ")
|
.wrap(Wrap { trim: true }),
|
||||||
.border_style(Style::default().fg(Color::Magenta)),
|
area,
|
||||||
)
|
);
|
||||||
.wrap(Wrap { trim: true });
|
|
||||||
f.render_widget(paragraph, area);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -500,24 +789,79 @@ fn render_command(
|
|||||||
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
|
||||||
|
}
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ pub async fn check(api_base: &str, timeout_sec: u64) -> Result<Option<UpdateInfo
|
|||||||
let tag = tag.split('@').next().unwrap_or(tag).trim();
|
let tag = tag.split('@').next().unwrap_or(tag).trim();
|
||||||
let new_version = tag.to_string();
|
let new_version = tag.to_string();
|
||||||
|
|
||||||
// Already up to date
|
// Only offer update if the remote version is strictly newer
|
||||||
if new_version == current_version {
|
if !is_newer(&new_version, ¤t_version) {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -154,6 +154,47 @@ pub async fn download_and_apply(
|
|||||||
Ok(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.
|
/// Replaces current process via execv (Unix). Never returns on success.
|
||||||
/// `exe_path` must be the path captured *before* the binary was replaced —
|
/// `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.
|
/// do NOT call std::env::current_exe() here, it returns "(deleted)" on Linux.
|
||||||
|
|||||||
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