- **[Rust](https://www.rust-lang.org/)** - System programming language (1.90+)
- **PC/SC Middleware**:
- Linux: `pcscd` (usually pre-installed)
- macOS: Built-in
- Windows: Built-in
> [!IMPORTANT]
> **Deno is required** to build the application as intended. Node.js is also required because some frontend dependencies rely on it. The npm commands provided in this guide assume Deno is installed and are provided as a fallback.
### Alternate Method: Pure npm Build (Not Recommended)
If you must use npm exclusively (without Deno installed), you can modify `src-tauri/tauri.conf.json` to change the build commands:
```json
"build":{
"beforeDevCommand":"npm run dev",
"devUrl":"http://localhost:1420",
"beforeBuildCommand":"npm run build",
"frontendDist":"../build"
},
```
After this change, you can use:
```bash
npm run build
npm run tauri build
```
> [!CAUTION]
> This deviation from the standard build process is **not recommended** for contributors. The project is designed to be built using Deno. The `package-lock.json` and npm commands exist primarily to facilitate packaging for Nix.
## Building and Development with Nix
[Nix](https://nixos.org/) provides developers with a complete and consistent development environment.
You can use Nix to build and develop picoforge painlessly.
### 1. Install Nix
Follow the [Installation Guide](https://nixos.org/download/#download-nix) and [NixOS Wiki](https://wiki.nixos.org/wiki/Flakes#Setup) to install Nix and enable Flakes.
### 2. Build & Run
#### a. with Flakes
You can build and run PicoForge with a single command:
```bash
nix run github:librekeys/picoforge
```
Or simply build it and link to the current directory: