Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.71 KB

File metadata and controls

40 lines (27 loc) · 1.71 KB

Tauri Rust Backend

Code style

  • Use the Rust 2018 edition.
  • Follow the Rust coding style guidelines as outlined in the Rust documentation.
  • Use snake_case for variable and function names.
  • Use CamelCase for type names.
  • Use ALL_CAPS for constants.

Dependencies

  • Use the latest stable version of Rust.
  • Use the Cargo package manager to manage dependencies.
  • Only include dependencies that are necessary for the backend. Avoid adding unnecessary dependencies to keep the backend lightweight.

Testing

  • Write unit tests for all backend code using the Rust testing framework.
  • Write integration tests for any backend functionality that interacts with external services or systems.

React TypeScript Frontend

Code style

  • Follow the TypeScript guidelines for writing TypeScript code.
  • Use camelCase for variable and function names.
  • Use PascalCase for type names.
  • Use ALL_CAPS for constants.

Dependencies

  • Use the latest stable version of React.
  • Use the npm package manager to manage dependencies.
  • Only include dependencies that are necessary for the frontend. Avoid adding unnecessary dependencies to keep the frontend lightweight.

Testing

  • Write unit tests for all frontend code using a testing library such as Jest or React Testing Library.
  • Write integration tests for any frontend functionality that interacts with the backend or external services or systems.