Last 12 weeks · 0 commits
2 of 6 standards met
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.
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.
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.