diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..0eeef30 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,57 @@ +name: Android APK + +on: + workflow_dispatch: + push: + branches: [main, "agent/**"] + paths: + - "src/**" + - "public/**" + - "packages/**" + - "apps/native/**" + - "package*.json" + - "vite.config.ts" + - ".github/workflows/android.yml" + +permissions: + contents: read + +jobs: + build-debug-apk: + runs-on: ubuntu-latest + timeout-minutes: 45 + env: + NDK_VERSION: "29.0.14206865" + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + cache: gradle + - uses: android-actions/setup-android@v3 + - name: Install Android SDK packages + run: sdkmanager "platform-tools" "platforms;android-36" "build-tools;36.0.0" "ndk;$NDK_VERSION" + - uses: dtolnay/rust-toolchain@stable + with: + targets: aarch64-linux-android + - run: npm ci + - name: Build installable ARM64 debug APK + run: | + export NDK_HOME="$ANDROID_HOME/ndk/$NDK_VERSION" + npm run android:build:debug --workspace @nexus/native + - name: Collect APK + run: | + mkdir -p artifacts/android + find apps/native/src-tauri/gen/android/app/build/outputs/apk -type f -name '*.apk' -exec cp {} artifacts/android/NEXUS-Quant-v0.7.0-arm64-debug.apk \; + test -f artifacts/android/NEXUS-Quant-v0.7.0-arm64-debug.apk + - uses: actions/upload-artifact@v4 + with: + name: NEXUS-Quant-Android-v0.7.0 + path: artifacts/android/*.apk + if-no-files-found: error + retention-days: 30 diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml new file mode 100644 index 0000000..4201eaf --- /dev/null +++ b/.github/workflows/quality.yml @@ -0,0 +1,23 @@ +name: Quality Gate + +on: + pull_request: + push: + branches: [main, "agent/**"] + +permissions: + contents: read + +jobs: + verify: + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run check + diff --git a/.gitignore b/.gitignore index 206cb33..111b2fe 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ dist-ssr .env.* !.env.example apps/native/src-tauri/target +artifacts/ # Editor directories and files .vscode/* diff --git a/PROJECT_HANDOFF.md b/PROJECT_HANDOFF.md new file mode 100644 index 0000000..6a56edf --- /dev/null +++ b/PROJECT_HANDOFF.md @@ -0,0 +1,306 @@ +# NEXUS Quant 项目接手手册 + +> 最后核对:2026-08-08 · 应用版本:`0.7.0` +> 本文面向新开发者、产品负责人和接手项目的 AI。先阅读“安全边界”和“第一天接手清单”,再开始修改。 + +## 1. 项目是什么 + +NEXUS Quant 是一个面向个人学习与研究的跨资产量化金融实验室。目前把以下能力放在同一个工作空间中: + +- 分级金融课程、术语库和学习进度; +- A 股、港股、美股、期货、黄金、原油及大宗商品观察; +- A 股规则模拟、T+1 可卖数量、费用和模拟账户; +- 双均线回测、样本外分析、参数敏感性和走步验证; +- 因子研究、Rank IC、逆波动组合和组合风险分析; +- 基本面研究清单、投资论点、估值情景和权威披露入口; +- Web、Windows、Android、iOS 共用的领域核心与 API SDK。 + +这仍是学习和研究产品,不是实盘交易系统。演示行情、部分市场参数、回测数据和估值数字均为仿真或示例,不构成投资建议。 + +## 2. 当前交付状态 + +### 已经实现 + +- React 19 + TypeScript 6 + Vite 8 单页应用,共 8 个主要模块; +- Fastify API、REST 快照、SSE 行情流、安全响应头、CORS 和限流; +- 有容量和并发约束的异步研究任务,支持取消与状态统计; +- `@nexus/core`:跨端领域类型、工具目录、交易规则、回测、稳健性和因子函数; +- `@nexus/sdk`:行情、研究、风险、工具目录和订单 API 客户端; +- 仿真券商连接器、预交易检查、幂等订单、条件单撮合、撤单和脱敏审计; +- 移动优先界面:底部主导航、全部功能面板、44px 触控目标、安全区、手机底部弹层; +- PWA manifest、离线应用壳和可安装快捷入口; +- Tauri 2 原生壳、已生成的 Android Studio 工程和全套 adaptive icon; +- GitHub Actions Web 质量门禁与 ARM64 Android APK 构建; +- Dockerfile、Compose、API/架构/实盘安全文档; +- Windows 双击启动脚本 `start-nexus.cmd`; +- 29 个测试以及 API、浏览器冒烟脚本。 + +### 尚未生产化 + +- 行情提供者当前默认为内置仿真;没有购买或接入任何商业实时数据授权; +- 研究任务保存在单进程内存中,服务重启后任务消失; +- 用户、课程、订单和研究数据主要保存在浏览器本地,没有账户体系和数据库; +- `paper_broker` 与 `live` 环境在服务端默认拒绝;没有真实券商连接器; +- 组合风险使用学习用途的简化相关性假设; +- Android 当前交付调试签名 ARM64 APK;Google Play 发布签名、AAB 与商店材料尚未配置; +- 当前开发机已有 Rust、Android Studio、API 36、Build Tools、ADB 与 NDK,但因无管理员权限缺少 MSVC;本地 Android 编译应使用有 MSVC 的 Windows 或 GitHub Actions; +- 已有基础 CI,但没有生产部署 CD、生产域名、TLS、监控告警和灾难恢复。 + +## 3. 安全边界(必须遵守) + +1. 不要把数据商 Token、券商密钥、Cookie、身份证件或银行卡数据写入前端、日志、Git 或 `localStorage`。 +2. `.env` 和 `.env.*` 已被 Git 忽略;只有无密钥的 `.env.example` 可以提交。 +3. 实盘环境不得由前端参数直接开启。必须有服务端开关、账户授权、重新认证、逐笔确认、审计和紧急停止。 +4. 外部行情和工具参数必须携带来源、时间戳、新鲜度和延迟标记。`indicativeOnly=true` 的参数不能直接用于真实下单。 +5. 未经授权不得抓取、缓存或再分发交易所及数据商实时行情。 +6. 回测必须显式处理费用、滑点、未来数据、复权、停牌、涨跌停、退市和幸存者偏差;当前引擎只覆盖其中一部分。 +7. 不要宣称 VaR、压力测试或回测收益代表最大损失、未来收益或实盘承诺。 + +更完整的实盘边界见 [`docs/BROKER_CONNECTORS.md`](docs/BROKER_CONNECTORS.md)。 + +## 4. 技术架构 + +```text +React UI(Web / Tauri Windows / Android / iOS) + ├── Zustand 持久化状态 + ├── @nexus/core 领域模型与纯计算 + ├── @nexus/sdk 跨端 API 客户端 + └── MarketDataProvider + ├── SimulationMarketProvider + └── NexusApiMarketProvider(REST / SSE) + │ + Fastify API + ├── 标准化行情网关 + ├── 异步研究任务 + ├── 组合风险分析 + └── 仿真券商与审计 +``` + +关键原则:页面不理解供应商私有格式;交易和回测规则尽量放在无 React、DOM、网络依赖的 `packages/core`;跨端网络协议放在 `packages/sdk`。 + +## 5. 目录导航 + +| 路径 | 责任 | +| --- | --- | +| `src/pages/` | 8 个业务页面:总览、学习、市场、期货、模拟盘、策略、研究、风险 | +| `src/components/` | 应用壳、共享组件、错误边界、基本面研究组件 | +| `src/services/` | 行情提供者与研究 API 适配 | +| `src/store.ts` | Zustand 本地账户、持仓、订单和课程状态 | +| `packages/core/src/` | 领域类型、交易规则、工具目录、回测、稳健性、因子和结算函数 | +| `packages/sdk/src/` | 跨端 API SDK 和 SSE 适配器 | +| `server/app.ts` | API 路由、输入校验和安全中间件 | +| `server/researchJobs.ts` | 有界内存研究队列 | +| `server/broker.ts` | 仿真券商连接器参考实现 | +| `server/risk.ts` | 组合风险计算 | +| `apps/native/` | Tauri 2 Windows/Android/iOS 壳、Android Studio 工程与图标 | +| `scripts/` | API 与浏览器冒烟测试 | +| `docs/` | API、架构、数据源、多平台和实盘安全说明 | + +## 6. 本地启动 + +### Windows 最简方式 + +双击仓库根目录的 `start-nexus.cmd`。脚本会在需要时安装依赖,启动 Web 与 API,并打开浏览器。 + +- Web:`http://localhost:5173/#overview` +- API:`http://127.0.0.1:8787` +- 健康检查:`http://127.0.0.1:8787/api/health` + +标题为 `NEXUS Quant Services` 的窗口必须保持打开;关闭窗口即停止服务。 + +### 命令行方式 + +```bash +npm install +npm run dev:full +``` + +只启动前端:`npm run dev` +只启动 API:`npm run server:dev` + +如果端口被占用,在 Windows PowerShell 中检查: + +```powershell +Get-NetTCPConnection -State Listen | Where-Object LocalPort -In 5173,8787 +``` + +不要通过结束所有 Node 进程来解决端口问题;应确认 PID 后只停止本项目的进程。 + +## 7. 环境配置 + +复制 `.env.example` 中需要的配置,不要直接修改或提交真实密钥。 + +| 变量 | 用途 | 默认值 | +| --- | --- | --- | +| `VITE_NEXUS_API_BASE` | 前端 API 基址;同源或 Vite 代理时留空 | 空 | +| `PORT` | API 端口 | `8787` | +| `HOST` | API 监听地址 | `127.0.0.1` | +| `NEXUS_ALLOWED_ORIGIN` | 逗号分隔的 CORS 白名单 | 本地 Vite 地址 | + +生产容器示例:`docker compose up --build`。当前机器未验证 Docker 构建,部署前必须在安装 Docker 的环境执行镜像构建和健康检查。 + +## 8. 必跑质量门禁 + +提交前运行: + +```bash +npm run check +``` + +它依次执行: + +1. `npm run lint` +2. `npm test` +3. `npm run build` +4. `npm run qa:api` +5. `npm run qa:e2e` + +当前基线为 9 个测试文件、29 个测试。数量增加是正常的,减少时必须解释原因。浏览器冒烟覆盖 8 个桌面路由、8 个手机路由、7 个关键交互、全局横向溢出检查和两张视觉快照;新增页面或关键流程时必须同步扩展 `scripts/smoke.mjs`。 + +额外检查: + +```bash +npm audit +git diff --check +git status -sb +``` + +## 9. API 快速索引 + +| 方法 | 路径 | 用途 | +| --- | --- | --- | +| GET | `/api/health` | 服务状态和版本 | +| GET | `/api/v1/system/capabilities` | 客户端能力发现 | +| GET | `/api/v1/instruments` | 跨资产工具目录 | +| GET | `/api/v1/markets/snapshot` | 行情快照 | +| GET | `/api/v1/markets/stream` | SSE 行情流 | +| POST | `/api/v1/research/jobs` | 创建回测或稳健性任务 | +| GET | `/api/v1/research/jobs/:id` | 查询任务 | +| DELETE | `/api/v1/research/jobs/:id` | 取消排队任务 | +| GET | `/api/v1/research/stats` | 任务队列统计 | +| POST | `/api/v1/portfolio/risk` | 组合风险分析 | +| POST | `/api/v1/trading/orders/preview` | 预交易检查 | +| POST | `/api/v1/trading/orders` | 提交仿真订单 | +| GET | `/api/v1/trading/orders` | 订单列表 | +| DELETE | `/api/v1/trading/orders/:id` | 撤单 | +| GET | `/api/v1/trading/audit` | 脱敏审计事件 | + +详细请求与响应见 [`docs/API.md`](docs/API.md)。 + +## 10. 浏览器持久化状态 + +当前以下数据保存在浏览器本地,清理站点数据会丢失: + +- `nexus-quant-state`:账户、持仓、订单和课程完成状态; +- `nexus-data-source`:行情源选择; +- `nexus-research-note`:量化研究笔记; +- `nexus-fundamental-checks`:基本面研究清单; +- `nexus-investment-thesis`:投资论点; +- `nexus-learning-level`:解释深度。 + +修改 Zustand 持久化结构时需要设计迁移,不能假设用户一定是全新状态。 + +## 11. 常见扩展方式 + +### 新增行情提供者 + +1. 在 `src/services/marketData.ts` 实现相同 provider 生命周期; +2. 服务端完成供应商字段到统一行情结构的转换; +3. 密钥只放服务端; +4. 保留仿真回退和延迟/错误状态; +5. 扩展 API 与浏览器冒烟测试。 + +### 新增资产或交易规则 + +1. 扩展 `packages/core/src/domain.ts`; +2. 在 `packages/core/src/instruments.ts` 增加带来源和生效日的工具定义; +3. 在纯函数层实现校验并增加单元测试; +4. 再接入 API、SDK 和页面; +5. 动态保证金、港股整手和期货合约参数必须标记为需要刷新。 + +### 新增研究分析 + +1. 优先在 `packages/core` 编写可复现纯函数和确定性测试; +2. 大计算通过研究任务协议运行,不阻塞请求线程; +3. SDK 返回紧凑、跨端稳定的结果; +4. 页面必须显示样本、费用、参数和方法边界。 + +## 12. Git 与 GitHub 工作流 + +远端仓库:`https://github.com/fluopath/Nexus-Quant-lab` + +本文创建时的状态: + +- 分支:`agent/initial-nexus-quant-platform` +- 初始平台提交:`932017b` +- Draft PR:`https://github.com/fluopath/Nexus-Quant-lab/pull/1` + +开始工作前先执行: + +```bash +git status -sb +git fetch origin +``` + +确认 PR #1 是否已经合并。如果已合并,从最新 `main` 创建新的 `agent/` 分支;不要继续在已合并的旧分支堆叠无关改动。禁止 force-push、`git reset --hard` 或静默覆盖他人改动。 + +提交原则:一次提交只表达一个清晰意图;提交前检查 staged diff;通过 PR 合并到 `main`。 + +## 13. 已知技术债与建议优先级 + +### P0:生产基础 + +1. 在现有 GitHub Actions 之上增加发布签名、SBOM、依赖审查和生产部署审批; +2. 增加用户认证、PostgreSQL 数据模型、迁移和备份; +3. 建立数据授权清单、供应商接口和行情质量监控; +4. 增加结构化日志、指标、追踪、错误上报和健康/就绪探针; +5. 安全评审后再开始真实券商适配。 + +### P1:研究和交易真实性 + +1. Redis/消息队列 + 独立研究 Worker,替换内存任务; +2. 历史行情版本、参数哈希、代码版本和结果对象存储; +3. 复权、停牌、涨跌停、退市、连续合约和交易日历; +4. 模拟盘统一使用服务端订单生命周期,而不是部分逻辑仍在前端即时成交; +5. 风险模型加入协方差、货币、行业、期限和衍生品 Greeks。 + +### P2:体验扩展 + +1. 观察列表、提醒、任务中心和研究工作流; +2. 课程 CMS、错题本、练习沙箱和学习推荐; +3. Python 研究服务与 TypeScript 结果交叉验证; +4. 完成 Windows 安装包、iOS 真机构建,以及 Android 稳定发布签名与 Play AAB; +5. 无障碍、视觉回归和性能预算。 + +## 14. Definition of Done + +一个功能只有同时满足以下条件才算完成: + +- 需求和不支持范围写清楚; +- 核心规则位于正确层,不在多个页面复制; +- 输入校验、错误状态、加载状态和离线/失败路径完整; +- 关键逻辑有测试,关键用户流程有冒烟覆盖; +- `npm run check` 通过; +- 没有提交密钥、个人数据、构建产物或无授权数据; +- README/API/架构或本接手文档已同步; +- 金融结果显示数据时间、费用、方法假设和风险提示。 + +## 15. 第一天接手清单 + +1. 阅读 `README.md`、本文、`docs/ARCHITECTURE.md` 和 `docs/BROKER_CONNECTORS.md`。 +2. 确认 PR #1 和当前分支状态,避免基于过期分支开发。 +3. 运行 `npm install` 与 `npm run check`,记录自己的环境差异。 +4. 用 `npm run dev:full` 打开 8 个模块,完成一次课程、模拟交易和回测。 +5. 阅读 `packages/core/src/domain.ts`、`server/app.ts` 和 `src/store.ts`。 +6. 从 P0/P1 中选择一个边界明确的任务,先写验收标准再改代码。 +7. 所有真实数据、账户或实盘相关工作先做安全与合规审查。 + +## 16. 延伸文档 + +- [`README.md`](README.md):产品功能和快速启动; +- [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md):架构和数据路径; +- [`docs/API.md`](docs/API.md):API 协议; +- [`docs/DATA_PROVIDER_GUIDE.md`](docs/DATA_PROVIDER_GUIDE.md):行情提供者接入; +- [`docs/BROKER_CONNECTORS.md`](docs/BROKER_CONNECTORS.md):实盘连接器与安全边界; +- [`docs/MULTIPLATFORM.md`](docs/MULTIPLATFORM.md):Windows/Android/iOS 交付策略; +- [`apps/native/README.md`](apps/native/README.md):Tauri 构建入口。 diff --git a/README.md b/README.md index f1e20f8..fd03714 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# NEXUS Quant +# NEXUS Quant v0.7 + +> 新开发者或下一位维护者请先阅读 [`PROJECT_HANDOFF.md`](PROJECT_HANDOFF.md),其中包含当前状态、架构边界、启动排错、质量门禁和后续优先级。 一个面向个人学习与研究的量化金融实验室。产品将课程、全市场观察、模拟交易与策略回测放在同一个工作空间内,让金融知识能够立刻被实践和验证。 @@ -72,7 +74,11 @@ docker compose up --build Windows / Android / iOS 壳的命令与平台前置条件见 `apps/native/README.md`。Web、桌面和移动端共享同一套页面、领域模型与 SDK,避免为每个平台复制交易逻辑。 -当前单元测试覆盖确定性行情生成、交易日时区、净值与回撤不变量、股票/ETF 费用差异、A 股整手/T+1、跨资产工具规则、研究队列、组合风险与券商订单生命周期。端到端测试会启动临时 Vite 服务并使用本机 Chrome 验证八个模块、全局搜索、课程阅读器、整手拦截、策略助手与数据源设置。 +### Android 安装包 + +仓库的 **Actions → Android APK** 会自动生成可直接侧载的 ARM64 调试 APK。打开成功的运行记录,下载 `NEXUS-Quant-Android-v0.7.0` artifact,解压后在 Android 7.0 以上设备安装。该包用于当前阶段的真机体验,不是 Google Play 正式签名版本;完整构建、安装和签名说明见 [`apps/native/README.md`](apps/native/README.md)。 + +当前单元测试覆盖确定性行情生成、交易日时区、净值与回撤不变量、股票/ETF 费用差异、A 股整手/T+1、跨资产工具规则、研究队列、组合风险与券商订单生命周期。端到端测试会启动临时 Vite 服务并使用本机 Chrome 验证 8 个桌面路由、8 个手机路由、移动底部导航、全局搜索、课程阅读器、整手拦截、策略助手与数据源设置。 ## 模拟交易参数依据 diff --git a/apps/native/README.md b/apps/native/README.md index 41408bf..ccd3ac7 100644 --- a/apps/native/README.md +++ b/apps/native/README.md @@ -1,11 +1,48 @@ # NEXUS Native -Tauri 2 多端壳,共用根目录 React 前端、`@nexus/core` 与 `@nexus/sdk`。 +Tauri 2 多端壳,共用根目录 React 前端、`@nexus/core` 与 `@nexus/sdk`。Android 工程位于 `src-tauri/gen/android`,包名 `com.nexus.quant`,最低 Android 7.0(API 24),目标 API 36。 -- Windows:`npm run desktop:dev --workspace @nexus/native` -- Android:`npm run android:dev --workspace @nexus/native` -- iOS:`npm run ios:dev --workspace @nexus/native`(必须在 macOS + Xcode 上执行) +## 试玩 Android APK -首次构建需要安装 Rust 与平台工具链。Windows 需要 Microsoft C++ Build Tools 和 WebView2;Android 需要 Android Studio/SDK;iOS 需要 macOS、Xcode 和 CocoaPods。平台依赖以 Tauri 2 官方 prerequisites 为准。 +1. 在 GitHub 打开 **Actions → Android APK**,进入最近一次成功运行。 +2. 下载 artifact `NEXUS-Quant-Android-v0.7.0` 并解压。 +3. 把 `NEXUS-Quant-v0.7.0-arm64-debug.apk` 传到 Android 手机。 +4. 系统提示时,只对当前文件管理器临时允许“安装未知应用”,安装完成后可以关闭该权限。 -安全原则:默认 capability 只开放 `core:default`,新增文件、通知、生物识别或券商连接插件时必须逐项增加最小权限,禁止使用全量 allowlist。 +调试 APK 使用 Android 的调试签名,适合内部试玩,不应用于应用商店或正式分发。正式发布必须创建独立上传密钥,并把密钥和密码放在 GitHub Secrets;严禁提交 `.jks`、`keystore.properties` 或密码。 + +当前 v0.7 ARM64 调试包已通过 `aapt` 与 `apksigner` 校验,体积约 13 MiB。每次云构建会生成新的调试证书,因此若手机提示签名不一致,先卸载旧调试版再安装;正式发布后必须固定发布证书以支持覆盖升级。 + +## 开发命令 + +```bash +# 首次生成 Android Studio 工程 +npm run android:init --workspace @nexus/native + +# ARM64 可安装调试 APK +npm run android:build:debug --workspace @nexus/native + +# ARM64 + ARMv7 发布构建(正式分发前仍需配置签名) +npm run android:build:release --workspace @nexus/native + +# 连接手机或模拟器热调试 +npm run android:dev --workspace @nexus/native + +# Windows 桌面 +npm run desktop:dev --workspace @nexus/native +``` + +调试 APK 通常输出到 `src-tauri/gen/android/app/build/outputs/apk`。可用 `adb devices` 查看设备,用 `adb install -r ` 覆盖安装。 + +## 工具链 + +Android 构建需要 Rust stable、`aarch64-linux-android` 等 Rust target、JDK、Android Platform/Build Tools、Platform Tools 和 NDK。当前可复现版本为 Platform 36、Build Tools 36.0.0、Platform Tools 37、NDK 29.0.14206865。Windows 宿主还需要 Microsoft C++ Build Tools;若本机没有管理员权限,使用仓库 `Android APK` GitHub Actions 构建。 + +iOS 命令为 `npm run ios:dev --workspace @nexus/native`,必须在 macOS + Xcode 上执行。平台依赖以 Tauri 2 官方 prerequisites 为准。 + +## 安全与权限 + +- 默认 capability 只开放 `core:default`;新增文件、通知、生物识别或券商插件时逐项增加最小权限。 +- Android release 禁止明文 HTTP,且 `allowBackup=false`,减少本地模拟账户数据被系统备份的范围。 +- API Token 和券商密钥只能存服务端或系统安全密钥库,不能进入 WebView、`localStorage`、日志或 Git。 +- 任何实盘插件都必须额外完成账户绑定、重新认证、交易预览、限额、审计和紧急停止设计。 diff --git a/apps/native/package.json b/apps/native/package.json index 5f0cabc..5fe9f59 100644 --- a/apps/native/package.json +++ b/apps/native/package.json @@ -1,17 +1,20 @@ { "name": "@nexus/native", - "version": "0.6.0", + "version": "0.7.0", "private": true, "type": "module", "scripts": { "tauri": "tauri", "desktop:dev": "tauri dev", "desktop:build": "tauri build", + "android:init": "tauri android init --ci", "android:dev": "tauri android dev", "android:build": "tauri android build", + "android:build:debug": "tauri android build --debug --apk --target aarch64 --ci", + "android:build:release": "tauri android build --apk --target aarch64 --target armv7 --ci", "ios:dev": "tauri ios dev", "ios:build": "tauri ios build" }, - "dependencies": { "@nexus/core": "0.6.0", "@nexus/sdk": "0.6.0", "@tauri-apps/api": "^2.11.1" }, + "dependencies": { "@nexus/core": "0.7.0", "@nexus/sdk": "0.7.0", "@tauri-apps/api": "^2.11.1" }, "devDependencies": { "@tauri-apps/cli": "^2.11.4" } } diff --git a/apps/native/src-tauri/Cargo.lock b/apps/native/src-tauri/Cargo.lock new file mode 100644 index 0000000..29b8f16 --- /dev/null +++ b/apps/native/src-tauri/Cargo.lock @@ -0,0 +1,4394 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "brotli" +version = "8.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.13.1", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.20", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d262e149917187838d5b42777c8253bcb64500067342904e7d429499a6f277e" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.13.1", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "ctor" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98" +dependencies = [ + "ctor-proc-macro", + "dtor", +] + +[[package]] +name = "ctor-proc-macro" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.119", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dbus" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.1", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dtor" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4" +dependencies = [ + "dtor-proc-macro", +] + +[[package]] +name = "dtor-proc-macro" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbfdaacccebec3b28e4866b8973543c7647797db5ada1bdab552e48fe665fbbd" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.4+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7" + +[[package]] +name = "futures-executor" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a" + +[[package]] +name = "futures-macro" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "futures-sink" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307" + +[[package]] +name = "futures-task" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109" + +[[package]] +name = "futures-util" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.13.1", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "ipnet" +version = "2.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "js-sys" +version = "0.3.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.13.1", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.189" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2026a5056764a10b2bf5d56488cba40da507f5493a6a429340e2004d9ed085fa" +dependencies = [ + "libc", +] + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.19.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.20", + "windows-sys 0.61.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.1", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nexus-quant" +version = "0.3.0" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.1", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.1", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.1", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.13.1", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "plist" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da1d65da6dd5d1e44199ac0f58712d241c0f439f80adea8924d832384087f85" +dependencies = [ + "base64 0.22.1", + "indexmap 2.14.0", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.1", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.13+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.1", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.20", +] + +[[package]] +name = "ref-cast" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216e8f773d7923bcba9ceb86a86c93cabb3903a11872fc3f138c49630e50b96d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c9283685feec7d69af75fb0e858d5e7378f33fe4fc699383b2916ab9273e03c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.119", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.13.1", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf", + "phf_codegen", + "precomputed-hash", + "rustc-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a5c54c7310e7b8b9577c286d7e399ddd876c3e12b3ed917a8aabc4b96e9e8c" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.2", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84d57bc0c8b9a17920c178daa6bb924850d54a9c97ab45194bb8c17ad66bb660" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.35.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9" +dependencies = [ + "bitflags 2.13.1", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "once_cell", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.20", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.17.16", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.119", + "tauri-utils", + "thiserror 2.0.20", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.119", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.20", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dom_query", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf", + "plist", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.20", + "toml 1.1.4+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.1.4+spec-1.1.0", +] + +[[package]] +name = "tendril" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08" +dependencies = [ + "new_debug_unreachable", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" +dependencies = [ + "thiserror-impl 2.0.20", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml" +version = "1.1.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.4", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.14.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.13+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.4", +] + +[[package]] +name = "toml_parser" +version = "1.1.3+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56" +dependencies = [ + "winnow 1.0.4", +] + +[[package]] +name = "toml_writer" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.1", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.20", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239" +dependencies = [ + "getrandom 0.4.3", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.119", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "075474b12bcb3d2e3d4546580e9de478eeeead668a1761e2a8860c836b7ef297" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement", + "windows-interface", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.20", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.55.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +dependencies = [ + "cfg-if", + "windows-sys 0.59.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "wry" +version = "0.55.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dom_query", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.20", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/apps/native/src-tauri/Cargo.toml b/apps/native/src-tauri/Cargo.toml index 639e80d..22f152a 100644 --- a/apps/native/src-tauri/Cargo.toml +++ b/apps/native/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nexus-quant" -version = "0.3.0" +version = "0.7.0" description = "NEXUS Quant multi-platform research and trading laboratory" authors = ["NEXUS Quant"] edition = "2021" @@ -23,3 +23,11 @@ codegen-units = 1 lto = true opt-level = "s" strip = true + +# Debug APKs are distributed to testers, so keep runtime diagnostics in the +# WebView while removing native symbol tables that otherwise add ~110 MB. +[profile.dev] +panic = "abort" +opt-level = 1 +debug = 0 +strip = "symbols" diff --git a/apps/native/src-tauri/gen/android/.editorconfig b/apps/native/src-tauri/gen/android/.editorconfig new file mode 100644 index 0000000..ebe51d3 --- /dev/null +++ b/apps/native/src-tauri/gen/android/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/.gitignore b/apps/native/src-tauri/gen/android/.gitignore new file mode 100644 index 0000000..1c636c3 --- /dev/null +++ b/apps/native/src-tauri/gen/android/.gitignore @@ -0,0 +1,20 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +build +/captures +.externalNativeBuild +.cxx +local.properties +key.properties +keystore.properties + +/.tauri +/tauri.settings.gradle \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/.gitignore b/apps/native/src-tauri/gen/android/app/.gitignore new file mode 100644 index 0000000..6c4d56b --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/.gitignore @@ -0,0 +1,6 @@ +/src/main/**/generated +/src/main/jniLibs/**/*.so +/src/main/assets/tauri.conf.json +/tauri.build.gradle.kts +/proguard-tauri.pro +/tauri.properties \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/build.gradle.kts b/apps/native/src-tauri/gen/android/app/build.gradle.kts new file mode 100644 index 0000000..f0df6a2 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/build.gradle.kts @@ -0,0 +1,71 @@ +import java.util.Properties + +plugins { + id("com.android.application") + id("org.jetbrains.kotlin.android") + id("rust") +} + +val tauriProperties = Properties().apply { + val propFile = file("tauri.properties") + if (propFile.exists()) { + propFile.inputStream().use { load(it) } + } +} + +android { + compileSdk = 36 + namespace = "com.nexus.quant" + defaultConfig { + manifestPlaceholders["usesCleartextTraffic"] = "false" + applicationId = "com.nexus.quant" + minSdk = 24 + targetSdk = 36 + versionCode = tauriProperties.getProperty("tauri.android.versionCode", "1").toInt() + versionName = tauriProperties.getProperty("tauri.android.versionName", "1.0") + } + buildTypes { + getByName("debug") { + manifestPlaceholders["usesCleartextTraffic"] = "true" + isDebuggable = true + isJniDebuggable = true + isMinifyEnabled = false + packaging { jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so") + jniLibs.keepDebugSymbols.add("*/armeabi-v7a/*.so") + jniLibs.keepDebugSymbols.add("*/x86/*.so") + jniLibs.keepDebugSymbols.add("*/x86_64/*.so") + } + } + getByName("release") { + isMinifyEnabled = true + proguardFiles( + *fileTree(".") { include("**/*.pro") } + .plus(getDefaultProguardFile("proguard-android-optimize.txt")) + .toList().toTypedArray() + ) + } + } + kotlinOptions { + jvmTarget = "1.8" + } + buildFeatures { + buildConfig = true + } +} + +rust { + rootDirRel = "../../../" +} + +dependencies { + implementation("androidx.webkit:webkit:1.14.0") + implementation("androidx.appcompat:appcompat:1.7.1") + implementation("androidx.activity:activity-ktx:1.10.1") + implementation("com.google.android.material:material:1.12.0") + implementation("androidx.lifecycle:lifecycle-process:2.10.0") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.4") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.0") +} + +apply(from = "tauri.build.gradle.kts") \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/proguard-rules.pro b/apps/native/src-tauri/gen/android/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/AndroidManifest.xml b/apps/native/src-tauri/gen/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..0039e54 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/native/src-tauri/gen/android/app/src/main/java/com/nexus/quant/MainActivity.kt b/apps/native/src-tauri/gen/android/app/src/main/java/com/nexus/quant/MainActivity.kt new file mode 100644 index 0000000..35bee20 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/java/com/nexus/quant/MainActivity.kt @@ -0,0 +1,11 @@ +package com.nexus.quant + +import android.os.Bundle +import androidx.activity.enableEdgeToEdge + +class MainActivity : TauriActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + enableEdgeToEdge() + super.onCreate(savedInstanceState) + } +} diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/apps/native/src-tauri/gen/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/drawable/ic_launcher_background.xml b/apps/native/src-tauri/gen/android/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/layout/activity_main.xml b/apps/native/src-tauri/gen/android/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..4fc2444 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..2ffbf24 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..0d108b4 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..aa8e3d4 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..1b57dd8 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..ebdb767 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..9ebaed3 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..1883e4f Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..cd6d40f Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..6750b94 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..fd45197 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..ce76ae5 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..777e2d9 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..5df8c1b Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..07ce685 Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..1903b7e Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..7f31cec Binary files /dev/null and b/apps/native/src-tauri/gen/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/values-night/themes.xml b/apps/native/src-tauri/gen/android/app/src/main/res/values-night/themes.xml new file mode 100644 index 0000000..a150417 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/values-night/themes.xml @@ -0,0 +1,6 @@ + + + + diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/values/colors.xml b/apps/native/src-tauri/gen/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..f8c6127 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/values/ic_launcher_background.xml b/apps/native/src-tauri/gen/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..ea9c223 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #fff + \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/values/strings.xml b/apps/native/src-tauri/gen/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..1d2c0c6 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + "NEXUS Quant" + "NEXUS Quant" + \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/values/themes.xml b/apps/native/src-tauri/gen/android/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..a150417 --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/values/themes.xml @@ -0,0 +1,6 @@ + + + + diff --git a/apps/native/src-tauri/gen/android/app/src/main/res/xml/file_paths.xml b/apps/native/src-tauri/gen/android/app/src/main/res/xml/file_paths.xml new file mode 100644 index 0000000..782d63b --- /dev/null +++ b/apps/native/src-tauri/gen/android/app/src/main/res/xml/file_paths.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/apps/native/src-tauri/gen/android/build.gradle.kts b/apps/native/src-tauri/gen/android/build.gradle.kts new file mode 100644 index 0000000..607240b --- /dev/null +++ b/apps/native/src-tauri/gen/android/build.gradle.kts @@ -0,0 +1,22 @@ +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath("com.android.tools.build:gradle:8.11.0") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25") + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +tasks.register("clean").configure { + delete("build") +} + diff --git a/apps/native/src-tauri/gen/android/buildSrc/build.gradle.kts b/apps/native/src-tauri/gen/android/buildSrc/build.gradle.kts new file mode 100644 index 0000000..5c55bba --- /dev/null +++ b/apps/native/src-tauri/gen/android/buildSrc/build.gradle.kts @@ -0,0 +1,23 @@ +plugins { + `kotlin-dsl` +} + +gradlePlugin { + plugins { + create("pluginsForCoolKids") { + id = "rust" + implementationClass = "RustPlugin" + } + } +} + +repositories { + google() + mavenCentral() +} + +dependencies { + compileOnly(gradleApi()) + implementation("com.android.tools.build:gradle:8.11.0") +} + diff --git a/apps/native/src-tauri/gen/android/buildSrc/src/main/java/com/nexus/quant/kotlin/BuildTask.kt b/apps/native/src-tauri/gen/android/buildSrc/src/main/java/com/nexus/quant/kotlin/BuildTask.kt new file mode 100644 index 0000000..a3de125 --- /dev/null +++ b/apps/native/src-tauri/gen/android/buildSrc/src/main/java/com/nexus/quant/kotlin/BuildTask.kt @@ -0,0 +1,68 @@ +import java.io.File +import org.apache.tools.ant.taskdefs.condition.Os +import org.gradle.api.DefaultTask +import org.gradle.api.GradleException +import org.gradle.api.logging.LogLevel +import org.gradle.api.tasks.Input +import org.gradle.api.tasks.TaskAction + +open class BuildTask : DefaultTask() { + @Input + var rootDirRel: String? = null + @Input + var target: String? = null + @Input + var release: Boolean? = null + + @TaskAction + fun assemble() { + val executable = """npm"""; + try { + runTauriCli(executable) + } catch (e: Exception) { + if (Os.isFamily(Os.FAMILY_WINDOWS)) { + // Try different Windows-specific extensions + val fallbacks = listOf( + "$executable.exe", + "$executable.cmd", + "$executable.bat", + ) + + var lastException: Exception = e + for (fallback in fallbacks) { + try { + runTauriCli(fallback) + return + } catch (fallbackException: Exception) { + lastException = fallbackException + } + } + throw lastException + } else { + throw e; + } + } + } + + fun runTauriCli(executable: String) { + val rootDirRel = rootDirRel ?: throw GradleException("rootDirRel cannot be null") + val target = target ?: throw GradleException("target cannot be null") + val release = release ?: throw GradleException("release cannot be null") + val args = listOf("run", "--", "tauri", "android", "android-studio-script"); + + project.exec { + workingDir(File(project.projectDir, rootDirRel)) + executable(executable) + args(args) + if (project.logger.isEnabled(LogLevel.DEBUG)) { + args("-vv") + } else if (project.logger.isEnabled(LogLevel.INFO)) { + args("-v") + } + if (release) { + args("--release") + } + args(listOf("--target", target)) + }.assertNormalExitValue() + } +} \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/buildSrc/src/main/java/com/nexus/quant/kotlin/RustPlugin.kt b/apps/native/src-tauri/gen/android/buildSrc/src/main/java/com/nexus/quant/kotlin/RustPlugin.kt new file mode 100644 index 0000000..4aa7fca --- /dev/null +++ b/apps/native/src-tauri/gen/android/buildSrc/src/main/java/com/nexus/quant/kotlin/RustPlugin.kt @@ -0,0 +1,85 @@ +import com.android.build.api.dsl.ApplicationExtension +import org.gradle.api.DefaultTask +import org.gradle.api.Plugin +import org.gradle.api.Project +import org.gradle.kotlin.dsl.configure +import org.gradle.kotlin.dsl.get + +const val TASK_GROUP = "rust" + +open class Config { + lateinit var rootDirRel: String +} + +open class RustPlugin : Plugin { + private lateinit var config: Config + + override fun apply(project: Project) = with(project) { + config = extensions.create("rust", Config::class.java) + + val defaultAbiList = listOf("arm64-v8a", "armeabi-v7a", "x86", "x86_64"); + val abiList = (findProperty("abiList") as? String)?.split(',') ?: defaultAbiList + + val defaultArchList = listOf("arm64", "arm", "x86", "x86_64"); + val archList = (findProperty("archList") as? String)?.split(',') ?: defaultArchList + + val targetsList = (findProperty("targetList") as? String)?.split(',') ?: listOf("aarch64", "armv7", "i686", "x86_64") + + extensions.configure { + @Suppress("UnstableApiUsage") + flavorDimensions.add("abi") + productFlavors { + create("universal") { + dimension = "abi" + ndk { + abiFilters += abiList + } + } + defaultArchList.forEachIndexed { index, arch -> + create(arch) { + dimension = "abi" + ndk { + abiFilters.add(defaultAbiList[index]) + } + } + } + } + } + + afterEvaluate { + for (profile in listOf("debug", "release")) { + val profileCapitalized = profile.replaceFirstChar { it.uppercase() } + val buildTask = tasks.maybeCreate( + "rustBuildUniversal$profileCapitalized", + DefaultTask::class.java + ).apply { + group = TASK_GROUP + description = "Build dynamic library in $profile mode for all targets" + } + + tasks["mergeUniversal${profileCapitalized}JniLibFolders"].dependsOn(buildTask) + + for (targetPair in targetsList.withIndex()) { + val targetName = targetPair.value + val targetArch = archList[targetPair.index] + val targetArchCapitalized = targetArch.replaceFirstChar { it.uppercase() } + val targetBuildTask = project.tasks.maybeCreate( + "rustBuild$targetArchCapitalized$profileCapitalized", + BuildTask::class.java + ).apply { + group = TASK_GROUP + description = "Build dynamic library in $profile mode for $targetArch" + rootDirRel = config.rootDirRel + target = targetName + release = profile == "release" + } + + buildTask.dependsOn(targetBuildTask) + tasks["merge$targetArchCapitalized${profileCapitalized}JniLibFolders"].dependsOn( + targetBuildTask + ) + } + } + } + } +} \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/gradle.properties b/apps/native/src-tauri/gen/android/gradle.properties new file mode 100644 index 0000000..2a7ec69 --- /dev/null +++ b/apps/native/src-tauri/gen/android/gradle.properties @@ -0,0 +1,24 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app"s APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Kotlin code style for this project: "official" or "obsolete": +kotlin.code.style=official +# Enables namespacing of each library's R class so that its R class includes only the +# resources declared in the library itself and none from the library's dependencies, +# thereby reducing the size of the R class for that library +android.nonTransitiveRClass=true +android.nonFinalResIds=false \ No newline at end of file diff --git a/apps/native/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.jar b/apps/native/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e708b1c Binary files /dev/null and b/apps/native/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/apps/native/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.properties b/apps/native/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..c5f9a53 --- /dev/null +++ b/apps/native/src-tauri/gen/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue May 10 19:22:52 CST 2022 +distributionBase=GRADLE_USER_HOME +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip +distributionPath=wrapper/dists +zipStorePath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME diff --git a/apps/native/src-tauri/gen/android/gradlew b/apps/native/src-tauri/gen/android/gradlew new file mode 100644 index 0000000..4f906e0 --- /dev/null +++ b/apps/native/src-tauri/gen/android/gradlew @@ -0,0 +1,185 @@ +#!/usr/bin/env sh + +# +# Copyright 2015 the original author or authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" diff --git a/apps/native/src-tauri/gen/android/gradlew.bat b/apps/native/src-tauri/gen/android/gradlew.bat new file mode 100644 index 0000000..107acd3 --- /dev/null +++ b/apps/native/src-tauri/gen/android/gradlew.bat @@ -0,0 +1,89 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/apps/native/src-tauri/gen/android/settings.gradle b/apps/native/src-tauri/gen/android/settings.gradle new file mode 100644 index 0000000..3939116 --- /dev/null +++ b/apps/native/src-tauri/gen/android/settings.gradle @@ -0,0 +1,3 @@ +include ':app' + +apply from: 'tauri.settings.gradle' diff --git a/apps/native/src-tauri/icons/128x128.png b/apps/native/src-tauri/icons/128x128.png new file mode 100644 index 0000000..a3d194a Binary files /dev/null and b/apps/native/src-tauri/icons/128x128.png differ diff --git a/apps/native/src-tauri/icons/128x128@2x.png b/apps/native/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..8a9f5c5 Binary files /dev/null and b/apps/native/src-tauri/icons/128x128@2x.png differ diff --git a/apps/native/src-tauri/icons/32x32.png b/apps/native/src-tauri/icons/32x32.png new file mode 100644 index 0000000..0b1b5a8 Binary files /dev/null and b/apps/native/src-tauri/icons/32x32.png differ diff --git a/apps/native/src-tauri/icons/64x64.png b/apps/native/src-tauri/icons/64x64.png new file mode 100644 index 0000000..0dd7ae7 Binary files /dev/null and b/apps/native/src-tauri/icons/64x64.png differ diff --git a/apps/native/src-tauri/icons/Square107x107Logo.png b/apps/native/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..36c656d Binary files /dev/null and b/apps/native/src-tauri/icons/Square107x107Logo.png differ diff --git a/apps/native/src-tauri/icons/Square142x142Logo.png b/apps/native/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..fd23937 Binary files /dev/null and b/apps/native/src-tauri/icons/Square142x142Logo.png differ diff --git a/apps/native/src-tauri/icons/Square150x150Logo.png b/apps/native/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..331d272 Binary files /dev/null and b/apps/native/src-tauri/icons/Square150x150Logo.png differ diff --git a/apps/native/src-tauri/icons/Square284x284Logo.png b/apps/native/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..0e9332e Binary files /dev/null and b/apps/native/src-tauri/icons/Square284x284Logo.png differ diff --git a/apps/native/src-tauri/icons/Square30x30Logo.png b/apps/native/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..977aa41 Binary files /dev/null and b/apps/native/src-tauri/icons/Square30x30Logo.png differ diff --git a/apps/native/src-tauri/icons/Square310x310Logo.png b/apps/native/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..eca49b1 Binary files /dev/null and b/apps/native/src-tauri/icons/Square310x310Logo.png differ diff --git a/apps/native/src-tauri/icons/Square44x44Logo.png b/apps/native/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..2f2c130 Binary files /dev/null and b/apps/native/src-tauri/icons/Square44x44Logo.png differ diff --git a/apps/native/src-tauri/icons/Square71x71Logo.png b/apps/native/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..107d7e9 Binary files /dev/null and b/apps/native/src-tauri/icons/Square71x71Logo.png differ diff --git a/apps/native/src-tauri/icons/Square89x89Logo.png b/apps/native/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..efb0729 Binary files /dev/null and b/apps/native/src-tauri/icons/Square89x89Logo.png differ diff --git a/apps/native/src-tauri/icons/StoreLogo.png b/apps/native/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..e105874 Binary files /dev/null and b/apps/native/src-tauri/icons/StoreLogo.png differ diff --git a/apps/native/src-tauri/icons/icon.icns b/apps/native/src-tauri/icons/icon.icns new file mode 100644 index 0000000..ed8fecf Binary files /dev/null and b/apps/native/src-tauri/icons/icon.icns differ diff --git a/apps/native/src-tauri/icons/icon.ico b/apps/native/src-tauri/icons/icon.ico new file mode 100644 index 0000000..756ed88 Binary files /dev/null and b/apps/native/src-tauri/icons/icon.ico differ diff --git a/apps/native/src-tauri/icons/icon.png b/apps/native/src-tauri/icons/icon.png new file mode 100644 index 0000000..271b7ee Binary files /dev/null and b/apps/native/src-tauri/icons/icon.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-20x20@1x.png b/apps/native/src-tauri/icons/ios/AppIcon-20x20@1x.png new file mode 100644 index 0000000..3ce4a3c Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-20x20@1x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-20x20@2x-1.png b/apps/native/src-tauri/icons/ios/AppIcon-20x20@2x-1.png new file mode 100644 index 0000000..cac4764 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-20x20@2x-1.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-20x20@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-20x20@2x.png new file mode 100644 index 0000000..cac4764 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-20x20@2x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-20x20@3x.png b/apps/native/src-tauri/icons/ios/AppIcon-20x20@3x.png new file mode 100644 index 0000000..7bc4d65 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-20x20@3x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-29x29@1x.png b/apps/native/src-tauri/icons/ios/AppIcon-29x29@1x.png new file mode 100644 index 0000000..11bec12 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-29x29@1x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-29x29@2x-1.png b/apps/native/src-tauri/icons/ios/AppIcon-29x29@2x-1.png new file mode 100644 index 0000000..fb81038 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-29x29@2x-1.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-29x29@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-29x29@2x.png new file mode 100644 index 0000000..fb81038 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-29x29@2x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-29x29@3x.png b/apps/native/src-tauri/icons/ios/AppIcon-29x29@3x.png new file mode 100644 index 0000000..1d2f5c6 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-29x29@3x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-40x40@1x.png b/apps/native/src-tauri/icons/ios/AppIcon-40x40@1x.png new file mode 100644 index 0000000..cac4764 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-40x40@1x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-40x40@2x-1.png b/apps/native/src-tauri/icons/ios/AppIcon-40x40@2x-1.png new file mode 100644 index 0000000..ef4f001 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-40x40@2x-1.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-40x40@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-40x40@2x.png new file mode 100644 index 0000000..ef4f001 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-40x40@2x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-40x40@3x.png b/apps/native/src-tauri/icons/ios/AppIcon-40x40@3x.png new file mode 100644 index 0000000..599dc45 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-40x40@3x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-512@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-512@2x.png new file mode 100644 index 0000000..3f57a1b Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-512@2x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-60x60@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-60x60@2x.png new file mode 100644 index 0000000..599dc45 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-60x60@2x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-60x60@3x.png b/apps/native/src-tauri/icons/ios/AppIcon-60x60@3x.png new file mode 100644 index 0000000..c053e70 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-60x60@3x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-76x76@1x.png b/apps/native/src-tauri/icons/ios/AppIcon-76x76@1x.png new file mode 100644 index 0000000..f82c2c2 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-76x76@1x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-76x76@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-76x76@2x.png new file mode 100644 index 0000000..50215e9 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-76x76@2x.png differ diff --git a/apps/native/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png b/apps/native/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png new file mode 100644 index 0000000..2666235 Binary files /dev/null and b/apps/native/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png differ diff --git a/apps/native/src-tauri/tauri.conf.json b/apps/native/src-tauri/tauri.conf.json index dbf8969..0ffa475 100644 --- a/apps/native/src-tauri/tauri.conf.json +++ b/apps/native/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "NEXUS Quant", - "version": "0.6.0", + "version": "0.7.0", "identifier": "com.nexus.quant", "build": { "beforeDevCommand": "npm --prefix ../.. run dev", @@ -33,6 +33,7 @@ "category": "Finance", "shortDescription": "量化金融学习、研究与模拟交易实验室", "longDescription": "覆盖全球市场观察、分级课程、量化研究、回测、模拟交易和组合风控的多端实验室。", - "windows": { "webviewInstallMode": { "type": "downloadBootstrapper", "silent": true } } + "windows": { "webviewInstallMode": { "type": "downloadBootstrapper", "silent": true } }, + "android": { "minSdkVersion": 24 } } } diff --git a/docs/MULTIPLATFORM.md b/docs/MULTIPLATFORM.md index 75cdc6d..4c38fbd 100644 --- a/docs/MULTIPLATFORM.md +++ b/docs/MULTIPLATFORM.md @@ -22,4 +22,9 @@ NEXUS 采用“一套领域核心、一套 UI、平台能力按需适配”的 ## 构建状态 -`npm run tauri --workspace @nexus/native -- info` 已验证配置可被 Tauri CLI 读取,WebView2 与 Node 环境可用。当前开发机缺少 Rust、Cargo 和 MSVC,因此 Windows 原生二进制尚未在本机编译;Android/iOS 仍分别需要官方平台工具链。 +- Web:支持 PWA 安装、离线应用壳、manifest shortcuts 和手机安全区。 +- Android:Tauri Android Studio 工程已经生成;GitHub Actions 会构建并上传 ARM64 调试签名 APK,包名 `com.nexus.quant`,支持 Android 7.0+。 +- Windows:Tauri 配置、图标与 WebView2 已就绪;本机仍需 MSVC/C++ Build Tools 才能产出安装包。 +- iOS:共享代码与图标已就绪,但必须在 macOS、Xcode 和 CocoaPods 环境初始化与签名。 + +Android 当前 artifact 用于内部测试。Google Play 上架需要稳定的发布签名、AAB、隐私政策、数据安全表单和商店材料,不能把调试密钥当作发布密钥。 diff --git a/index.html b/index.html index 2e0c49c..92d99b6 100644 --- a/index.html +++ b/index.html @@ -3,8 +3,13 @@ + + - + + + + NEXUS Quant · 量化金融学习与策略实验室 diff --git a/package-lock.json b/package-lock.json index 828d1bf..7c0eae9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nexus-quant", - "version": "0.6.0", + "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nexus-quant", - "version": "0.6.0", + "version": "0.7.0", "workspaces": [ "packages/*", "apps/*" @@ -40,10 +40,10 @@ }, "apps/native": { "name": "@nexus/native", - "version": "0.6.0", + "version": "0.7.0", "dependencies": { - "@nexus/core": "0.6.0", - "@nexus/sdk": "0.6.0", + "@nexus/core": "0.7.0", + "@nexus/sdk": "0.7.0", "@tauri-apps/api": "^2.11.1" }, "devDependencies": { @@ -2377,9 +2377,9 @@ } }, "node_modules/fast-json-stringify/node_modules/fast-uri": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.1.1.tgz", - "integrity": "sha512-YPOs1zD5TG2+EZt+r88LwF6mclA7TPkpwMP7ZN3TO2HiHS8TXvq7QA/17iJsV9dubcLo/f8eEYqMBruyQV21hQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.1.2.tgz", + "integrity": "sha512-TyGmBcbDTZXcb2cj5MV89DrF42DKvb3y5DDUNh95iO+IMeAzMkVSxK1PZRrRIpc9yg8U2GhGdbofNa0LS/a4Bw==", "funding": [ { "type": "github", @@ -2402,9 +2402,9 @@ } }, "node_modules/fast-uri": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.4.tgz", - "integrity": "sha512-8JnbkQ4juDyvYs4mgFGQqg4yCYtFDtUtmp2QIQq11ZZe5CFQ5wcqm1rqDgAh/QdMySuBnPzMUiJUNZG5N/AiQw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.5.tgz", + "integrity": "sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==", "funding": [ { "type": "github", @@ -2979,9 +2979,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.16", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.16.tgz", - "integrity": "sha512-bzlKTyNJ7+LdGIIwy8ijFpIqEQIvafahV7eYykJ8Cvh42EdJeODoJ6gUJXpQJvej1BddH8OqTXZNE/KfbWAu8Q==", + "version": "3.3.18", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", + "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", "dev": true, "funding": [ { @@ -4011,13 +4011,13 @@ }, "packages/core": { "name": "@nexus/core", - "version": "0.6.0" + "version": "0.7.0" }, "packages/sdk": { "name": "@nexus/sdk", - "version": "0.6.0", + "version": "0.7.0", "dependencies": { - "@nexus/core": "0.6.0" + "@nexus/core": "0.7.0" } } } diff --git a/package.json b/package.json index 7bf7e02..1377955 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nexus-quant", "private": true, - "version": "0.6.0", + "version": "0.7.0", "type": "module", "workspaces": ["packages/*", "apps/*"], "scripts": { diff --git a/packages/core/package.json b/packages/core/package.json index 1fc66fb..69e3a61 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@nexus/core", - "version": "0.6.0", + "version": "0.7.0", "private": true, "type": "module", "exports": { ".": "./src/index.ts", "./backtest": "./src/backtest.ts", "./trading": "./src/trading.ts", "./instruments": "./src/instruments.ts", "./settlement": "./src/settlement.ts", "./robustness": "./src/robustness.ts", "./factors": "./src/factors.ts" } diff --git a/packages/sdk/package.json b/packages/sdk/package.json index fca9421..5cbbc38 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,8 +1,8 @@ { "name": "@nexus/sdk", - "version": "0.6.0", + "version": "0.7.0", "private": true, "type": "module", - "dependencies": { "@nexus/core": "0.6.0" }, + "dependencies": { "@nexus/core": "0.7.0" }, "exports": { ".": "./src/index.ts" } } diff --git a/public/icon-128.png b/public/icon-128.png new file mode 100644 index 0000000..a3d194a Binary files /dev/null and b/public/icon-128.png differ diff --git a/public/icon-512.png b/public/icon-512.png new file mode 100644 index 0000000..271b7ee Binary files /dev/null and b/public/icon-512.png differ diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest new file mode 100644 index 0000000..6a4b8d2 --- /dev/null +++ b/public/manifest.webmanifest @@ -0,0 +1,25 @@ +{ + "name": "NEXUS Quant · 量化金融实验室", + "short_name": "NEXUS Quant", + "description": "从零学习量化金融、观察全球市场、模拟交易并验证投资策略。", + "lang": "zh-CN", + "start_url": "/#overview", + "scope": "/", + "display": "standalone", + "display_override": ["window-controls-overlay", "standalone", "minimal-ui"], + "orientation": "any", + "background_color": "#0a0b10", + "theme_color": "#0a0b10", + "categories": ["finance", "education", "productivity"], + "icons": [ + { "src": "/icon-128.png", "sizes": "128x128", "type": "image/png", "purpose": "any" }, + { "src": "/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable" }, + { "src": "/favicon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" } + ], + "shortcuts": [ + { "name": "全球行情", "short_name": "行情", "url": "/#markets" }, + { "name": "模拟交易", "short_name": "交易", "url": "/#paper" }, + { "name": "策略回测", "short_name": "回测", "url": "/#strategies" }, + { "name": "学习中心", "short_name": "学习", "url": "/#learn" } + ] +} diff --git a/public/sw.js b/public/sw.js new file mode 100644 index 0000000..92c7552 --- /dev/null +++ b/public/sw.js @@ -0,0 +1,30 @@ +const CACHE = 'nexus-quant-shell-v0.7' +const SHELL = ['/', '/favicon.svg', '/manifest.webmanifest'] + +self.addEventListener('install', (event) => { + event.waitUntil(caches.open(CACHE).then((cache) => cache.addAll(SHELL)).then(() => self.skipWaiting())) +}) + +self.addEventListener('activate', (event) => { + event.waitUntil(caches.keys().then((keys) => Promise.all(keys.filter((key) => key !== CACHE).map((key) => caches.delete(key)))).then(() => self.clients.claim())) +}) + +self.addEventListener('fetch', (event) => { + const request = event.request + const url = new URL(request.url) + if (request.method !== 'GET' || url.origin !== self.location.origin || url.pathname.startsWith('/api/')) return + + if (request.mode === 'navigate') { + event.respondWith(fetch(request).then((response) => { + const copy = response.clone() + caches.open(CACHE).then((cache) => cache.put('/', copy)) + return response + }).catch(() => caches.match('/'))) + return + } + + event.respondWith(caches.match(request).then((cached) => cached || fetch(request).then((response) => { + if (response.ok) caches.open(CACHE).then((cache) => cache.put(request, response.clone())) + return response + }))) +}) diff --git a/scripts/smoke.mjs b/scripts/smoke.mjs index 07c5179..1827ca5 100644 --- a/scripts/smoke.mjs +++ b/scripts/smoke.mjs @@ -1,4 +1,6 @@ import { existsSync } from 'node:fs' +import { mkdir } from 'node:fs/promises' +import { resolve } from 'node:path' import { chromium } from 'playwright-core' import { createServer } from 'vite' @@ -62,8 +64,37 @@ try { await page.locator('.source-modal').waitFor({ state: 'visible' }) await page.locator('.source-modal header button').click() + await mkdir(resolve('artifacts'), { recursive: true }) + await page.goto(`${baseUrl}/#overview`, { waitUntil: 'networkidle' }) + await page.waitForTimeout(700) + await page.screenshot({ path: resolve('artifacts/desktop-overview.png') }) + + await page.setViewportSize({ width: 390, height: 844 }) + for (const [route, heading, rootSelector] of routes) { + await page.goto(`${baseUrl}/#${route}`, { waitUntil: 'networkidle' }) + await page.locator(rootSelector).waitFor({ state: 'visible' }) + assert(await page.locator('.mobile-dock').isVisible(), `Route #${route} has no mobile navigation dock.`) + assert((await page.locator('.page-heading h1').textContent())?.includes(heading), `Mobile route #${route} rendered the wrong heading.`) + const viewportFits = await page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1) + assert(viewportFits, `Mobile route #${route} causes page-level horizontal overflow.`) + } + + await page.goto(`${baseUrl}/#overview`, { waitUntil: 'networkidle' }) + await page.locator('.mobile-dock button').last().click() + await page.locator('.mobile-more-sheet').waitFor({ state: 'visible' }) + await page.locator('.mobile-module-grid button').filter({ hasText: '策略实验室' }).click() + await page.locator('.strategy-page').waitFor({ state: 'visible' }) + assert((await page.locator('.page-heading h1').textContent())?.includes('策略实验室'), 'Mobile all-features sheet did not navigate.') + await page.locator('.mobile-dock button').last().click() + await page.locator('.mobile-source-card').click() + await page.locator('.source-modal').waitFor({ state: 'visible' }) + await page.locator('.source-modal header button').click() + await page.goto(`${baseUrl}/#overview`, { waitUntil: 'networkidle' }) + await page.waitForTimeout(700) + await page.screenshot({ path: resolve('artifacts/mobile-overview.png') }) + assert(runtimeErrors.length === 0, `Browser runtime errors:\n${runtimeErrors.join('\n')}`) - console.log(`NEXUS UI smoke test passed: ${routes.length} routes and 5 critical interactions.`) + console.log(`NEXUS UI smoke test passed: ${routes.length} desktop routes, ${routes.length} mobile routes, 7 critical interactions, and 2 visual artifacts.`) } finally { await browser.close() await server.close() diff --git a/src/App.css b/src/App.css index 0be7e74..e5c8016 100644 --- a/src/App.css +++ b/src/App.css @@ -1,23 +1,23 @@ -.app-shell { min-height: 100vh; } +.app-shell { --app-scale: 1; min-height: 100vh; position: relative; z-index: 1; } .page-loading{height:300px;border:1px solid var(--line-soft);border-radius:14px;background:#14161e;padding:28px;display:grid;align-content:start;gap:15px}.page-loading i{height:15px;width:35%;border-radius:8px;background:linear-gradient(90deg,#1e202a,#2b2e3a,#1e202a);background-size:200% 100%;animation:shimmer 1.2s infinite}.page-loading i:nth-child(2){width:75%;height:80px}.page-loading i:nth-child(3){width:100%;height:110px}@keyframes shimmer{to{background-position:-200% 0}} .module-error{min-height:360px;border:1px solid rgba(255,180,84,.16);border-radius:14px;background:linear-gradient(145deg,rgba(255,180,84,.045),#14161e);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.module-error>div{width:44px;height:44px;border-radius:12px;background:rgba(255,180,84,.1);color:#ffb454;display:grid;place-items:center}.module-error h2{font-size:15px;margin:14px 0 6px}.module-error p{font-size:8px;color:#666c7b;margin:0}.module-error>button{height:34px;margin-top:15px;border:1px solid var(--line);border-radius:8px;background:#efeff7;color:#17181f;padding:0 12px;font-size:8px;font-weight:600;display:flex;align-items:center;gap:6px;cursor:pointer}.module-error details{margin-top:14px;color:#575d6c;font-size:7px}.module-error details code{display:block;max-width:500px;margin-top:6px} -.sidebar { position: fixed; inset: 0 auto 0 0; width: 242px; padding: 0 14px 18px; border-right: 1px solid var(--line-soft); background: rgba(12,13,18,.94); backdrop-filter: blur(24px); display: flex; flex-direction: column; z-index: 30; } +.sidebar { position: fixed; inset: 0 auto 0 0; width: 242px; padding: 0 14px 18px; border-right: 1px solid rgba(255,255,255,.045); background: linear-gradient(180deg,rgba(10,11,16,.92),rgba(10,11,16,.86)); backdrop-filter: blur(28px) saturate(1.15); display: flex; flex-direction: column; z-index: 30; } .brand { height: 82px; padding: 0 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; } -.brand-mark { width: 32px; height: 32px; position: relative; display: flex; gap: 3px; align-items: end; padding: 6px; border: 1px solid #383b4a; border-radius: 9px; background: linear-gradient(145deg,#20222e,#111219); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); } -.brand-mark span { width: 4px; background: linear-gradient(#a49fff,#746bfa); border-radius: 3px; box-shadow: 0 0 10px rgba(129,120,255,.5); }.brand-mark span:nth-child(1){height:9px}.brand-mark span:nth-child(2){height:17px}.brand-mark span:nth-child(3){height:13px} -.brand strong { display: block; font-size: 14px; line-height: 1.15; letter-spacing: 2.4px; }.brand small { font: 500 8px/1 'DM Mono'; color: #686d7c; letter-spacing: 2.2px; } +.brand-mark { width: 34px; height: 34px; position: relative; display: flex; gap: 3px; align-items: end; padding: 6px; border: 1px solid rgba(139,122,255,.28); border-radius: 10px; background: linear-gradient(145deg,rgba(139,122,255,.18),rgba(139,122,255,.05)); box-shadow: 0 8px 24px rgba(139,122,255,.16),inset 0 1px 0 rgba(255,255,255,.08); } +.brand-mark span { width: 4px; background: linear-gradient(#c4bbff,#8b7aff); border-radius: 3px; box-shadow: 0 0 12px rgba(139,122,255,.6); }.brand-mark span:nth-child(1){height:10px}.brand-mark span:nth-child(2){height:18px}.brand-mark span:nth-child(3){height:14px} +.brand strong { display: block; font-size: 15px; line-height: 1.15; letter-spacing: 2.6px; font-weight: 700; }.brand small { font: 500 8px/1 'DM Mono'; color: #7a808f; letter-spacing: 2.2px; } .primary-nav { margin-top: 16px; }.nav-label { margin: 0 12px 9px; color: #555b69; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; } .primary-nav button { width: 100%; height: 43px; border: 0; border-radius: 9px; background: transparent; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #777e8f; font-size: 13px; cursor: pointer; transition: .2s; position: relative; } -.primary-nav button:hover { color: #d9dbe3; background: rgba(255,255,255,.035); }.primary-nav button.active { color: #f5f5f8; background: linear-gradient(90deg,rgba(129,120,255,.16),rgba(129,120,255,.06)); box-shadow: inset 0 0 0 1px rgba(129,120,255,.11); } -.primary-nav button.active:before { content:''; position:absolute; left:0; width:2px; height:18px; border-radius:2px; background:var(--purple); box-shadow:0 0 12px var(--purple); }.primary-nav button.active svg{color:#a7a1ff}.primary-nav em{font-style:normal;font:500 9px 'DM Mono';background:#252733;color:#8d92a1;padding:3px 6px;border-radius:8px;margin-left:auto} -.sidebar-spacer { flex: 1; }.ai-card { border: 1px solid rgba(129,120,255,.18); border-radius: 12px; padding: 12px; background: linear-gradient(135deg,rgba(129,120,255,.12),rgba(72,168,255,.035)); display: flex; align-items:center; gap:9px; text-align:left; cursor:pointer; margin: 0 2px 14px; } -.ai-card:hover{border-color:rgba(129,120,255,.35);transform:translateY(-1px)}.ai-orb{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#827aff,#5049bd);box-shadow:0 6px 22px rgba(105,94,255,.25)}.ai-card div:nth-child(2){min-width:0;flex:1}.ai-card strong{display:block;font-size:11px}.ai-card span{display:block;margin-top:3px;font-size:8.5px;color:#767c8d;white-space:nowrap}.ai-card>svg{color:#8c84ff} -.profile-mini { padding: 13px 9px 0; border-top: 1px solid var(--line-soft); display:flex;align-items:center;gap:9px; }.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#35394a,#20222d);border:1px solid #404455;color:#c9c6ff;font-weight:700;font-size:12px}.profile-mini div:nth-child(2){flex:1}.profile-mini strong,.profile-mini span{display:block}.profile-mini strong{font-size:11px}.profile-mini span{font-size:9px;color:#676d7d;margin-top:3px}.profile-mini>svg{color:#565b69} -.main-area{margin-left:242px;min-height:100vh}.topbar{height:72px;position:sticky;top:0;z-index:20;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line-soft);background:rgba(12,13,18,.82);backdrop-filter:blur(22px)} -.search-trigger{width:310px;height:36px;border:1px solid #252833;border-radius:9px;background:#13151c;color:#656b7b;padding:0 10px;display:flex;align-items:center;gap:9px;font-size:11px;cursor:pointer}.search-trigger:hover{border-color:#353849}.search-trigger span{flex:1;text-align:left}.search-trigger kbd{height:20px;padding:0 6px;display:flex;align-items:center;gap:2px;border:1px solid #2c2f3b;border-radius:5px;background:#191b24;color:#686e7e;font:500 9px 'DM Mono'} -.topbar-actions{display:flex;align-items:center;gap:12px}.market-live{font-size:10px;color:#777d8d;display:flex;align-items:center;gap:7px;padding-right:13px;border-right:1px solid var(--line)}.market-live i{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green);animation:pulse 2s infinite}.icon-button{border:0;background:transparent;display:grid;place-items:center;color:#707687;cursor:pointer}.notification{width:34px;height:34px;position:relative}.notification>span{position:absolute;right:5px;top:5px;width:5px;height:5px;background:#ff5d68;border-radius:50%;box-shadow:0 0 0 2px var(--bg)}.avatar.small{width:31px;height:31px}.menu-button,.mobile-close{display:none} -.page-wrap{max-width:1440px;margin:0 auto;padding:34px 36px 70px}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:28px}.page-heading h1{font-size:25px;line-height:1.2;margin:0 0 7px;letter-spacing:-.5px}.page-heading p{margin:0;color:#777d8c;font-size:12px}.date-chip{font:500 9px 'DM Mono';letter-spacing:.6px;color:#656b7a;background:#12141b;border:1px solid var(--line);border-radius:7px;padding:8px 10px}.date-chip span{padding:0 4px;color:#3e424f} -.card{border:1px solid var(--line-soft);border-radius:14px;background:linear-gradient(145deg,rgba(22,24,33,.96),rgba(17,19,26,.96));box-shadow:0 16px 50px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.025)}.card-header{display:flex;align-items:start;justify-content:space-between}.card-header span,.eyebrow{display:block;color:#686e7d;font:600 8px/1 'DM Mono';letter-spacing:1.3px;margin-bottom:8px}.card-header h2{font-size:15px;margin:0;letter-spacing:-.2px}.card-header button{border:0;background:transparent;color:#777e8e;font-size:10px;display:flex;align-items:center;gap:4px;cursor:pointer}.card-header button:hover{color:#aaa4ff}.up{color:var(--red)!important}.down{color:var(--green)!important} +.primary-nav button:hover { color: #e8eaf0; background: rgba(255,255,255,.045); transform: translateX(2px); }.primary-nav button.active { color: #fff; background: linear-gradient(90deg,rgba(139,122,255,.22),rgba(139,122,255,.08)); box-shadow: inset 0 0 0 1px rgba(139,122,255,.18),0 8px 24px rgba(139,122,255,.08); } +.primary-nav button.active:before { content:''; position:absolute; left:0; width:3px; height:20px; border-radius:3px; background:linear-gradient(180deg,var(--purple-2),var(--purple)); box-shadow:0 0 16px rgba(139,122,255,.55); }.primary-nav button.active svg{color:#b3a7ff}.primary-nav em{font-style:normal;font:500 9px 'DM Mono';background:rgba(255,255,255,.06);color:#9ba1b0;padding:3px 7px;border-radius:8px;margin-left:auto} +.sidebar-spacer { flex: 1; }.ai-card { border: 1px solid rgba(139,122,255,.2); border-radius: 14px; padding: 13px; background: linear-gradient(135deg,rgba(139,122,255,.14),rgba(139,122,255,.03)); display: flex; align-items:center; gap:10px; text-align:left; cursor:pointer; margin: 0 2px 14px; box-shadow: 0 10px 30px rgba(139,122,255,.08); } +.ai-card:hover{border-color:rgba(139,122,255,.4);transform:translateY(-2px);box-shadow:0 14px 40px rgba(139,122,255,.14)}.ai-orb{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#9d8fff,#6b5ce0);box-shadow:0 8px 24px rgba(139,122,255,.3)}.ai-card div:nth-child(2){min-width:0;flex:1}.ai-card strong{display:block;font-size:11px;color:#f2f3f7}.ai-card span{display:block;margin-top:3px;font-size:8.5px;color:#9ba1b0;white-space:nowrap}.ai-card>svg{color:#b3a7ff} +.profile-mini { padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.045); display:flex;align-items:center;gap:10px; }.avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,rgba(139,122,255,.28),rgba(139,122,255,.08));border:1px solid rgba(139,122,255,.25);color:#d8d3ff;font-weight:700;font-size:12px;box-shadow:0 8px 20px rgba(139,122,255,.12)}.profile-mini div:nth-child(2){flex:1}.profile-mini strong,.profile-mini span{display:block}.profile-mini strong{font-size:11px;color:#e8eaf0}.profile-mini span{font-size:9px;color:#8a90a0;margin-top:3px}.profile-mini>svg{color:#8a90a0} +.main-area{margin-left:242px;min-height:100vh}.topbar{height:72px;position:sticky;top:0;z-index:20;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.045);background:rgba(10,11,16,.78);backdrop-filter:blur(28px) saturate(1.15)} +.search-trigger{width:320px;height:38px;border:1px solid rgba(255,255,255,.055);border-radius:11px;background:rgba(255,255,255,.025);color:#8a90a0;padding:0 12px;display:flex;align-items:center;gap:9px;font-size:11px;cursor:pointer;transition:.2s}.search-trigger:hover{border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.035)}.search-trigger span{flex:1;text-align:left}.search-trigger kbd{height:20px;padding:0 6px;display:flex;align-items:center;gap:2px;border:1px solid rgba(255,255,255,.07);border-radius:6px;background:rgba(255,255,255,.04);color:#8a90a0;font:500 9px 'DM Mono'} +.topbar-actions{display:flex;align-items:center;gap:14px}.market-live{font-size:10px;color:#8a90a0;display:flex;align-items:center;gap:7px;padding-right:14px;border-right:1px solid var(--line-soft)}.market-live i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green);animation:pulse 2s infinite}.icon-button{border:0;background:transparent;display:grid;place-items:center;color:#8a90a0;cursor:pointer;transition:.15s}.icon-button:hover{color:#b3a7ff}.notification{width:36px;height:36px;position:relative}.notification>span{position:absolute;right:5px;top:5px;width:6px;height:6px;background:#ff6b77;border-radius:50%;box-shadow:0 0 0 2px var(--bg),0 0 8px rgba(255,107,119,.5)}.avatar.small{width:32px;height:32px}.menu-button,.mobile-close{display:none} +.page-wrap{max-width:1440px;margin:0 auto;padding:38px 40px 80px}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:32px}.page-heading h1{font-size:30px;line-height:1.15;margin:0 0 9px;letter-spacing:-.8px;font-weight:650}.page-heading p{margin:0;color:#8a90a0;font-size:13px}.date-chip{font:500 9px 'DM Mono';letter-spacing:.6px;color:#8a90a0;background:rgba(255,255,255,.035);border:1px solid var(--line-soft);border-radius:9px;padding:9px 12px}.date-chip span{padding:0 5px;color:#565b69} +.card{border:1px solid var(--line-soft);border-radius:18px;background:linear-gradient(145deg,rgba(19,21,29,.82),rgba(14,16,22,.82));backdrop-filter:blur(14px);box-shadow:0 20px 60px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.035),0 0 0 1px rgba(255,255,255,.02)}.card-header{display:flex;align-items:start;justify-content:space-between}.card-header span,.eyebrow{display:block;color:#7a808f;font:600 8px/1 'DM Mono';letter-spacing:1.3px;margin-bottom:8px}.card-header h2{font-size:15px;margin:0;letter-spacing:-.2px}.card-header button{border:0;background:transparent;color:#8a90a0;font-size:10px;display:flex;align-items:center;gap:4px;cursor:pointer}.card-header button:hover{color:#b3a7ff}.up{color:var(--red)!important}.down{color:var(--green)!important} @keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}@keyframes spin{to{transform:rotate(360deg)}} /* overview */ @@ -87,3 +87,45 @@ @media(max-width:1100px){.futures-categories{grid-template-columns:repeat(3,1fr)}.futures-main{grid-template-columns:1fr}.futures-bottom{grid-template-columns:1.2fr .8fr}.futures-lesson{grid-column:1/3}} @media(max-width:700px){.futures-categories{grid-template-columns:1fr 1fr}.contract-board{overflow:auto}.contract-head,.contract-list{min-width:520px}.contract-specs{grid-template-columns:repeat(3,1fr);gap:12px}.contract-specs>div:nth-child(4){border-left:0;padding-left:0}.contract-specs>div:nth-child(n+4){border-top:1px solid var(--line-soft);padding-top:10px}.calc-form{grid-template-columns:1fr 1fr}.calculation-results{grid-template-columns:1fr 1fr}.calculation-results>div:nth-child(3){border-left:0;border-top:1px solid var(--line-soft)}.calculation-results>div:nth-child(4){border-top:1px solid var(--line-soft)}.futures-bottom{grid-template-columns:1fr}.futures-lesson{grid-column:auto}} @media(max-width:420px){.futures-categories{grid-template-columns:1fr}.calc-form{grid-template-columns:1fr}.contract-title{flex-wrap:wrap}.future-price{width:100%;display:flex;justify-content:space-between}.contract-specs{grid-template-columns:1fr 1fr}.contract-specs>div:nth-child(3){border-left:0}.contract-specs>div:nth-child(4){border-left:1px solid var(--line-soft);padding-left:11px}.contract-specs>div:nth-child(n+3){border-top:1px solid var(--line-soft);padding-top:10px}} +.font-size-control{position:relative}.font-size-menu{position:absolute;top:calc(100% + 10px);right:0;width:132px;border:1px solid var(--line);border-radius:11px;background:#171922;box-shadow:0 18px 55px rgba(0,0,0,.38);padding:6px;z-index:40;display:grid;gap:2px}.font-size-menu button{width:100%;height:36px;border:0;border-radius:7px;background:transparent;color:#a4a8b3;display:flex;align-items:center;justify-content:space-between;padding:0 11px;cursor:pointer;font-size:12px;transition:.15s}.font-size-menu button:hover{background:rgba(255,255,255,.05);color:#f2f3f7}.font-size-menu button.active{background:rgba(129,120,255,.14);color:#c9c6ff}.font-size-menu button small{font:500 9px 'DM Mono';color:inherit;opacity:.75} +.card{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}.card:hover{transform:translateY(-3px);box-shadow:0 28px 70px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.04),0 0 0 1px rgba(255,255,255,.035);border-color:rgba(255,255,255,.1)} + +/* Native-feeling adaptive shell */ +.mobile-context,.mobile-dock,.mobile-sheet-backdrop{display:none} +@media(min-width:851px){.app-shell{zoom:var(--app-scale)}} + +@media(max-width:850px){ + .app-shell{min-height:100dvh} + .main-area{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))} + .page-wrap{padding-bottom:42px} + .mobile-dock{position:fixed;z-index:70;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));height:66px;padding:5px 7px;display:grid;grid-template-columns:repeat(5,1fr);gap:3px;border:1px solid rgba(255,255,255,.095);border-radius:20px;background:rgba(18,20,28,.88);box-shadow:0 20px 55px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:blur(28px) saturate(1.35)} + .mobile-dock button{min-width:0;border:0;border-radius:14px;background:transparent;color:#727989;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;font-weight:600;cursor:pointer;transition:color .18s,background .18s,transform .14s} + .mobile-dock button svg{transition:transform .18s}.mobile-dock button.active{color:#c5beff;background:linear-gradient(145deg,rgba(139,122,255,.2),rgba(139,122,255,.07));box-shadow:inset 0 0 0 1px rgba(139,122,255,.14)}.mobile-dock button.active svg{transform:translateY(-1px)} + .mobile-sheet-backdrop{position:fixed;z-index:100;inset:0;display:flex;align-items:flex-end;background:rgba(2,3,6,.68);backdrop-filter:blur(8px)} + .mobile-more-sheet{width:100%;max-height:min(720px,88dvh);overflow:auto;border:1px solid rgba(255,255,255,.1);border-bottom:0;border-radius:26px 26px 0 0;background:linear-gradient(165deg,#191b25,#101219 70%);box-shadow:0 -25px 80px rgba(0,0,0,.55);padding:7px 18px calc(24px + env(safe-area-inset-bottom,0px))} + .sheet-handle{width:36px;height:4px;margin:0 auto 10px;border-radius:9px;background:rgba(255,255,255,.16)} + .mobile-more-sheet>header{display:flex;align-items:center;padding:7px 2px 15px}.mobile-more-sheet>header>div{flex:1}.mobile-more-sheet>header span{font:600 8px 'DM Mono';letter-spacing:1.5px;color:#756dc9}.mobile-more-sheet>header h2{font-size:22px;margin:5px 0 0;letter-spacing:-.4px}.mobile-more-sheet>header button{width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.035);color:#8c92a1;display:grid;place-items:center} + .mobile-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mobile-module-grid>button{min-height:86px;padding:13px;border:1px solid rgba(255,255,255,.065);border-radius:16px;background:rgba(255,255,255,.025);display:grid;grid-template-columns:40px 1fr;grid-template-rows:1fr 1fr;text-align:left;column-gap:10px;color:#8b92a2}.mobile-module-grid>button>i{grid-row:1/3;width:40px;height:40px;border-radius:13px;background:rgba(139,122,255,.1);color:#a69cff;display:grid;place-items:center;font-style:normal;align-self:center}.mobile-module-grid>button>span{align-self:end;color:#e7e9ef;font-size:12px;font-weight:650}.mobile-module-grid>button>small{align-self:start;margin-top:3px;color:#666d7c;font-size:9px}.mobile-module-grid>button.active{border-color:rgba(139,122,255,.28);background:linear-gradient(145deg,rgba(139,122,255,.13),rgba(139,122,255,.035))}.mobile-module-grid>button.active>i{background:linear-gradient(145deg,#8b7aff,#685bd5);color:white;box-shadow:0 8px 22px rgba(139,122,255,.25)} + .mobile-source-card{width:100%;min-height:58px;margin-top:12px;padding:0 14px;border:1px solid rgba(52,216,163,.14);border-radius:16px;background:rgba(52,216,163,.045);display:flex;align-items:center;text-align:left;color:#7a8290}.mobile-source-card>span{position:relative;flex:1;padding-left:17px}.mobile-source-card>span>i{position:absolute;left:0;top:3px;width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}.mobile-source-card strong,.mobile-source-card small{display:block}.mobile-source-card strong{font-size:11px;color:#c9d7d1}.mobile-source-card small{font-size:8px;margin-top:4px}.mobile-source-card>svg{transform:rotate(-90deg)} +} + +@media(max-width:620px){ + .topbar{height:calc(64px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 14px 0;background:rgba(10,11,16,.86)} + .menu-button{display:none}.mobile-context{min-width:0;display:flex;flex:1;flex-direction:column}.mobile-context span{font:650 8px 'DM Mono';letter-spacing:1.4px;color:#7d75d3}.mobile-context strong{font-size:13px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} + .search-trigger{order:2;flex:0 0 44px;width:44px;height:44px;padding:0;justify-content:center;border-radius:14px}.search-trigger>span,.search-trigger kbd{display:none} + .topbar-actions{order:3;gap:8px}.topbar-actions .font-size-control,.topbar-actions .avatar{display:none} + .page-wrap{padding:22px 14px 30px}.page-heading{margin:0 2px 23px}.page-heading h1{font-size:27px;letter-spacing:-.7px;margin-bottom:8px}.page-heading p{font-size:12px;line-height:1.55;max-width:320px} + .card{border-radius:17px;box-shadow:0 14px 42px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.035)}.card:hover{transform:none}.card:active{border-color:rgba(255,255,255,.1)} + button{touch-action:manipulation}.card button,.market-toolbar button,.pill-tabs button{min-height:40px} + .overview-grid{gap:11px}.portfolio-card{padding-top:20px}.portfolio-top{align-items:flex-start}.hero-value{font-size:28px}.hero-chart{height:172px;margin-top:9px}.learning-streak,.watchlist,.course-card,.sector-card,.strategy-preview{padding-left:17px;padding-right:17px} + .market-toolbar{gap:9px}.pill-tabs{scrollbar-width:none}.pill-tabs::-webkit-scrollbar{display:none}.pill-tabs button{min-width:max-content;padding:0 15px}.inline-search{height:44px;border-radius:12px}.inline-search input{font-size:16px}.outline-button{height:44px;border-radius:12px} + .quote-table-head{height:42px}.quote-table-body>button{height:68px}.market-detail-card{padding:18px}.price-chart{height:210px}.timeframes{overflow:auto}.timeframes button{min-width:48px} + .strategy-tabs button,.scenario-list button,.module-summary,.lesson-list button{min-height:56px}.run-backtest,.submit-order,.research-run{min-height:48px;border-radius:12px}.param-field select,.param-field input,.trade-field input,.trade-field select,.calc-form input,.calc-form select{min-height:44px;font-size:16px} + .lesson-reader{height:100dvh;border-left:0}.lesson-reader>header{padding-top:calc(19px + env(safe-area-inset-top,0px));height:calc(86px + env(safe-area-inset-top,0px))}.lesson-body{padding:24px 20px}.lesson-reader>footer{padding-bottom:calc(13px + env(safe-area-inset-bottom,0px))} + .command-backdrop{align-items:flex-end;padding:0}.command-palette{width:100%;max-height:82dvh;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}.command-input{height:62px}.command-input input{font-size:16px}.command-palette>button{min-height:56px} + .modal-backdrop{place-items:end center;padding:0}.source-modal,.strategy-assistant-modal{width:100%;max-height:88dvh;overflow:auto;border-radius:24px 24px 0 0;border-bottom:0}.source-options>button{min-height:66px}.source-modal>footer,.strategy-assistant-modal>footer{padding-bottom:env(safe-area-inset-bottom,0px);height:calc(66px + env(safe-area-inset-bottom,0px))} +} + +@media(max-width:380px){.mobile-dock{left:8px;right:8px}.mobile-dock button{font-size:8px}.mobile-module-grid{gap:7px}.mobile-module-grid>button{padding:10px}.page-wrap{padding-left:11px;padding-right:11px}} + +@media(hover:none){.card:hover,.instrument-card:hover,.primary-nav button:hover{transform:none}} diff --git a/src/components/Shell.tsx b/src/components/Shell.tsx index de6b008..52294eb 100644 --- a/src/components/Shell.tsx +++ b/src/components/Shell.tsx @@ -1,6 +1,6 @@ -import { useEffect, useMemo, useState, type ReactNode } from 'react' +import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react' import { AnimatePresence, motion } from 'framer-motion' -import { BarChart3, Bell, BookOpen, Bot, CandlestickChart, Check, ChevronDown, Command, Database, FlaskConical, LayoutDashboard, LockKeyhole, Menu, Microscope, Radio, Search, Server, ShieldCheck, WalletCards, Wifi, X, Zap } from 'lucide-react' +import { BarChart3, Bell, BookOpen, Bot, CandlestickChart, Check, ChevronDown, Command, Database, FlaskConical, LayoutDashboard, LockKeyhole, Menu, Microscope, MoreHorizontal, Radio, Search, Server, ShieldCheck, Type, WalletCards, Wifi, X, Zap } from 'lucide-react' import { useAppStore } from '../store' import type { PageId } from '../types' import { courseModules, marketSymbols, strategies } from '../data' @@ -16,6 +16,8 @@ const nav: { id: PageId; label: string; icon: typeof LayoutDashboard; badge?: st { id: 'risk', label: '风险中心', icon: ShieldCheck }, ] +const mobilePrimaryPages: PageId[] = ['overview', 'markets', 'paper', 'learn'] + const pageTitles: Record = { overview: ['晚上好,探索者', '把每一次市场波动,变成认知的复利。'], learn: ['学习中心', '从第一条 K 线,到独立构建量化策略。'], @@ -31,10 +33,15 @@ export function Shell({ children }: { children: ReactNode }) { const page = useAppStore((s) => s.page) const setPage = useAppStore((s) => s.setPage) const positions = useAppStore((s) => s.positions) + const fontScale = useAppStore((s) => s.fontScale) + const setFontScale = useAppStore((s) => s.setFontScale) const [mobileOpen, setMobileOpen] = useState(false) const [palette, setPalette] = useState(false) const [query, setQuery] = useState('') const [dataSources, setDataSources] = useState(false) + const [mobileMoreOpen, setMobileMoreOpen] = useState(false) + const [fontMenuOpen, setFontMenuOpen] = useState(false) + const fontMenuRef = useRef(null) const [sourceType, setSourceType] = useState(() => localStorage.getItem('nexus-data-source') ?? 'simulation') const searchResults = useMemo(() => { const keyword = query.trim().toLowerCase() @@ -54,7 +61,7 @@ export function Shell({ children }: { children: ReactNode }) { if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'k') { event.preventDefault(); setPalette((value) => !value) } - if (event.key === 'Escape') { setPalette(false); setDataSources(false) } + if (event.key === 'Escape') { setPalette(false); setDataSources(false); setFontMenuOpen(false); setMobileMoreOpen(false) } } window.addEventListener('keydown', handler) return () => window.removeEventListener('keydown', handler) @@ -66,6 +73,15 @@ export function Shell({ children }: { children: ReactNode }) { return () => window.removeEventListener('open-data-sources', openSources) }, []) + useEffect(() => { + if (!fontMenuOpen) return + const handler = (event: MouseEvent) => { + if (!fontMenuRef.current?.contains(event.target as Node)) setFontMenuOpen(false) + } + document.addEventListener('mousedown', handler) + return () => document.removeEventListener('mousedown', handler) + }, [fontMenuOpen]) + useEffect(() => { const syncFromHash = () => { const target = window.location.hash.slice(1) as PageId @@ -76,10 +92,14 @@ export function Shell({ children }: { children: ReactNode }) { return () => window.removeEventListener('hashchange', syncFromHash) }, [setPage]) - const choosePage = (id: PageId) => { setPage(id); window.history.replaceState(null, '', `#${id}`); setMobileOpen(false); setPalette(false); setQuery(''); window.scrollTo({ top: 0, behavior: 'smooth' }) } + useEffect(() => { + if (fontScale < .9 || fontScale > 1.1) setFontScale(1) + }, [fontScale, setFontScale]) + + const choosePage = (id: PageId) => { setPage(id); window.history.replaceState(null, '', `#${id}`); setMobileOpen(false); setMobileMoreOpen(false); setPalette(false); setQuery(''); window.scrollTo({ top: 0, behavior: 'smooth' }) } return ( -
+