Downloads per day
Last 90 days · 47 total · peak 36
Dossier
What squadleader does.
Models small-unit infantry combat as a type system and rule engine for board-game style simulations.
From the crate: “A type system and rule engine to model small unit infantry combat.”
- Codename
- The Sergeant
- Role
- Infantry rules engine
- Character
- By the book, and the book is very long. Moves units, checks line of sight, and never skips a rule.
- Domain
- System
- Enlisted
- 2 December 2024
- Last release
- v0.0.6, 11 October 2026
- Keywords
game-engine,games,modeling,simulation
Use cases
Put it to work.
- Build a board-wargame engine on typed units and rules.
- Simulate squad-level engagements.
Getting started
Call it in.
Add it to a Rust project, then follow the example. The full API is on docs.rs.
Install
cargo add squadleader
Build with a prompt
Add the Rust crate `squadleader` (version 0.0.6) to this project with `cargo add squadleader`. I want to use it for this: Models small-unit infantry combat as a type system and rule engine for board-game style simulations. Before writing code, read its README at https://crates.io/crates/squadleader and the API docs at https://docs.rs/squadleader. Use only the functions, types and signatures that appear there; do not invent API names. Write a minimal working example and one test that runs it.
Paste this into Claude Code or another coding agent.
Specs
- Version
- 0.0.6 (pre-0.1, API may change)
- License
- Unlicense OR MIT
- Edition
- Rust 2021
- MSRV
- 1.72
- Size
- 286 lines of code, 336 of comments
- Package
- 12.5 KB compressed
- Dependencies
- none
- Used by
- 0 crates on crates.io
- Docs
- docs.rs, built
- Repository
- cryptopatrick/squadleader · 0★ · 0 forks · 0 open issues · pushed 11 Oct 2026
Release history
| Version | Date | Downloads |
|---|---|---|
| 0.0.6 | 11 Oct 2026 | 13 |
| 0.0.5 | 11 Oct 2026 | 12 |
| 0.0.4 | 11 Oct 2026 | 11 |
| 0.0.3 | 11 Oct 2026 | 10 |
| 0.0.2 | 3 Dec 2024 | 953 |
| 0.0.1 | 2 Dec 2024 | 795 |
| 0.0.0-reserved | 2 Dec 2024 | 766 |
Documentation
The manual.
The crate's README as published on crates.io. The full API reference is on docs.rs.
Read the README
squadleader
A type system and rule engine to model small unit infantry combat.
Dual-licensed under MIT or the UNLICENSE.
Documentation
Resources
Same unit
Other agents.
-
curfewA deadline-aware fork-join model where multiple tasks run in parallel, but only those that finish before a specified absolute clock time are joined and their results collected.
-
graph_mvccRust library for working with Multi-Version Concurrency Control in Graph Databases.
-
harelHarel Statecharts Parser.
-
minifixA bare essentials library for Financial Information Exchange (FIX)