zenquirer
Zenquirer is a serialization-first, async-first Rust library for interactive command-line questionnaires and prompts.
Most users should depend on this crate. It re-exports the platform-agnostic
zenquirer-core API and includes the zenquirer-crossterm terminal backend by
default.
Highlights
- 15 serializable question types for
QuestionnaireBuilder - Dynamic runtime questions through
AsyncScope - Typed answer extraction with
Answers::get_as::<T>() - Full YAML/JSON questionnaire and answer serialization
- 50+ validators with combinator support
- Mock backend support for tests
- Optional
zenqCLI for YAML/JSON questionnaire files
Install
[]
= "0.1"
Enable the CLI binary when installing the tool:
Example
use ;
Feature flags
| Feature | Default | Description |
|---|---|---|
crossterm |
yes | Terminal backend |
validators-regex |
yes | Regex-backed validators |
datetime |
no | Typed Date and DateTime answers |
datetime-tz |
no | Timezone-aware DateTimeTz answers |
cli |
no | zenq CLI binary |
schema |
no | JSON Schema generation |
Documentation
- Repository and guides: https://gitlab.com/osteri/zenquirer
- API documentation: https://docs.rs/zenquirer
License
MIT OR Apache-2.0