This guide covers installing Ferrous Forge on your system.
# Install the latest version from crates.io
cargo install ferrous-forge
# Verify installation
ferrous-forge --versionFerrous Forge requires Rust 1.88 or newer (Edition 2024):
# Install or update Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update stable
# Verify version
rustc --version # Must be 1.88+Git is required for project initialization:
# Verify git is installed
git --versionAfter installation, initialize Ferrous Forge:
# Initialize system-wide
ferrous-forge init
# Or initialize a specific project
cd my-project
ferrous-forge init --project- Creates configuration directory (
~/.config/ferrous-forge/) - Installs shell integration scripts
- Sets up cargo wrapper for validation
- Installs clippy configuration
- Creates
.rustfmt.tomlwith project settings - Creates
.clippy.tomlwith lint rules - Adds lints to
Cargo.toml - Creates
.vscode/settings.json(VS Code integration) - Creates
.github/workflows/ci.ymltemplate - Installs git hooks for pre-commit validation
Check that installation worked:
ferrous-forge statusExpected output shows:
- Ferrous Forge version
- Rust toolchain version
- Configuration status
- Git hooks status
Ferrous Forge works on:
- Linux (most distributions)
- macOS (Intel and Apple Silicon)
- Windows (with WSL2 recommended)
- Bash 4.0+
- Zsh 5.0+
- Fish 3.0+
- PowerShell 7.0+ (Windows)
Ensure ~/.cargo/bin is in your PATH:
# For bash/zsh
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# For fish
set -Ua fish_user_paths $HOME/.cargo/bin# Check ownership
ls -la ~/.cargo/
# Fix permissions (if needed)
sudo chown -R $(whoami) ~/.cargo
# Or force reinitialize
ferrous-forge init --force# Update Rust
rustup update stable
rustup default stable
# Verify
rustc --versionIf you need to start fresh:
# Uninstall
ferrous-forge uninstall --confirm
# Clean up configuration
rm -rf ~/.config/ferrous-forge
# Reinstall
cargo install ferrous-forge
ferrous-forge initIf you encounter issues:
- Check status:
ferrous-forge status - Read FEATURES.md: See what's actually implemented
- Check GitHub Issues: github.com/kryptobaseddev/ferrous-forge/issues
After installation:
- Read FEATURES.md to see what's available
- Read ROADMAP.md to see what's planned
- Try
ferrous-forge validate .in a Rust project - Set up git hooks:
ferrous-forge safety install
Note: Some features mentioned in older documentation may not be implemented yet. Always check FEATURES.md for the current feature status.