When to use this skill
ALWAYS use this skill when the user mentions:
- Tauri v2 prerequisites or environment setup
- Rust toolchain, Node.js, build tools, Xcode, Android SDK/NDK
- Desktop and mobile environment checks
Trigger phrases include:
- "prerequisites", "toolchain", "Xcode", "Android SDK", "NDK"
- "Prerequisites", "Toolchain", "Xcode", "Android Studio", "NDK"
How to use this skill
- Identify the target platforms and OS (macOS, Windows, Linux, Android, iOS)
- Provide OS-specific prerequisite installation steps
- Include mobile development checks for Android Studio/NDK and Xcode
- Verify toolchains with minimal commands and version checks
Outputs
- Prerequisite checklist by platform
- Verification commands and pass criteria
Scope
- Boundary: Operating-system level dependencies only
- v2 focus: Mobile development prerequisites must be covered
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/start/prerequisites/
- https://v2.tauri.app/mobile/development/#prerequisites
Keywords
tauri v2, prerequisites, rust, node.js, build tools, xcode, android studio, ndk, sdk
常见陷阱 (Gotchas)
- Version compatibility: Pay attention to the compatibility between framework versions and dependency libraries; APIs may differ across versions
- Configuration file format: Configuration file format errors are the most common problem; it is recommended to use the editor's syntax checking
- Environment variables: Ensure all necessary environment variables are set correctly, and do not hard-code sensitive information
- Dependency conflicts: When multiple versions coexist, pay attention to dependency conflicts and use a lock file to pin versions
- Performance pitfalls: Pay attention to performance optimization in large-data scenarios and avoid common problems such as N+1 queries
Usage workflow
Step 1: Environment preparation
Ensure the necessary dependencies and tools are installed in the development environment.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Using core functionality
Implement the core functionality according to the example code.
Step 4: Test verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and release
After development is complete, proceed with deployment and monitoring.