Building
This document will help you building and running the PicoForge app from its source code.
Refer to the Installation section if you would rather install the application from pre-built binaries.
Before building, ensure you have the following requirements installed:
- Rust - System programming language (1.90+)
- PC/SC Middleware:
- Linux:
pcscd(usually pre-installed) - macOS: Built-in
- Windows: Built-in
- Linux:
cargo run
cargo build --release
The compiled binary will be available in target/release/picoforge (Linux/macOS) or target/release/picoforge.exe (Windows).
Nix provides developers with a complete and consistent development environment.
You can use Nix to build and develop picoforge painlessly.
Follow the Installation Guide and NixOS Wiki to install Nix and enable Flakes.
You can build and run PicoForge with a single command:
nix run github:librekeys/picoforge
Or simply build it and link to the current directory:
nix build github:librekeys/picoforge
TipYou can use our binary cache to save build time by allowing Nix to set extra-substitutes.
Download the package definition:
curl -LO https://raw.githubusercontent.com/librekeys/picoforge/main/package.nix
Run the following command in the directory containing package.nix:
nix-build -E 'with import <nixpkgs> {}; callPackage ./package.nix { }'
The compiled binary will be available at: result/bin/picoforge
You can enter a developement environement with all the required dependencies.
nix develop github:librekeys/picoforge
You can use the shell.nix file that is at the root of the repository by running:
nix-shell
Then you can build from source and run the application with:
cargo run