unicode-rs / unicode-xid Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello,
In WGSL (WebGPU Shading Language), the spec requires Unicode 14.0 for XID ranges, and it would be great to have a release to be spec-compliant since 14.0 data is already in this repository, just not up in the Crates.
Thank you!
rustc_unicode recently added support for Pattern_White_Space
in rust-lang/rust@24578e0. Syntex needs this support somewhere, and @kwantam mentioned that unicode-xid might be the right place for this functionality.
cc @SimonSapin
The no_std
feature has no effect, because #![no_std]
is unconditionally enabled (as it should be, since this crate has no reliance on std). It seems like this became the case in 02cc96c.
It should be removed or deprecated (probably deprecated, to avoid the breaking change), and the docs should reflect that #![no_std]
is always enabled.
I am interested in the difference between 0.0.4 and 0.1.0.
The convention in Rust is to not capitalise initialisms beyond the first letter.
Breakage could be mitigated by exporting the trait twice and deprecating the all-caps version.
Hello @Manishearth could you publish version 0.2.5 to crates.io?
Thanks!
Usually, one does not want to check individual characters, but strings as a whole. Since this results in repeating the same boilerplate over and over, how about providing a direct mechanism on &str
for this purpose? I'm thinking of three methods: starts_with_xid_start
, is_xid_continue
, is_xid_ident
. I'm fine with them being either standalone methods or trait extensions to str
.
No stable version has been released for a long time since 0.1.0, Is there some other feature you are waiting for that is planned for 0.2.0, or can it just be released?
make[1]: Entering directory '/home/nekrad/src/cargo/unicode-xid'
/home/nekrad/.usr/rust/bin/rustc src/lib.rs --crate-type=dylib --crate-name unicode_xid -o libunicode_xid.so.0.1.0
error: language item required, but not found: panic_fmt
error: language item required, but not found: eh_personality
error: aborting due to 2 previous errors
crates.io links to https://unicode-rs.github.io/unicode-xid/unicode_xid/index.html, which suggests adding unicode-xid = "0.0.4"
to the Cargo.toml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.