CLAUDE.md@by-framework/tauriA
CLAUDE.md@by-framework/tauri from overseastelegramaliterateperson865/awesome-claude-md is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-framework/tauri/CLAUDE.md@git:20260320.fcf2609Pins git:20260320.fcf2609 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- CLAUDE.md file
- Repository
- overseastelegramaliterateperson865/awesome-claude-md
- Path
by-framework/tauri/CLAUDE.md- Versions recorded
- 1
- Latest version
- git:20260320.fcf2609, committed Mar 20, 2026
- Size
- 2,668 bytes
- Repository stars
- 3
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file 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@sha256:4bc8765b4acd87a2The line at the top of this page pins the label git:20260320.fcf2609, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_t3ixicnparnmkt6h)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Mar 20, 2026.
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-10-14 · 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 AI assistant 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.
Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.
More from overseastelegramaliterateperson865/awesome-claude-md
Every file in overseastelegramaliterateperson865/awesome-claude-md