Install the library
Install the argumentation core and the encounter-argumentation bridge into a new or existing Rust project, and verify the build.
Learning objective: install the crates into any Rust project and run cargo check successfully in under 2 minutes.
Prerequisites
- Rust 1.80+ (
rustc --versionshould show ≥ 1.80). - A Cargo project (or run
cargo new --bin my-projectfirst).
Step 1: Add dependencies
Add to your Cargo.toml:
[dependencies]
argumentation = "0.2"
For weighted bipolar frameworks (attacks + supports + weights):
argumentation-weighted-bipolar = "0.2"
For the encounter bridge:
encounter-argumentation = "0.5"
encounter = "0.1"
For societas-modulated attack weights (optional):
societas-encounter = { version = "0.1", features = ["argumentation"] }
All crates are dual-licensed MIT / Apache-2.0. The argumentation core has no [features] you need to enable; societas-encounter requires the argumentation feature for SocietasRelationshipSource.
Step 2: Verify
cargo check
Expected: Compiling ... Finished dev [unoptimized + debuginfo] target(s) in X.XXs with no errors.
cargo test
Expected: your own tests compile and pass (no tests yet is fine for a fresh project).
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
error: failed to select a version for the requirement 'argumentation ...' | rustc too old | Upgrade to Rust 1.80+ via rustup update stable |
could not find Cargo.toml | Not inside a Cargo project | Run cargo new --bin my-project first |
linker 'cc' not found (Linux) | Missing build tools | apt install build-essential or equivalent |
Related
- Build your first scene — the quickstart tutorial.
- Reference overview — what types/methods you'll meet first.