commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
a73f06b71e8cb49d439f5189e556d729fae7fb3b
Colin Walters
2021-08-05T16:01:04
Build with Rust 1.52 (#31) Remove usage of or patterns.
diff --git a/src/error.rs b/src/error.rs index f8c2cda..bc62f3d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -52,10 +52,10 @@ impl fmt::Display for ParseError { // Mismatched parens/quotes have a slightly different output // than the other errors match &self.reason { - r @ (Reas...
3
17
16
7f856d7dec36943fbc0cc1f8310750d59b434137
Jake Shadle
2021-07-13T09:09:21
Update (#28) * Update target-lexicon to 0.12.0 * Fix all clippy lints Co-authored-by: Rémi Lauzier <remilauzier@protonmail.com>
diff --git a/Cargo.toml b/Cargo.toml index 55b0df6..50dee66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ targets = ["target-lexicon"] [dependencies] smallvec = "1.6" -target-lexicon = { version = "0.11.2", optional = true } +target-lexicon = { version = "0.12.0", optional = true } [dev-dependencies...
5
20
19
f998b00fa2d010161f3709b43d64e28815bd7c26
Guillaume Desmottes
2021-03-16T10:27:44
Add Expression::original() (#26)
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 271056c..e747d8d 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -519,6 +519,21 @@ impl Expression { result_stack.pop().unwrap() } + + /// The original string which has been parsed to produce this ['Expression`]. + /// + /// ``` + //...
1
15
0
e6eeb180d232015f274297b5425157d791c6519d
Guillaume Desmottes
2021-03-16T09:29:57
Implement Clone on Expression (#25)
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 3282d2f..271056c 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -396,7 +396,7 @@ pub(crate) enum ExprNode { } /// A parsed `cfg()` expression that can evaluated -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct Expression { pub(crate) expr: Small...
1
1
1
ca8b5d1bae93fd5f97c558668b98e1509072afc1
Guillaume Desmottes
2021-03-16T08:40:07
Implement PartialEq on Expression (#23)
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index f822cd3..faff51f 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -521,6 +521,28 @@ impl Expression { } } +/// [`PartialEq`] will do a **syntactical** comparaison, so will just check if both +/// expressions have been parsed from the same string, **not**...
1
22
0
d74db56aa05022c804fd995a1c7812d510154d2b
Dan Glastonbury
2021-03-13T12:08:48
Update to v3 clippy lints (#21)
diff --git a/src/error.rs b/src/error.rs index a76a80d..bc62f3d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -71,7 +71,11 @@ impl fmt::Display for ParseError { impl fmt::Display for Reason { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - use Reason::*; + use Reason::{ + ...
6
83
38
2a3ce582d1294f3fdb7db6485328e7b29bf947c6
Jake Shadle
2021-02-17T10:42:59
Update now that target-lexicon has uclibceabi (#19)
diff --git a/Cargo.toml b/Cargo.toml index bd4cd08..742c5be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ targets = ["target-lexicon"] [dependencies] smallvec = "1.6" -target-lexicon = { version = "0.11", optional = true } +target-lexicon = { version = "0.11.2", optional = true } [dev-dependencies] ...
3
6
8
0f9ecfc83f8aad23284cb66298c4d9aaafdffa11
Rain
2020-12-15T06:05:02
Make TargetInfo and subfields Eq + Hash + Ord (#16) This allows TargetInfo to be used as keys for maps and sets.
diff --git a/src/targets/mod.rs b/src/targets/mod.rs index 30d0536..33d568f 100644 --- a/src/targets/mod.rs +++ b/src/targets/mod.rs @@ -7,22 +7,22 @@ mod builtins; pub use builtins::ALL_BUILTINS; /// The "architecture" field -#[derive(Clone, Copy, PartialEq, Debug)] +#[derive(Clone, Copy, Debug, Eq, Hash, Ord, Par...
1
23
7
86e90af538bf3ffdfb9c443b778f8933cd59fae2
Jake Shadle
2020-06-04T09:28:34
Ignore clippy lint
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index f4a8aba..88fdd93 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -77,6 +77,7 @@ impl<'a> TargetMatcher for targ::TargetInfo<'a> { #[cfg(feature = "targets")] impl TargetMatcher for target_lexicon::Triple { + #[allow(clippy::cognitive_complexity)] fn...
1
1
0
9d60f59bb2ef73f10d72353603b43ebeb1ca4e16
Jake Shadle
2020-06-04T09:27:31
Update target-lexicon, fixup predicate matching
diff --git a/Cargo.toml b/Cargo.toml index 451c8be..582d77d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ keywords = ["cargo", "rustc", "cfg"] [dependencies] smallvec = "1.4" -target-lexicon = { version = "0.10", optional = true } +target-lexicon = { version = "0.11", optional = true } [dev-dependen...
3
94
62
a78771feca95bbf96e77b14efd6752accb188ec4
Jake Shadle
2020-06-04T00:02:39
Checkpoint
diff --git a/Cargo.toml b/Cargo.toml index 2e74150..451c8be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,5 +22,5 @@ difference = "2.0" default = [] targets = ["target-lexicon"] -[patch.crates-io] -target-lexicon = { path = "../target-lexicon" } +# [patch.crates-io] +# target-lexicon = { path = "../target-lexicon...
3
96
58
0c5d0b43610d4f80f720d0f14b69b99319dc700a
Jake Shadle
2020-06-03T13:43:37
Remove commented out blocks
diff --git a/update/src/main.rs b/update/src/main.rs index 8405ab3..b9f96cd 100644 --- a/update/src/main.rs +++ b/update/src/main.rs @@ -222,37 +222,6 @@ fn real_main() -> Result<(), String> { writeln!(out, "];").unwrap(); - // { - // writeln!(out, "\npub enum Arch {{").unwrap(); - - // for ar...
1
0
71
6712d73b1c29d399ddc2e0145cfbd94ff306ca62
Jake Shadle
2020-06-03T12:41:14
Split target predicate mathing into a trait
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index cefd830..4fc18e6 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -48,61 +48,51 @@ pub enum TargetPredicate<'a> { Vendor(targ::Vendor<'a>), } -impl<'a> TargetPredicate<'a> { - /// Returns true of the predicate matches the specified target - /// - ...
2
61
46
0edaef92fd93dd73bbe34ef50ede2ce56c7df5eb
Jake Shadle
2020-06-02T16:06:10
First pass at adding support for target-lexicon
diff --git a/Cargo.toml b/Cargo.toml index 342e22f..5b94c51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,12 @@ homepage = "https://github.com/EmbarkStudios/cfg-expr" keywords = ["cargo", "rustc", "cfg"] [dependencies] -smallvec = "1.1.0" +smallvec = "1.4" +target-lexicon = { version = "0.10", optional = tr...
5
98
103
f86665333b9433bdff5ffd1a3c2cd2e798f38f44
Jake Shadle
2020-05-31T15:32:32
checkpoint
diff --git a/src/error.rs b/src/error.rs index a2bebba..a76a80d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -17,7 +17,7 @@ pub struct ParseError { pub enum Reason { /// not() takes exactly 1 predicate, unlike all() and any() InvalidNot(usize), - /// The characters are not valid in an SDPX license expr...
4
156
22
9168655b17db0cff5a5017f9c58d012c27834a8c
Jake Shadle
2020-05-30T09:32:34
Update Expression to use the non-enum predicates
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 2247fde..4ced829 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -2,6 +2,7 @@ pub mod lexer; mod parser; use smallvec::SmallVec; +use std::ops::Range; /// A predicate function, used to combine 1 or more predicates /// into a single value @@ -28,26 +29,2...
3
102
57
f20faf426b30e17a9c0de96ce895ab2c26c50e42
Jake Shadle
2020-05-30T09:31:17
Change each target piece to a string wrapper Also, auto-generate all of the builtin targets as named constants, so we preserve the previous behavior we got with enums, but allow the use of non-builtin target specs as well.
diff --git a/src/targets/builtins.rs b/src/targets/builtins.rs index 1638b04..c5dfeb7 100644 --- a/src/targets/builtins.rs +++ b/src/targets/builtins.rs @@ -6,11 +6,13 @@ * cargo run --manifest-path update/Cargo.toml */ +#![allow(non_upper_case_globals)] + use super::*; pub(crate) const RUSTC_VERSION: &str = ...
3
139
98
f4ae2f8ae9e21a4f9168eb7fb5f2d3b1426ae4ee
Jake Shadle
2020-05-30T09:25:58
Create an owned string in case of parse errors
diff --git a/src/error.rs b/src/error.rs index 3f4dbe5..a2bebba 100644 --- a/src/error.rs +++ b/src/error.rs @@ -2,9 +2,9 @@ use std::{error::Error, fmt}; /// An error related to parsing of a cfg expression #[derive(Debug, PartialEq)] -pub struct ParseError<'a> { +pub struct ParseError { /// The string that wa...
4
29
29
ce6629ec9d74a4d490fe3aa03b7e3746d0bf8cc6
Rain
2020-03-30T01:43:24
Implement evaluation when the result is unknown I've run into some situations where the result of evaluating a predicate is unknown, most notably with target families. Allow evaluating such cases using a simple three-valued logic. Do this by making the logic a trait -- its implementation for `bool` is the standard bo...
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 66f3039..a1329e1 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -168,7 +168,12 @@ impl Expression { /// Evaluates the expression, using the provided closure to determine the value of /// each predicate, which are then combined into a final result d...
2
169
12
d145a77a2d6550fa3e1ce8a2098b0f426979562c
Rain
2020-03-29T20:40:37
Fix nested any/all evaluation The current evaluator pops everything on the stack in order to evaluate `any` or `all` queries. That breaks in nested situations like: ``` all(any(unix, target_arch="x86"), not(any(target_os="android", target_os="emscripten"))) ``` Fix this by tracking the number of predicates in the `A...
diff --git a/src/error.rs b/src/error.rs index 35f3683..3f4dbe5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -16,7 +16,7 @@ pub struct ParseError<'a> { #[derive(Debug, PartialEq)] pub enum Reason { /// not() takes exactly 1 predicate, unlike all() and any() - InvalidNot(u8), + InvalidNot(usize), //...
4
37
17
07f82cf5c55e7896a50a37472e3b9b6cfa619c0a
Jake Shadle
2020-02-05T12:42:31
Add targets::rustc_version()
diff --git a/src/targets/mod.rs b/src/targets/mod.rs index a5286ed..89e4ac8 100644 --- a/src/targets/mod.rs +++ b/src/targets/mod.rs @@ -207,6 +207,17 @@ pub fn get_target_by_triple(triple: &str) -> Option<&'static TargetInfo> { .ok() } +/// Retrieves the version of rustc for which the built-in targets were...
1
11
0
587d51d42df1553957fa471fb8efe24dfd908105
Jake Shadle
2020-02-05T12:42:04
Update to 1.41 Also add the rustc_version to the output
diff --git a/src/targets/list.rs b/src/targets/list.rs index eefaa97..a387cd2 100644 --- a/src/targets/list.rs +++ b/src/targets/list.rs @@ -8,6 +8,8 @@ use super::*; +pub(crate) const RUSTC_VERSION: &str = "1.41.0"; + pub const ALL_TARGETS: &[TargetInfo] = &[ TargetInfo { triple: "aarch64-apple-ios...
2
63
13
ed0d32c4cc35972b2909dd0e84b38acea9d7d495
Jake Shadle
2020-01-09T17:14:31
Fill out metadata
diff --git a/Cargo.toml b/Cargo.toml index 9942dca..b4ab28c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,15 @@ [package] name = "cfg-expr" +description = "A parser and evaluator for Rust `cfg()` expressions." +repository = "https://github.com/EmbarkStudios/cfg-expr" version = "0.1.0" -authors = ["Jake Shadle ...
1
8
1
3d57a7a127dd2c88ab860c3ff19c78fc10555102
Jake Shadle
2020-01-09T16:55:20
Add tiny test
diff --git a/tests/eval.rs b/tests/eval.rs index e1199ca..11f3bce 100644 --- a/tests/eval.rs +++ b/tests/eval.rs @@ -40,6 +40,16 @@ fn target_family() { } } +#[test] +fn tiny() { + assert!(Expression::parse("all()").unwrap().eval(|_| false)); + assert!(!Expression::parse("any()").unwrap().eval(|_| true));...
1
10
0
0ffc2520620e086c3d452bf89fcf4279552eb942
Jake Shadle
2020-01-09T16:53:31
Rename Operator => Func
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 5a62193..2d3782c 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -5,7 +5,7 @@ use smallvec::SmallVec; /// The predicate operator #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Copy, Clone)] -pub enum Operator { +pub enum Func { Not, All, Any...
2
12
19
6cd5538c2108038308d11c107b681a4947ac9525
Jake Shadle
2020-01-09T16:51:32
Rename to Endian
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 921eb53..5a62193 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -16,12 +16,12 @@ use crate::targets as targ; #[derive(Clone, Copy, PartialEq, Debug)] pub enum TargetPredicate { Arch(targ::Arch), - Os(Option<targ::Os>), - Family(Option<targ::Family...
4
154
154
70d0700278f4281536d78ba029d70a0c46019047
Jake Shadle
2020-01-09T14:29:37
Fix PATH creation for xcrun shim
diff --git a/update/src/main.rs b/update/src/main.rs index 8680a97..fd8faca 100644 --- a/update/src/main.rs +++ b/update/src/main.rs @@ -8,7 +8,12 @@ fn real_main() -> Result<(), String> { let sep = if cfg!(unix) { ':' } else { ';' }; path.push(sep); - write!(path, "{}", std::env::current_dir().unwrap()....
1
6
1
cfeeefdab640f6dcc79d781e849d851fbc08cb64
Jake Shadle
2020-01-09T13:28:52
Ignore clippy warning
diff --git a/tests/parser.rs b/tests/parser.rs index 2c81662..7bfb315 100644 --- a/tests/parser.rs +++ b/tests/parser.rs @@ -114,6 +114,7 @@ fn fails_unbalanced_quotes() { } #[test] +#[allow(clippy::cognitive_complexity)] fn handles_single_predicate() { test_validate!(ok [ "cfg(key)" => [P::Flag("key...
1
1
0
2d2b5e6f78a56e683884cf2a18c85c00b86e9ea8
Jake Shadle
2020-01-09T13:21:42
Add example/eval
diff --git a/examples/eval.rs b/examples/eval.rs new file mode 100644 index 0000000..05fdb10 --- /dev/null +++ b/examples/eval.rs @@ -0,0 +1,63 @@ +use cfg_expr::{expr::Predicate, targets, Expression}; + +fn main() { + let specific = Expression::parse( + r#"all( + target_os = "windows", + ...
1
63
0
5527e20eadb7ac2d7b9308bdad5ef886adec3dbf
Jake Shadle
2020-01-09T13:21:07
Fix nested nested predicates
diff --git a/src/expr/parser.rs b/src/expr/parser.rs index 1c8e3f7..26d98ba 100644 --- a/src/expr/parser.rs +++ b/src/expr/parser.rs @@ -25,8 +25,9 @@ impl Expression { struct FuncAndSpan { func: Func, parens_index: usize, - num_predicates: u32, span: std::ops:...
2
197
158
4974943b5f37535968b483d23d488f4ff7c36944
Jake Shadle
2020-01-06T20:48:25
Fix clippy warnings
diff --git a/src/error.rs b/src/error.rs index 7015c5c..4ee5e64 100644 --- a/src/error.rs +++ b/src/error.rs @@ -40,7 +40,7 @@ pub enum Reason { } impl<'a> fmt::Display for ParseError<'a> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { ...
4
18
15
8f566208df40c6cf0173c798d797f3d131554a29
Jake Shadle
2019-12-29T19:00:31
Add some tests
diff --git a/tests/eval.rs b/tests/eval.rs new file mode 100644 index 0000000..9b51261 --- /dev/null +++ b/tests/eval.rs @@ -0,0 +1,113 @@ +use cfg_expr::{ + expr::{Predicate, TargetPredicate}, + targets::{self, ALL_TARGETS as all}, + Expression, +}; + +macro_rules! tg_match { + ($pred:expr, $target:expr) =...
3
369
0
0129cf3a79d155283a1fd303e5e49f5b35523939
Andrew Gallant
2024-09-29T12:18:44
deps: bump ucd-util to 0.2.2
diff --git a/Cargo.toml b/Cargo.toml index 9f2bea0..c36233f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ name = "ucd-generate" fst = "0.4.0" ucd-parse = { version = "0.1.10", path = "ucd-parse" } ucd-trie = { version = "0.1.7", path = "ucd-trie" } -ucd-util = { version = "0.2.0", path = "ucd-util" } +...
1
1
1
3650ee65b5286238581ef46a8e3f05e0a54918e6
Andrew Gallant
2024-09-29T12:18:14
ucd-util-0.2.2
diff --git a/Cargo.lock b/Cargo.lock index f9f2c59..76ecf60 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "ucd-util" -version = "0.2.1" +version = "0.2.2" [[package]] name = "unicode-width" diff --git a/ucd-util/Cargo.toml b/ucd-util/Cargo.toml index 9fe0e8c..c0e...
2
2
2
4fe9b51999541879496499660a64ad87835199e4
Andrew Gallant
2024-09-29T12:18:04
deps: bump ucd-trie to 0.1.7
diff --git a/Cargo.toml b/Cargo.toml index 32380a0..9f2bea0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ name = "ucd-generate" [dependencies] fst = "0.4.0" ucd-parse = { version = "0.1.10", path = "ucd-parse" } -ucd-trie = { version = "0.1.5", path = "ucd-trie" } +ucd-trie = { version = "0.1.7", path =...
1
1
1
6035dbb69169e68c9fcf309f9d16676aae4a16ae
Andrew Gallant
2024-09-29T12:17:29
ucd-trie-0.1.7
diff --git a/Cargo.lock b/Cargo.lock index 12b6012..f9f2c59 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "ucd-trie" -version = "0.1.6" +version = "0.1.7" dependencies = [ "once_cell", ] diff --git a/ucd-trie/Cargo.toml b/ucd-trie/Cargo.toml index d012db4..b951f1...
2
2
2
bd4ce450d4d3a656b167924527e556cfb1fe6913
Andrew Gallant
2024-01-18T17:12:06
ucd-parse-0.1.13
diff --git a/Cargo.lock b/Cargo.lock index 8bad4e9..12b6012 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ dependencies = [ [[package]] name = "ucd-parse" -version = "0.1.12" +version = "0.1.13" dependencies = [ "regex-lite", ] diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index 2f0763b.....
2
2
2
42876a4d053f2f8061400c050fe6c155bf8ed72f
raskad
2024-01-18T17:11:42
ucd-parse: add support for DerivedNormalizationProps.txt Ref https://github.com/ridiculousfish/regress/pull/77
diff --git a/ucd-parse/src/derived_normalization_properties.rs b/ucd-parse/src/derived_normalization_properties.rs new file mode 100644 index 0000000..dd7f352 --- /dev/null +++ b/ucd-parse/src/derived_normalization_properties.rs @@ -0,0 +1,64 @@ +use std::path::Path; + +use crate::{ + common::{ + parse_codepo...
2
66
0
a860c015fb40e06cd12dfdbdde5faf7a757fae71
Andrew Gallant
2023-07-07T12:00:55
ucd-trie-0.1.6
diff --git a/Cargo.lock b/Cargo.lock index 0267698..cb05fa1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -74,7 +74,7 @@ dependencies = [ [[package]] name = "ucd-trie" -version = "0.1.5" +version = "0.1.6" dependencies = [ "once_cell", ] diff --git a/ucd-trie/Cargo.toml b/ucd-trie/Cargo.toml index dfb9961..d012db...
2
2
2
72b98ae3c46b6e53f7edad9d8a4d444f7ea9f7f8
Andrew Gallant
2023-07-07T12:00:45
ucd-util-0.2.1
diff --git a/Cargo.lock b/Cargo.lock index 653d4ac..0267698 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "ucd-util" -version = "0.2.0" +version = "0.2.1" [[package]] name = "unicode-width" diff --git a/ucd-util/Cargo.toml b/ucd-util/Cargo.toml index fcb5a7d..9fe...
2
2
2
5c184726d4f1987e23f64405998bfe45b22de427
Andrew Gallant
2023-07-07T12:00:34
ucd-parse-0.1.12
diff --git a/Cargo.lock b/Cargo.lock index 6872b44..653d4ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ dependencies = [ [[package]] name = "ucd-parse" -version = "0.1.11" +version = "0.1.12" dependencies = [ "regex-lite", ] diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index 45da61c.....
2
2
2
c36cbb4e6b293ed8d8ac1bc925daea6d3f977ad8
Andrew Gallant
2023-07-07T12:00:22
edition: move everything to Rust 2021
diff --git a/Cargo.toml b/Cargo.toml index 8bdfb1b..d037797 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,8 @@ readme = "README.md" keywords = ["unicode", "generate", "character", "table", "fst"] license = "MIT OR Apache-2.0" categories = ["text-processing", "internationalization"] -edition = "2018" +edition...
4
12
11
075cacb20958a38538e8cd6d44ea93e8c94a86b9
Andrew Gallant
2023-07-07T11:58:11
ucd-util-0.2.0
diff --git a/Cargo.lock b/Cargo.lock index c90edd8..6872b44 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -81,7 +81,7 @@ dependencies = [ [[package]] name = "ucd-util" -version = "0.1.10" +version = "0.2.0" [[package]] name = "unicode-width" diff --git a/Cargo.toml b/Cargo.toml index e4090ca..8bdfb1b 100644 --- a...
3
3
3
bce7e0440515d3a67a3f8c422c00c13a2c1c4f17
Andrew Gallant
2023-07-07T11:56:23
ucd-parse-0.1.11
diff --git a/Cargo.lock b/Cargo.lock index d5e0034..c90edd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,7 +67,7 @@ dependencies = [ [[package]] name = "ucd-parse" -version = "0.1.10" +version = "0.1.11" dependencies = [ "regex-lite", ] diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index 52d4a3c.....
2
2
2
4d204906765b3d9e11fd20d488c07afad0f697e6
Andrew Gallant
2023-07-06T15:46:45
*: re-generate Unicode data tables within this project All of these should only be used in tests/benchmarks.
diff --git a/benches/tables/fst/general_category.rs b/benches/tables/fst/general_category.rs index a9c811f..d850121 100644 --- a/benches/tables/fst/general_category.rs +++ b/benches/tables/fst/general_category.rs @@ -4,7 +4,7 @@ // // Unicode version: 15.0.0. // -// ucd-generate 0.2.13 is available on crates.io. +//...
12
14
14
cf7f4f07c986e8b2c1583778181c5d5084b8be29
Andrew Gallant
2023-07-06T14:49:04
cli: remove the 'dfa' and 'regex' sub-commands These have been moved to regex-cli and now use regex-automata 0.3: https://github.com/rust-lang/regex/blob/master/regex-cli/README.md#example-serialize-a-dfa This also breaks the cyclic dependency where updating to a new Unicode version for bstr required the following: ...
diff --git a/Cargo.lock b/Cargo.lock index 0254f9b..91efb4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,16 +3,19 @@ version = 3 [[package]] -name = "bitflags" -version = "1.3.2" +name = "aho-corasick" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f...
9
30
544
59ccef4488b324f6ecb14852dc0ab6852f82a356
Lawrence Chou
2023-07-06T14:12:00
cli: add --include to case-mapping command This permits one to include only a subset of the case mappings with respect to the UPPER, LOWER and TITLE groups. PR #55
diff --git a/src/app.rs b/src/app.rs index 3670952..5d3dc15 100644 --- a/src/app.rs +++ b/src/app.rs @@ -571,6 +571,21 @@ pub fn app() -> App<'static, 'static> { (emit maps of codepoint to codepoint, \ ignoring rules from SpecialCasing.txt)", )) + .arg( + Arg::with...
2
45
6
47ae5cbe739d46d3d2eed75e1326d9814d940c3f
Andrew Gallant
2023-01-23T13:22:34
ucd-util-0.1.10
diff --git a/Cargo.lock b/Cargo.lock index 3e81981..0254f9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -108,7 +108,7 @@ dependencies = [ [[package]] name = "ucd-util" -version = "0.1.9" +version = "0.1.10" [[package]] name = "unicode-width" diff --git a/ucd-util/Cargo.toml b/ucd-util/Cargo.toml index 84107fa.....
2
2
2
1e541e178731e95b9dd8413806ac573017d0320e
Andrew Hlynskyi
2023-01-23T13:22:11
ucd-util: fix normalization for Infix_Numeric alias Its alias is `IS`, and the existing code was collapsing it to an empty string. We fix it by requiring that handling `is` prefixes requires not just the `is` prefix, but a proper prefix. That is, there must be something other than the `is` prefix in the name. PR...
diff --git a/ucd-util/src/name.rs b/ucd-util/src/name.rs index 34ec685..ad80fae 100644 --- a/ucd-util/src/name.rs +++ b/ucd-util/src/name.rs @@ -102,7 +102,7 @@ fn symbolic_name_normalize_bytes(slice: &mut [u8]) -> &mut [u8] { // we assume that it's ASCII only and drop anything that isn't ASCII. let mut start...
1
2
1
d7bef201cb30d6dbe4d2559f9fc98fafc9c051a7
Andrew Gallant
2022-11-05T17:37:36
deps: update everything else
diff --git a/Cargo.lock b/Cargo.lock index f774728..c7b2ce3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 - [[package]] name = "bitflags" version = "1.3.2" @@ -34,9 +32,9 @@ checksum = "7ab85b9b05e397...
1
4
6
6c54546ca772410cf8e5ce18f0a0b47a26b5f381
Andrew Gallant
2022-11-05T17:37:06
deps: bump regex and regex-syntax This brings in Unicode 15 updates for the 'dfa' and 'regex' commands. (This commit exists because of a circular dependency between 'ucd-generate' and 'regex-syntax'. At some point in the future, the 'dfa' and 'regex' sub-commands will be moved into 'regex-automata' tooling, which wil...
diff --git a/Cargo.lock b/Cargo.lock index 57ae2e9..f774728 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,9 +40,9 @@ checksum = "2f7254b99e31cad77da24b08ebf628882739a608578bb1bcdfc1f9c21260d7c0" [[package]] name = "regex" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crate...
1
4
4
df83f0d95dce367441115fd792c35f6d35161b9e
Andrew Gallant
2022-09-03T17:34:40
deps: bump ucd-parse to 0.1.10
diff --git a/Cargo.toml b/Cargo.toml index edf6b68..9bcafc3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ name = "ucd-generate" byteorder = "1" fst = "0.4.0" regex-automata = "0.1.9" -ucd-parse = { version = "0.1.9", path = "ucd-parse" } +ucd-parse = { version = "0.1.10", path = "ucd-parse" } ucd-trie ...
1
1
1
a3f516ab9359130b56523c0836f9a8fa3b310eec
Andrew Gallant
2022-09-03T17:34:13
ucd-parse-0.1.10
diff --git a/Cargo.lock b/Cargo.lock index 06ffe62..8fe800d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,7 +93,7 @@ dependencies = [ [[package]] name = "ucd-parse" -version = "0.1.9" +version = "0.1.10" dependencies = [ "once_cell", "regex", diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index 365...
2
2
2
294b849e7835fea82b1a403b2db6c11a7e9c5aca
Andrew Gallant
2022-09-03T17:33:52
dep: bump to ucd-trie 0.1.5
diff --git a/Cargo.toml b/Cargo.toml index 490cef7..edf6b68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ byteorder = "1" fst = "0.4.0" regex-automata = "0.1.9" ucd-parse = { version = "0.1.9", path = "ucd-parse" } -ucd-trie = { version = "0.1.4", path = "ucd-trie" } +ucd-trie = { version = "0.1.5", pat...
1
1
1
3689c96bdbf1f9660de43925f278b977e9a4edc6
Andrew Gallant
2022-09-03T17:33:18
ucd-trie-0.1.5
diff --git a/Cargo.lock b/Cargo.lock index 2b158cd..06ffe62 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "ucd-trie" -version = "0.1.4" +version = "0.1.5" dependencies = [ "once_cell", ] diff --git a/ucd-trie/Cargo.toml b/ucd-trie/Cargo.toml index a7d923c..5e59...
2
2
2
2c989022c4f7b29fc7fc60bfe3c8c90633c06120
David Tolnay
2022-09-03T17:31:49
dep: replace lazy_static with once_cell This is in general a good idea, but was motivated specifically by https://github.com/BurntSushi/bstr/issues/124 PR #52
diff --git a/Cargo.lock b/Cargo.lock index ed4598c..2b158cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -33,10 +33,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a" [[package]] -name = "lazy_static" -version = "1.4.0"...
21
145
142
a81f05bcd2c893d7000dda94d1cfb9ef76c4b56d
Andrew Gallant
2022-07-05T18:06:12
deps: bump regex and regex-syntax This brings in Unicode 14 updates for the 'dfa' and 'regex' commands. (This commit exists because of a circular dependency between 'ucd-generate' and 'regex-syntax'. At some point in the future, the 'dfa' and 'regex' sub-commands will be moved into 'regex-automata' tooling, which wil...
diff --git a/Cargo.lock b/Cargo.lock index 405fbfe..17335cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,9 +40,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "regex" -version = "1.5.6" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crate...
1
4
4
991f0ba95ef4fc0f419f70f6ffe97d62647c4174
Andrew Gallant
2022-07-05T15:34:53
deps: update everything This also makes sure our minimal dependencies are correct with respect to updates in crates like ucd-parse.
diff --git a/Cargo.lock b/Cargo.lock index 43b0999..0d37a1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,21 +4,21 @@ version = 3 [[package]] name = "bitflags" -version = "1.2.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b...
2
20
21
dce4b3199a78bb23a9bfd842ada4dd06427845bc
Andrew Gallant
2022-07-05T15:33:17
ucd-parse-0.1.9
diff --git a/Cargo.lock b/Cargo.lock index f81608f..43b0999 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,7 +94,7 @@ dependencies = [ [[package]] name = "ucd-parse" -version = "0.1.8" +version = "0.1.9" dependencies = [ "lazy_static", "regex", diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index c5...
2
2
2
3249d7f5c075284bf52fe1146295cb22d9540cf8
Andrew Gallant
2022-07-05T15:33:04
ucd-util-0.1.9
diff --git a/Cargo.lock b/Cargo.lock index 13f9326..f81608f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,7 +109,7 @@ dependencies = [ [[package]] name = "ucd-util" -version = "0.1.8" +version = "0.1.9" [[package]] name = "unicode-width" diff --git a/ucd-util/Cargo.toml b/ucd-util/Cargo.toml index d6266cb..8...
2
2
2
cd94f7ff0a211f86da2fd6f530e1fbc78b891f1a
Andrew Gallant
2022-07-05T15:32:46
ucd-trie-0.1.4
diff --git a/Cargo.lock b/Cargo.lock index 9963b32..13f9326 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -102,7 +102,7 @@ dependencies = [ [[package]] name = "ucd-trie" -version = "0.1.3" +version = "0.1.4" dependencies = [ "lazy_static", ] diff --git a/ucd-trie/Cargo.toml b/ucd-trie/Cargo.toml index 8430737..82...
2
2
2
6341645452e1a1fc546383ff06fd361ad94af653
Aris Merchant
2021-06-30T07:15:07
ucd-parse: add support for parsing files under 'extracted/' Closes #46
diff --git a/ucd-parse/src/extracted/derived_bidi_class.rs b/ucd-parse/src/extracted/derived_bidi_class.rs new file mode 100644 index 0000000..da38824 --- /dev/null +++ b/ucd-parse/src/extracted/derived_bidi_class.rs @@ -0,0 +1,61 @@ +use std::path::Path; +use std::str::FromStr; + +use crate::common::{ + parse_codep...
14
828
0
600a42c62c25e7011e16b9da1b66803d0b5ed8f5
Adrian Wong
2021-06-02T03:31:35
cli: add canonical-combining-class sub-command Closes #45
diff --git a/src/app.rs b/src/app.rs index c3101c9..3670952 100644 --- a/src/app.rs +++ b/src/app.rs @@ -42,6 +42,11 @@ bidi-class produces one table of Unicode codepoint ranges for each possible Bidi_Class value. "; +const ABOUT_CANONICAL_COMBINING_CLASS: &'static str = "\ +canonical-combining-class produces one t...
4
145
0
966352434602208ea8b46e0bc17148611557486e
Thom Chiovoloni
2020-05-10T21:23:32
cli: add new --flat-table flag to case-related commands This permits writing tables using '[char; 3]' instead of '&[char]'. The latter is a fat point taking up 16 bytes by itself, where as the former is an inlined sequence of 3 codepoints, using only 12 bytes. Since the new representation drops the length encoded in '...
diff --git a/src/app.rs b/src/app.rs index 84ca486..c3101c9 100644 --- a/src/app.rs +++ b/src/app.rs @@ -185,6 +185,12 @@ pub fn app() -> App<'static, 'static> { cannot be written as a character literal, then it is \ silently dropped.", ); + let flag_combined = Arg::with_name("combined").lon...
4
80
22
174568620093d746a2d045a431344118f2b8f065
Thom Chiovoloni
2022-07-05T13:11:09
ucd-parse: add EastAsianWidth.txt Note that we don't use an enum to represent "width" because it's not totally clear that we should. And using a simple string means it's a bit more future proof. PR #26
diff --git a/ucd-parse/src/east_asian_width.rs b/ucd-parse/src/east_asian_width.rs new file mode 100644 index 0000000..c146e09 --- /dev/null +++ b/ucd-parse/src/east_asian_width.rs @@ -0,0 +1,63 @@ +use std::path::Path; +use std::str::FromStr; + +use crate::common::{ + parse_codepoint_association, CodepointIter, Cod...
2
65
0
d1166c086f24dafe075ddf69acb0e0aebda3daf3
Andrew Gallant
2021-05-01T13:48:13
fmt: run 'cargo fmt --all' This should fix the outstanding CI errors.
diff --git a/ucd-parse/src/common.rs b/ucd-parse/src/common.rs index c18be66..3e5f856 100644 --- a/ucd-parse/src/common.rs +++ b/ucd-parse/src/common.rs @@ -435,7 +435,9 @@ impl PartialEq<(Codepoint, Codepoint)> for Codepoints { /// A range of Unicode codepoints. The range is inclusive; both ends of the /// range a...
1
6
2
bc397ddad399b92819f47f192b801e017f60ca7e
Andrew Gallant
2021-05-01T13:03:23
output: use lazy_static::lazy_static! This avoids the need to do `#[macro_use] extern crate lazy_static`.
diff --git a/src/writer.rs b/src/writer.rs index 7844747..8aec1ee 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -834,7 +834,7 @@ impl Writer { File::create(fst_file_path)?.write_all(&fst.to_vec())?; let ty = if map { "Map" } else { "Set" }; - writeln!(self.wtr, "lazy_static! {{")?; + ...
1
3
3
64da3340eac60e648621cb93ff94360f32d04bc6
Andrew Gallant
2020-11-22T15:02:36
deps: remove clap color feature This removes several dependencies.
diff --git a/Cargo.lock b/Cargo.lock index cda8146..430928b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,25 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -[[package]] -name = "ansi_term" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates....
2
1
60
4cb30152f1a7aaac92c7e9039983ac2be6a6fefc
Andrew Gallant
2020-11-22T15:02:02
deps: update everything Only a few minor updates.
diff --git a/Cargo.lock b/Cargo.lock index 815355b..cda8146 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,128 +4,142 @@ name = "ansi_term" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" dependencies ...
1
54
56
957d038f579c2697ff9eb65f58dfc47370369acf
dylni
2020-11-22T14:59:47
cli: add --combined flag This adds a new --combined flag to several commands. It permits grouping all codepoints into a single table. If only a subset of properties are being generated, and mere existence in one of the tables is the only thing required, then this can be much more efficient since one only needs to ...
diff --git a/src/app.rs b/src/app.rs index bbe72db..84ca486 100644 --- a/src/app.rs +++ b/src/app.rs @@ -199,6 +199,12 @@ pub fn app() -> App<'static, 'static> { let ucd_dir = Arg::with_name("ucd-dir") .required(true) .help("Directory containing the Unicode character database files."); + let f...
6
36
0
a2431145d5c06dec9e14f7853cfb494010c7278e
Wesley Moore
2020-11-18T18:45:07
cli: fix generation of title case mapping The case-mapping sub-command introduced in #17 outputs the upper-case mapping for the TITLE table instead of the title-case mapping. This PR fixes the bug. PR #40
diff --git a/src/case_mapping.rs b/src/case_mapping.rs index f70ee3f..0309328 100644 --- a/src/case_mapping.rs +++ b/src/case_mapping.rs @@ -62,7 +62,7 @@ pub fn command(args: ArgMatches<'_>) -> Result<()> { } wtr.codepoint_to_codepoints("LOWER", &lower_map)?; wtr.codepoint_to_codepoints("UPP...
1
1
1
7d434ae3f7571c6d6e2af137748bc5f4a9d2f6d9
Andrew Gallant
2020-03-13T02:23:32
deps: bump to ucd-parse 0.1.8
diff --git a/Cargo.toml b/Cargo.toml index 424d71c..64a5dfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ name = "ucd-generate" byteorder = "1" fst = "0.4.0" regex-automata = "0.1.9" -ucd-parse = { version = "0.1.7", path = "ucd-parse" } +ucd-parse = { version = "0.1.8", path = "ucd-parse" } ucd-trie =...
1
1
1
1c163087838dbf42d6f62ec89d9c4a86b7a9e593
Andrew Gallant
2020-03-13T02:23:02
ucd-parse-0.1.8
diff --git a/Cargo.lock b/Cargo.lock index d7a9282..3531920 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -108,14 +108,14 @@ dependencies = [ "fst 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex-automata 0.1.9 (regis...
2
3
3
0a8a84369708feb60c244a9f483f75a1b494de9b
Thom Chiovoloni
2020-03-13T01:38:45
ucd: regenerate tables Now that we include the Unicode version number, we regenerate the tables. Closes #29
diff --git a/benches/tables/fst/general_category.rs b/benches/tables/fst/general_category.rs index 78b6632..14dc4f2 100644 --- a/benches/tables/fst/general_category.rs +++ b/benches/tables/fst/general_category.rs @@ -1,8 +1,10 @@ // DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY: // -// ucd-generate genera...
12
48
24
97136f54dac37dc090f702160c6622ef2d2d7883
Thom Chiovoloni
2020-03-13T01:21:44
ucd-parse: parse and emit Unicode version number This makes the output a bit more informative without relying on the UCD directory name itself.
diff --git a/src/args.rs b/src/args.rs index cf88225..49051d8 100644 --- a/src/args.rs +++ b/src/args.rs @@ -38,6 +38,14 @@ impl<'a> ArgMatches<'a> { if let Some(p) = self.value_of_os("dfa-dir") { return builder.from_dfa_dir(p); } + // Some of the functionality of this crate works ...
4
94
4
3f29aaa69570e54db98f64edfd5efcec9fe54c20
Andrew Gallant
2020-03-13T02:06:04
deps: update to regex-syntax 0.6.17 This includes support for Unicode 13.
diff --git a/Cargo.lock b/Cargo.lock index d0a0a89..d7a9282 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -66,10 +66,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "regex" -version = "1.3.4" +version = "1.3.5" source = "registry+https://github.com/rust-lang/crates.io-index"...
1
7
7
fdf6f405fbe5ea09d008670e66400988fccd865c
Andrew Gallant
2020-03-13T01:36:10
deps: update minimum versions
diff --git a/Cargo.toml b/Cargo.toml index c47156b..db0ef54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,13 +26,13 @@ name = "ucd-generate" [dependencies] byteorder = "1" fst = "0.4.0" -regex-automata = "0.1.3" -ucd-parse = { version = "0.1.4", path = "ucd-parse" } -ucd-trie = { version = "0.1.2", path = "ucd-tri...
1
5
5
f3ee88e7c05e6a2a95de70ce792ef25e4c0b2e37
Andrew Gallant
2020-03-13T01:35:05
ucd-util-0.1.8
diff --git a/Cargo.lock b/Cargo.lock index 3aa3e7f..586ace0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -110,7 +110,7 @@ dependencies = [ "regex-automata 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", "ucd-parse 0.1.7", "ucd-trie 0.1.3", - "ucd-util 0.1.7", + "ucd-util 0.1.8", ] [[package]] @...
2
3
3
72cb79a43706230fdd27aad2389b0b9474b4a422
Andrew Gallant
2020-03-13T01:34:35
ucd-parse-0.1.7
diff --git a/Cargo.lock b/Cargo.lock index f982043..3aa3e7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -108,14 +108,14 @@ dependencies = [ "fst 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex-automata 0.1.9 (regis...
2
3
3
4fc150c050cd39a92fc54cbb9ecac17ef82c6e7e
Andrew Gallant
2020-03-13T01:28:47
ucd-trie-0.1.3
diff --git a/Cargo.lock b/Cargo.lock index ee8fada..f982043 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,7 +109,7 @@ dependencies = [ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex-automata 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", "ucd-parse 0.1.6", ...
2
3
3
06d9bef625ac17442e75fb6af93e8aaa475e989e
Andrew Gallant
2020-03-13T00:38:48
deps: update to fst 0.4
diff --git a/Cargo.lock b/Cargo.lock index 44fede7..ee8fada 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,11 +43,8 @@ dependencies = [ [[package]] name = "fst" -version = "0.3.5" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "byteorder 1.3.4 (registry+htt...
3
24
26
ece5021f101fa94e8fb117c83fc2ab51b5dcd0a0
Andrew Gallant
2020-03-09T00:16:22
deps: update all dependencies Notably, this includes a regex-automata update that should dramatically improve DFA compilation. For example, bstr's FSM generation has gotten a bit faster: $ time ./scripts/generate-unicode-data generating forward grapheme DFA generating reverse grapheme DFA generating f...
diff --git a/Cargo.lock b/Cargo.lock index f83671f..44fede7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,8 +13,8 @@ name = "atty" version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "hermit-abi 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", - "li...
1
22
29
78b2344e137a524540a24ffbca5ec1dd95b1c320
Andrew Gallant
2020-01-16T22:40:47
deps: update ucd-parse
diff --git a/Cargo.lock b/Cargo.lock index 6bbbf7a..859bc87 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,14 +112,14 @@ dependencies = [ "fst 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex-automata 0.1.8 (regis...
1
2
2
9966867dbf28d85a8deeca09274a8a8f1d6fecb9
Andrew Gallant
2020-01-16T22:40:34
ucd-parse-0.1.6
diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index d693de1..c766591 100644 --- a/ucd-parse/Cargo.toml +++ b/ucd-parse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ucd-parse" -version = "0.1.5" #:version +version = "0.1.6" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A ...
1
1
1
1daab6b14e5b4890729eaac741d5edb6398ee5c5
Andrew Gallant
2020-01-16T22:40:27
deps: update ucd-util
diff --git a/Cargo.lock b/Cargo.lock index 8b34067..6bbbf7a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -114,7 +114,7 @@ dependencies = [ "regex-automata 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "ucd-parse 0.1.5", "ucd-trie 0.1.2", - "ucd-util 0.1.6", + "ucd-util 0.1.7", ] [[package]] @...
1
2
2
0538e3b25257b08c41e352fcc152ded4b4f40806
Andrew Gallant
2020-01-16T22:40:04
ucd-util-0.1.7
diff --git a/ucd-util/Cargo.toml b/ucd-util/Cargo.toml index 0cb82b0..1f26191 100644 --- a/ucd-util/Cargo.toml +++ b/ucd-util/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ucd-util" -version = "0.1.6" #:version +version = "0.1.7" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A small...
1
1
1
c992660c3dc80f2873aca83e9d3512828d933900
Andrew Gallant
2020-01-15T17:46:12
deps: update ucd-parse
diff --git a/Cargo.lock b/Cargo.lock index cba38ee..89d33b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,14 +112,14 @@ dependencies = [ "fst 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "regex-automata 0.1.8 (regis...
1
2
2
801a43c9079ac8c6cba363fe5fa23c5b5f4ed7d7
Andrew Gallant
2020-01-15T17:45:55
ucd-parse-0.1.5
diff --git a/ucd-parse/Cargo.toml b/ucd-parse/Cargo.toml index bdbf37f..d693de1 100644 --- a/ucd-parse/Cargo.toml +++ b/ucd-parse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ucd-parse" -version = "0.1.4" #:version +version = "0.1.5" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A ...
1
1
1
8cbb914448e78e258b3cacffaf9d950d47666749
Andrew Gallant
2020-01-15T17:44:39
deps: update regex
diff --git a/Cargo.lock b/Cargo.lock index fae08bd..cba38ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -69,10 +69,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "regex" -version = "1.3.1" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index"...
1
7
7
5b30a5ca66f6d3be2206fe94459db33d4d5c26e1
Andrew Gallant
2020-01-15T17:44:27
deps: update ucd-util
diff --git a/Cargo.lock b/Cargo.lock index 6e97bd7..fae08bd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -114,7 +114,7 @@ dependencies = [ "regex-automata 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "ucd-parse 0.1.4", "ucd-trie 0.1.2", - "ucd-util 0.1.5", + "ucd-util 0.1.6", ] [[package]] @...
1
2
2
07bed1555a2aec71e88e6a577ffed33eeeff8811
Andrew Gallant
2020-01-15T17:44:01
ucd-util-0.1.6
diff --git a/ucd-util/Cargo.toml b/ucd-util/Cargo.toml index 082a352..0cb82b0 100644 --- a/ucd-util/Cargo.toml +++ b/ucd-util/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ucd-util" -version = "0.1.5" #:version +version = "0.1.6" #:version authors = ["Andrew Gallant <jamslam@gmail.com>"] description = """ A small...
1
1
1
d88aa1ab3dbe74253b735273177c1307c84314c2
Wesley Moore
2020-01-16T22:31:17
cli: add joining-type sub-command PR #24
diff --git a/src/app.rs b/src/app.rs index ca00583..386870b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -57,6 +57,11 @@ script-extension produces one table of Unicode codepoint ranges for each possible Script_Extension value. "; +const ABOUT_JOINING_TYPE: &'static str = "\ +joining-type produces one table of Unicod...
5
147
23
de37a83541028e77d899e65b68ce86dea0936c63
Andrew Gallant
2020-01-15T17:40:48
cargo: add [[bin]] entry This makes it easier for my release tooling to automatically detect that ucd-generate is an application.
diff --git a/Cargo.toml b/Cargo.toml index 546f927..a6ce4b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,11 @@ categories = ["text-processing", "internationalization"] [workspace] members = ["ucd-parse", "ucd-trie", "ucd-util"] +[[bin]] +bench = false +path = "src/main.rs" +name = "ucd-generate" + [depend...
1
5
0
cceb05ea712fc35f8417fb75949145a3c87ad09f
Wesley Moore
2020-01-15T17:36:20
cli: add version to header of generated files To help ensure that regeneration of files is repeatable. PR #25
diff --git a/src/writer.rs b/src/writer.rs index a37cad6..9b389cb 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -1125,7 +1125,11 @@ impl Writer { writeln!(self.wtr, "//")?; writeln!(self.wtr, "// {}", argv.join(" "))?; writeln!(self.wtr, "//")?; - writeln!(self.wtr, "// ucd-genera...
1
5
1
f0f7d9f09a34ca9a92eece0e91a37a2301fa8c07
Wesley Moore
2019-12-12T02:46:54
ucd-generate: add bidi-mirroring-glyph sub-command This sub-command also offers a --rust-match option to generate a function that uses a match expression to map between codepoints. Closes #23
diff --git a/src/app.rs b/src/app.rs index 71f23c4..ca00583 100644 --- a/src/app.rs +++ b/src/app.rs @@ -63,6 +63,12 @@ codepoints that were added for that age. Tables can be emitted as a sorted sequence of ranges, an FST or a trie. "; +const ABOUT_BIDI_MIRRORING_GLYPH: &'static str = "\ +bidi-mirroring-glyph produ...
4
157
0
6a5e1f13cca674944496f06701a06a5f41b968e8
Wesley Moore
2019-12-11T03:31:57
ucd-parse: add support for parsing BidiMirroring.txt
diff --git a/ucd-parse/src/bidi_mirroring_glyph.rs b/ucd-parse/src/bidi_mirroring_glyph.rs new file mode 100644 index 0000000..cca6438 --- /dev/null +++ b/ucd-parse/src/bidi_mirroring_glyph.rs @@ -0,0 +1,106 @@ +use std::fmt; +use std::path::Path; +use std::str::FromStr; + +use regex::Regex; + +use common::{Codepoint, ...
2
108
0
d5da4955933783e00bf52c88eded0725355c2147
Wesley Moore
2019-12-11T01:00:45
properties-bool: add support for Bidi_Mirrored
diff --git a/src/property_bool.rs b/src/property_bool.rs index 5bafaee..d6e0751 100644 --- a/src/property_bool.rs +++ b/src/property_bool.rs @@ -2,7 +2,8 @@ use std::collections::{BTreeMap, BTreeSet}; use std::path::Path; use ucd_parse::{ - self, CoreProperty, EmojiProperty, Property, UnicodeDataExpander, + s...
1
13
1
b814789f4cbeec0bebaa29f5962a99b2974073e3
Thom Chiovoloni
2020-01-15T17:22:19
cli: new case-mapping command This generates tables useful for mapping between lower, upper and title case. PR #17
diff --git a/src/app.rs b/src/app.rs index 1d990cb..71f23c4 100644 --- a/src/app.rs +++ b/src/app.rs @@ -124,7 +124,14 @@ case-folding emits a table of Simple case folding mappings from codepoint to codepoint. When codepoints are mapped according to this table, then case differences (according to Unicode) are elimina...
3
93
0
ddc88902020c0a2b2c61c864bd67a94faccbe55a
Wesley Moore
2020-01-10T12:16:21
cli: add Bidi_Class table generation
diff --git a/src/app.rs b/src/app.rs index 7f61528..1d990cb 100644 --- a/src/app.rs +++ b/src/app.rs @@ -37,6 +37,11 @@ ranges). Project home page: https://github.com/BurntSushi/ucd-generate"; +const ABOUT_BIDI_CLASS: &'static str = "\ +bidi-class produces one table of Unicode codepoint ranges for each +possible B...
4
205
1
c054f532c86f6b3d78c82de744901ce3a4cd7a3a
Wesley Moore
2020-01-10T12:09:51
ucd-parse: add support for parsing ArabicShaping.txt PR #21
diff --git a/ucd-parse/src/arabic_shaping.rs b/ucd-parse/src/arabic_shaping.rs new file mode 100644 index 0000000..ee6929a --- /dev/null +++ b/ucd-parse/src/arabic_shaping.rs @@ -0,0 +1,170 @@ +use std::path::Path; +use std::str::FromStr; + +use regex::Regex; + +use common::{Codepoint, CodepointIter, UcdFile, UcdFileBy...
2
172
0