Skip to content

Add text() options and characters() generator#147

Closed
Liam-DeVoe wants to merge 9 commits intomainfrom
str-alphabet
Closed

Add text() options and characters() generator#147
Liam-DeVoe wants to merge 9 commits intomainfrom
str-alphabet

Conversation

@Liam-DeVoe
Copy link
Copy Markdown
Member

Liam-DeVoe and others added 9 commits March 28, 2026 00:02
The text/character alphabet features (codec, categories, min_codepoint,
max_codepoint, include_characters, exclude_characters) require
hegel-core 0.3.1 which added support for alphabet parameters in string
schemas. The conformance TextConformance also needs 0.3.1 for the
codepoints metrics format.
hegel-core 0.3.1 uses protocol version 0.9 (for the alphabet/characters
feature). Update the client to match.
…e tests

CharactersGenerator::exclude_categories was replacing the default Cs
(surrogate) exclusion, allowing the server to generate surrogate code
points that cannot be represented as valid UTF-8 in Rust. Now Cs is
always included in the exclusion list.

Also adds tests for uncovered code paths: CharactersGenerator::as_basic,
TextGenerator::exclude_categories/include_characters, and value.rs
ciborium::Value::Text conversion and tag-6 error handling.
@Liam-DeVoe
Copy link
Copy Markdown
Member Author

Closing in favor of #172

@Liam-DeVoe Liam-DeVoe closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant