-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made the code no-std and also made most of the code const!
this crate is now no-std and also so many of the functions now are const, you can even create a ArabicReshaper fully const now! 1.5.0 changes: - no-std - const as much functions as possible. - switched to BTreeMap from HashMap in reshaper because alloc dont have a HashMap. - added a new field named default_ligatures to LigaturesFlags for adding just default ones if needed. - updated all the dependecies.
- Loading branch information
1 parent
357f86b
commit 4b686af
Showing
11 changed files
with
242 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
[package] | ||
name = "ar-reshaper" | ||
version = "1.3.1" | ||
version = "1.5.0" | ||
authors = ["Saeid Ghafari <[email protected]>"] | ||
edition = "2021" | ||
description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic script." | ||
description = "A no-std crate to reconstruct Arabic, turkish and persian sentences to be used in applications that don't support Arabic script." | ||
repository = "https://github.com/YouKnow-sys/ar-reshaper" | ||
documentation = "https://docs.rs/ar-reshaper" | ||
license = "MIT" | ||
keywords = ["arabic", "persian", "turkish", "reshape"] | ||
keywords = ["arabic", "persian", "turkish", "reshape", "no-std", "no_std"] | ||
readme = "README.md" | ||
categories = ["algorithms"] | ||
|
||
[features] | ||
default = [] | ||
default = ["ttf-parser"] | ||
|
||
[dependencies] | ||
serde = { version = "1.0", features = ["derive"], optional = true } | ||
ttf-parser = { version = "0.19", optional = true } | ||
ttf-parser = { version = "0.20", optional = true } | ||
|
||
[[example]] | ||
name = "reshape_line" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.