CLAUDE.md@by-framework/tauri claudeA
CLAUDE.md@by-framework/tauri is agent-read markdown (claude) from overseastelegramaliterateperson865/awesome-claude-md.
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Tauri 桌面应用项目
## 技术栈
- Tauri 2 框架:Rust 后端 + Web 前端
- 前端:任意框架(React/Vue/Svelte/纯 HTML)
- Rust:处理系统级操作、文件 IO、原生功能
- 构建工具:Cargo(Rust)+ 前端构建工具(Vite 等)
## 项目结构
```
src-tauri/
src/
main.rs # 应用入口,配置窗口和插件
lib.rs # Tauri command 定义
Cargo.toml # Rust 依赖
tauri.conf.json # Tauri 配置(窗口大小、权限、打包等)
capabilities/ # 权限声明文件
src/ # 前端代码目录
```
## Tauri Commands(Rust <-> JS 通信)
- Rust 端用 `#[tauri::command]` 宏定义,`main.rs` 中 `invoke_handler![cmd1, cmd2]` 注册
- 前端:`import { invoke } from '@tauri-apps/api/core'`,`await invoke('cmd_name', { arg })`
- 参数自动序列化/反序列化(Rust 使用 serde),命令名统一 snake_case
## 事件系统
- 前端到后端:`emit('event-name', payload)`
- 后端到前端:`app_handle.emit("event-name", payload)`
- 前端监听:`listen('event-name', (event) => { ... })`
- 适用于后端主动推送数据(如进度更新、文件监听回调)
## Rust 开发规范
- 使用 `Result<T, E>` 处理错误,command 返回 `Result<T, String>` 或自定义错误类型
- 文件操作用 `std::fs`,异步操作用 `tokio`
- 状态管理用 `tauri::Manager` 的 `manage()` 注入,command 中通过 `State<>` 获取
- 敏感操作(文件系统、Shell 等)需在 `capabilities/` 中声明权限
## 前端开发规范
- 使用 `@tauri-apps/api` 访问系统 API,`window.__TAURI_INTERNALS__` 判断运行环境
- 窗口操作:`@tauri-apps/api/window`,文件对话框:`@tauri-apps/plugin-dialog`
## 常用命令
```bash
…Read the whole file at its exact version.
How to install
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-framework/tauri/CLAUDE.md@git:20260320.fcf2609mdr add overseastelegramaliterateperson865/awesome-claude-md/by-framework/tauri/CLAUDE.md@sha256:4bc8765b4acd87a2Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_t3ixicnparnmkt6h)
1 badge views in 30 days
Versions
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2668 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
overseastelegramaliterateperson865/awesome-claude-md · 3 stars · license MIT · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_t3ixicnparnmkt6h GET https://markdownregistry.com/api/v1/resolve?ref=overseastelegramaliterateperson865/awesome-claude-md/by-framework/tauri/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/4bc8765b4acd87a206a1a7650343baba94ef6a93cd7f9aa80468e0ba3275215d
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from overseastelegramaliterateperson865/awesome-claude-md
Every file in overseastelegramaliterateperson865/awesome-claude-md