GitShow/BurntSushi/utf8-ranges
BurntSushi

utf8-ranges

Convert contiguous ranges of Unicode codepoints to UTF-8 byte ranges.

by BurntSushi
Star on GitHubFork

Rust

44 stars10 forks6 contributorsQuiet · 4y agoSince 2015Unlicense

Meet the team

See all 6 on GitHub →
BurntSushi
BurntSushi29 contributions
igor-raits
igor-raits2 contributions
GuillaumeGomez
GuillaumeGomez1 contribution
Apanatshka
Apanatshka1 contribution
mgeisler
mgeisler1 contribution

Languages

View on GitHub →
Rust96.4%
Shell2%
Makefile1.3%
Vim Script0.3%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 2 in progress · Last activity 4y ago
See all on GitHub →
Mubashir78
Fix clippy warningsOpenPR

Fix operator precedence, redundant field names, and unnecessary .into_iter() calls.

Mubashir78 · 2mo ago
ZackPierce
Add no_std + alloc support by way of a default "std" feature flagOpenPR

What The addition of a feature flag, and conditional compilation blocks to make utf8-ranges work in either or + environments, very much in the same vein as https://github.com/BurntSushi/aho-corasick/pull/28 . The default-on "std" feature flag controls whether or not to compile in mode. As stated in the updated docs, due to the use of the presently-unstable API, mode only works with a nightly toolchain at present. How To build for , nothing changes. To build for : The test suites pass as normal in either mode. Why This PR is part of an effort to get and its dependencies to operate in + mode.

ZackPierce · 8y ago

Recent fixes

View closed PRs →
saethlin
Test suite executes UB by attempting to construct invalid charsClosedIssue

I see this crate is deprecated but since deprecating it you've published at least one version of which depends on it, and the latest commit in the repo still depends on this crate. So I guess I'm a bit confused by the deprecated status, but I'd also understand if you just close this as a non-issue 🤷 This code in the test suite is unconditional UB because it attempts to construct an invalid . Miri immediately flags this (which is how I ran into this). https://github.com/BurntSushi/utf8-ranges/blob/8d38a931b7e34f9da339c058cbbca6ded624ea58/src/lib.rs#L463-L464 But you should also be aware that the standard library is _veeery slooowly_ adding debug assertions for preconditions which are detectable at runtime. So these tests are unlikely to break any time soon, but due to this UB these tests could start failing at any time.

saethlin · 4y ago
igor-raits
chore: Update quickcheck to 0.8MergedPR
igor-raits · 7y ago
GuillaumeGomez
Automatically check if README.md examples are working when running "cargo test"MergedPR
GuillaumeGomez · 7y ago
Structured data for AI agents

Repository: BurntSushi/utf8-ranges. Description: Convert contiguous ranges of Unicode codepoints to UTF-8 byte ranges. Stars: 44, Forks: 10. Primary language: Rust. Languages: Rust (96.4%), Shell (2%), Makefile (1.3%), Vim Script (0.3%). License: Unlicense. Open PRs: 2, open issues: 0. Last activity: 4y ago. Community health: 42%. Top contributors: BurntSushi, igor-raits, GuillaumeGomez, Apanatshka, mgeisler.

·@ofershap

Replace github.com with gitshow.dev