Commit Graph

115 Commits

Author SHA1 Message Date
openharmony_ci
971b491d8f
!2 Add OAT.xml and README.OpenSource
Merge pull request !2 from fangting/master
2023-04-14 08:10:15 +00:00
fangting
6018fa0518 Add OAT.xml and README.OpenSource
Signed-off-by: fangting <fangting12@huawei.com>
2023-04-14 14:15:30 +08:00
openharmony_ci
52e5335967
!1 [unicode-ident]Add GN Build Files and Custom Modifications to Rust Third-party Libraries
Merge pull request !1 from lubinglun/master
2023-04-13 11:33:29 +00:00
lubinglun
3f40fa8345 Add GN Build Files and Custom Modifications
Issue:https://gitee.com/openharmony/build/issues/I6UFTP
Signed-off-by: lubinglun <lubinglun@huawei.com>
2023-04-12 17:27:15 +08:00
David Tolnay
c4f455414f
Release 1.0.8 2023-03-05 15:56:34 -08:00
David Tolnay
ba9f7812cc
Set html_root_url 2023-03-05 15:56:19 -08:00
David Tolnay
90a7433bd4
Release 1.0.7 2023-03-03 15:26:25 -08:00
David Tolnay
90954572e0
Ignore let_underscore_untyped pedantic clippy lint
error: non-binding `let` without a type annotation
      --> generate/src/parse.rs:33:9
       |
    33 |         let _ = writeln!(io::stderr(), "{}: {err}\n{suggestion}", ucd_dir.display());
       |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
       = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic`

    error: non-binding `let` without a type annotation
      --> generate/src/parse.rs:42:13
       |
    42 |             let _ = writeln!(io::stderr(), "{filename} line {i} is unexpected:\n{line}");
       |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

    error: non-binding `let` without a type annotation
       --> generate/src/main.rs:151:9
        |
    151 |         let _ = writeln!(io::stderr(), "{}: {err}", path.display());
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: consider adding a type annotation or removing the `let` keyword
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

    error: non-binding `let` without a type annotation
      --> tests/static_size.rs:28:5
       |
    28 |     let _ = tables::BY_NAME;
       |     ^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
       = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic`

    error: non-binding `let` without a type annotation
      --> tests/static_size.rs:75:5
       |
    75 |     let _ = trie::BY_NAME;
       |     ^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
2023-02-26 21:55:27 -07:00
David Tolnay
6fd6b654dd
Revert "Resolve let_underscore_untyped pedantic clippy lint"
This reverts commit d739d18f92.
2023-02-26 21:05:40 -07:00
David Tolnay
d739d18f92
Resolve let_underscore_untyped pedantic clippy lint
error: non-binding `let` without a type annotation
      --> generate/src/parse.rs:33:9
       |
    33 |         let _ = writeln!(io::stderr(), "{}: {err}\n{suggestion}", ucd_dir.display());
       |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
       = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic`

    error: non-binding `let` without a type annotation
      --> generate/src/parse.rs:42:13
       |
    42 |             let _ = writeln!(io::stderr(), "{filename} line {i} is unexpected:\n{line}");
       |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

    error: non-binding `let` without a type annotation
       --> generate/src/main.rs:151:9
        |
    151 |         let _ = writeln!(io::stderr(), "{}: {err}", path.display());
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        |
        = help: consider adding a type annotation or removing the `let` keyword
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped

    error: non-binding `let` without a type annotation
      --> tests/static_size.rs:28:5
       |
    28 |     let _ = tables::BY_NAME;
       |     ^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
       = note: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic`

    error: non-binding `let` without a type annotation
      --> tests/static_size.rs:75:5
       |
    75 |     let _ = trie::BY_NAME;
       |     ^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: consider adding a type annotation or removing the `let` keyword
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
2023-02-26 19:32:59 -08:00
David Tolnay
d91b5d9b58
Enable type layout randomization in CI on nightly 2023-02-19 09:22:00 -08:00
David Tolnay
006eb756e3
Support a manual trigger on CI workflow 2023-02-18 17:23:57 -08:00
David Tolnay
bfa5c91ffc
Opt out -Zrustdoc-scrape-examples on docs.rs
I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing unicode-ident's internal
usages of APIs is a net benefit to the public documentation. I am also
skeptical that quite so many examples are needed, and that they should
be featured so prominently in comparison to handwritten docs. Lastly I
wish there were a way to turn this behavior off on a more granular
basis.
2023-01-02 21:45:54 -08:00
David Tolnay
d23c2d64dd
Prevent actions duplication on noop merge commits 2022-12-31 12:45:33 -08:00
David Tolnay
600ff66352
Sync license text with rust-lang repos 2022-12-30 12:00:51 -08:00
David Tolnay
25ba0d2e7a
Release 1.0.6 2022-12-17 12:00:31 -08:00
David Tolnay
c740d925cf
Update build status badge 2022-12-15 17:52:43 -08:00
David Tolnay
30361cff0f
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-25 03:51:41 -08:00
David Tolnay
94296cf1b6
Add a funding file 2022-11-25 03:44:02 -08:00
David Tolnay
a6337ab376
Fix renamed let_underscore_drop lint
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
      --> generate/src/main.rs:14:5
       |
    14 |     clippy::let_underscore_drop,
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
       |
       = note: `#[warn(renamed_and_removed_lints)]` on by default
2022-11-22 22:24:47 -08:00
David Tolnay
9c116767e1
Resolve manual_let_else clippy lints
error: this could be rewritten as `let...else`
      --> generate/src/main.rs:50:13
       |
    50 | /             let new = match u8::try_from(chunkmap.len()) {
    51 | |                 Ok(byte) => byte,
    52 | |                 Err(_) => panic!("exceeded 256 unique chunks"),
    53 | |             };
       | |______________^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else
       = note: `-D clippy::manual-let-else` implied by `-D clippy::pedantic`
    help: consider writing
       |
    50 ~             let Ok(byte) = u8::try_from(chunkmap.len()) else {
    51 +         $crate::rt::begin_panic($msg)
    52 +     };
       |
2022-11-22 22:24:18 -08:00
David Tolnay
726d043ecd
Minimalist error handling by exiting on error 2022-11-03 23:41:41 -07:00
David Tolnay
632e122166
Merge pull request #21 from dtolnay/parse
Replace ucd-parse dependency
2022-11-03 23:27:11 -07:00
David Tolnay
34c0dd1fe4
Replace ucd-parse dependency 2022-11-03 23:21:04 -07:00
David Tolnay
5d1a139c83
Merge pull request #20 from dtolnay/ucdparse
Replace ucd-generate dependency with ucd-parse
2022-11-03 22:47:00 -07:00
David Tolnay
834e16aba1
Replace ucd-generate dependency with ucd-parse 2022-11-03 22:39:42 -07:00
David Tolnay
c384237743
Bump version number in UCD zip URL 2022-11-03 22:24:39 -07:00
David Tolnay
556e01ba9b
Return i/o Result from main 2022-11-03 19:13:44 -07:00
David Tolnay
00a42eb9ff
Merge pull request #19 from dtolnay/output
Switch from set-output to $GITHUB_OUTPUT
2022-10-13 09:40:31 -07:00
David Tolnay
4757c71dd8
Switch from set-output to $GITHUB_OUTPUT 2022-10-13 09:37:36 -07:00
David Tolnay
f72cdd4158
Release 1.0.5 2022-10-08 12:42:27 -07:00
David Tolnay
1e397a78e7
Link to cast_possible_truncation false positive
https://github.com/rust-lang/rust-clippy/issues/9613
2022-10-08 12:41:04 -07:00
David Tolnay
fed8ff26f4
Ignore pedantic clippy in ucd-generate generated code 2022-10-08 12:40:40 -07:00
David Tolnay
672c8b5f12
Resolve redundant_closure_for_method_calls pedantic clippy lint 2022-10-08 12:39:49 -07:00
David Tolnay
5465e7b606
Merge pull request #17 from dtolnay/clippy
Run clippy on all crates in workspace
2022-10-08 12:27:57 -07:00
David Tolnay
35ccb3f549
Run clippy on all crates in workspace 2022-10-08 12:24:29 -07:00
David Tolnay
38acd92a4b
Merge pull request #16 from dtolnay/write
Pull out static generated file heading into one string literal
2022-10-08 12:23:24 -07:00
David Tolnay
9150ce272e
Pull out static generated file heading into one string literal 2022-10-08 12:20:46 -07:00
David Tolnay
a04089507d
Merge pull request #15 from dtolnay/write
Move Output writing to separate module
2022-10-08 12:20:41 -07:00
David Tolnay
339634349b
Move Output writing to separate module 2022-10-08 12:16:58 -07:00
David Tolnay
f6f4235938
Merge pull request #14 from dtolnay/unicodexid
Pull in unicode 15.0.0 support in unicode-xid for test
2022-09-16 22:06:41 -07:00
David Tolnay
046ec50bf6
Pull in unicode 15.0.0 support in unicode-xid for test 2022-09-16 22:01:46 -07:00
David Tolnay
2580817601
Add xid keyword 2022-09-16 22:00:38 -07:00
David Tolnay
8b3c61c90d
Merge pull request #13 from dtolnay/unwrap
Improve table generator failure messages
2022-09-14 21:33:04 -07:00
David Tolnay
3f1a9570b5
Improve table generator failure messages 2022-09-14 21:28:53 -07:00
David Tolnay
d9fd2ffe77
Remove default package.readme metadata from Cargo.toml
Since cargo 1.46.0, README.md is recognized by default.
2022-09-14 09:16:02 -07:00
David Tolnay
0869852154
Release 1.0.4 2022-09-13 21:35:15 -07:00
David Tolnay
908bf4fb8b
Merge pull request #12 from dtolnay/unicode15
Update to Unicode 15.0.0
2022-09-13 21:34:17 -07:00
David Tolnay
b545a1d47e
Update static data sizes 2022-09-13 21:24:23 -07:00
David Tolnay
9c100b49ad
Disable unicode-xid comparison test 2022-09-13 21:21:35 -07:00