<div align="center">
# Parley Data
**Unicode data for text layout**
[](https://crates.io/crates/parley_data)
[](https://docs.rs/parley_data)
[](#license)
\
[](https://xi.zulipchat.com/#narrow/channel/205635-parley)
[](https://github.com/linebender/parley/actions)
[](https://deps.rs/crate/parley_data)
</div>
[`Properties`]: https://docs.rs/parley_data/latest/parley_data/struct.Properties.html
[_alloc]: https://doc.rust-lang.org/stable/alloc/
Parley Data packages the Unicode data that Parley's text analysis and shaping pipeline needs at runtime.
It exposes Unicode character [`Properties`][] backed by compact `PackTab` lookup tables, allowing the
engine to obtain all required character properties with a single lookup.
WARNING: This crate is currently designed only for use within Parley; if you have a use case for it,
please [reach out](https://xi.zulipchat.com/#narrow/channel/205635-parley).
## Features
The following crate [feature flags](https://doc.rust-lang.org/cargo/reference/features.html#dependency-features) are available:
- `std` (enabled by default): This is currently unused and is provided for forward compatibility.
Note that Parley Data requires that an allocator is available (i.e. it depends on [`alloc`][_alloc]).
Currently, Parley Data does not actually allocate, but the dependency is kept so starting to allocate in the future is not a breaking change.
## Regenerating the baked data
Run the following from the repository root to regenerate the baked data:
```sh
cargo run -p parley_data_gen -- ./parley_data/src/generated
cargo fmt -p parley_data
```
## Minimum supported Rust Version (MSRV)
This version of Parley Data has been verified to compile with **Rust 1.96** and later.
Future versions of Parley Data might increase the Rust version requirement.
It will not be treated as a breaking change and as such can even happen with small patch releases.
## Community
Discussion of Parley Data development happens in the [Linebender Zulip](https://xi.zulipchat.com/), specifically the [#parley channel](https://xi.zulipchat.com/#narrow/channel/205635-parley).
All public content can be read without logging in.
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
at your option.
## Contribution
Contributions are welcome by pull request.
The [Rust code of conduct] applies.
Please feel free to add your name to the [AUTHORS] file in any substantive pull request.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
[Rust code of conduct]: https://www.rust-lang.org/policies/code-of-conduct
[AUTHORS]: ../AUTHORS