# ========================================
# Rust
# ========================================
# 构建产物
/target
*.rs.bk
*.pdb

# Cargo.lock (库项目不提交，二进制项目提交)
# 如果这是库项目，取消下面的注释
# Cargo.lock

# ========================================
# Python
# ========================================
# 字节码
__pycache__/
*.py[cod]
*$py.class
*.so

# 虚拟环境
venv/
env/
ENV/
.venv/

# PyO3 / Maturin 构建产物
*.egg-info/
dist/
build/
wheels/
*.whl

# ========================================
# Claude Code
# ========================================
# .claude/memory/ 与 .claude/plans/ 纳入版本控制；以下为工具产物/敏感抓包数据，排除
.claude/captures/
.claude/scheduled_tasks.lock
.codegraph/
.cursor/

# ========================================
# IDE / 编辑器
# ========================================
# JetBrains IDEs (RustRover, PyCharm, IntelliJ)
.idea/
*.iml
*.iws
*.ipr
.idea_modules/

# VS Code
.vscode/
*.code-workspace

# Vim
*.swp
*.swo
*~

# Emacs
*~
\#*\#
.\#*

# ========================================
# 操作系统
# ========================================
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
._*

# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# Linux
*~

# ========================================
# 日志和临时文件
# ========================================
*.log
*.tmp
*.temp
*.bak

# ========================================
# 敏感信息
# ========================================
# 环境变量
.env
.env.local
.env.*.local

# 密钥和凭证
*.pem
*.key
secrets/
credentials/

# Twitter cookies (防止意外提交)
*cookies*.txt
*cookies*.json
.cookies

# 测试 fixture 凭据文件（真实数据，不提交）
tests/fixtures/accounts.txt
tests/fixtures/dm_users.txt
tests/fixtures/user_ids.txt
tests/fixtures/文案.txt
tests/cs-*.txt
tests/cs-*.csv

# Python 测试凭据
python_tests/.cookies
python_tests/.env

# ========================================
# 测试和覆盖率
# ========================================
# Rust 测试
*.profraw
*.profdata

# Python 测试覆盖率
.coverage
.coverage.*
htmlcov/
.pytest_cache/
.tox/

# ========================================
# 文档构建
# ========================================
/doc
/docs/_build
site/

# ========================================
# 其他
# ========================================
# Backup files
*.orig
.cache/*

# XChat E2E 抓包产物（含敏感密码学材料，不入库）
tests/fixtures/xchat_e2e_evidence/
xchat_capture_*.json