Validation now checks what 2.1 adds: registry ids carry their prefix and
are unique across all registries (E2101); a target's terms, equations,
values, and misconceptions name declared entries (E2102); equation
symbols resolve (E2103); values give a value or an ordered range and a
declared term (E2104); citation keys in the new registries resolve
(E2105); brace references in student-facing prose resolve (E2106);
`conflicts` and `target_text_forbid` patterns compile (E2107); and a bank
option's misconception_id is declared (E2108).
An unresolved {lo-...} or {t-...} in a field 2.0 already had (objective
and target text, reading notes) is left to the linter, because 2.0
accepted it and rendered it literally; the new reference kinds and the
new fields are checked everywhere.
Adds the `regex` crate, with default features off, for the course's own
patterns. Each error has a test built from the prototype's self-test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
1.1 KiB
TOML
45 lines
1.1 KiB
TOML
[package]
|
|
name = "coursebank"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
rust-version = "1.85"
|
|
description = "Author, assemble, administer, and analyze leveled course assessments from YAML item banks"
|
|
authors = ["Scienting <opensource@scient.ing>"]
|
|
license = "Prosperity-3.0.0"
|
|
readme = "README.md"
|
|
publish = false
|
|
|
|
[[bin]]
|
|
name = "coursebank"
|
|
path = "src/main.rs"
|
|
|
|
[lib]
|
|
name = "coursebank"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive"] }
|
|
csv = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml_ng = "0.10"
|
|
thiserror = "2"
|
|
|
|
arrow-array = { version = "55"}
|
|
arrow-schema = { version = "55"}
|
|
parquet = { version = "55"}
|
|
aes-gcm = { version = "0.10"}
|
|
pbkdf2 = { version = "0.12", default-features = false, features = ["hmac"]}
|
|
sha2 = { version = "0.10"}
|
|
base64 = { version = "0.22"}
|
|
getrandom = { version = "0.2"}
|
|
regex = { version = "1.11", default-features = false, features = ["std", "unicode-perl", "unicode-case"] }
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "thin"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|