adding favorite feature

This commit is contained in:
DioCrafts
2025-04-02 03:43:44 +02:00
parent 705cb5b069
commit 7069a54d8d
21 changed files with 1395 additions and 8 deletions
+30
View File
@@ -0,0 +1,30 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Build Commands
- `cargo build` - Build the project
- `cargo run` - Run OxiCloud locally
- `cargo build --release` - Build with full optimization
- `cargo run --release` - Run optimized build
- `RUST_LOG=debug cargo run` - Run with detailed logging
## Test Commands
- `cargo test` - Run all tests
- `cargo test <test_name>` - Run a specific test (e.g., `cargo test trash_service_test::tests::test_move_file_to_trash`)
- `cargo bench` - Run benchmarks with optimized settings
## Lint Commands
- `cargo clippy` - Run linter with Rust's default Clippy lints
- `cargo fmt` - Format code according to Rust style guidelines
## Code Style Guidelines
- Use async/await for asynchronous operations with tokio runtime
- Follow Rust naming conventions: snake_case for variables/functions, CamelCase for types
- Use thiserror for error handling with comprehensive error types
- Document all public functions with doc comments (/** ... */)
- Use the #[async_trait] attribute for async trait implementations
- Follow clean architecture principles with clear layer separation (domain, application, infrastructure, interfaces)
- Use Result types with specific error enums for error handling
- Keep functions small and focused on a single responsibility
- Prefer immutable variables (let) over mutable ones (let mut) when possible