Skip to content

Commit 68f151c

Browse files
authored
Update tests to Unicode 16.0 (#1045)
* Update tests to Unicode 16.0 * Update CI to test Rust 1.82 (ICU4X 2.0 MSRV) and to downgrade idna_adapter on Rust 1.67 * Drop Rust 1.67 tests
1 parent 7cff874 commit 68f151c

File tree

5 files changed

+4857
-4728
lines changed

5 files changed

+4857
-4728
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
18-
rust: [1.63.0, 1.67.0, stable, beta, nightly]
18+
rust: [1.63.0, 1.82.0, stable, beta, nightly]
1919
exclude:
2020
- os: macos-latest
21-
rust: 1.67.0
21+
rust: 1.82.0
2222
- os: windows-latest
23-
rust: 1.67.0
23+
rust: 1.82.0
2424
- os: macos-latest
2525
rust: beta
2626
- os: windows-latest
@@ -41,13 +41,6 @@ jobs:
4141
matrix.rust == '1.63.0'
4242
run: |
4343
cargo update -p idna_adapter --precise 1.1.0
44-
- name: Downgrade deps on Rust 1.67.0
45-
if: |
46-
matrix.rust == '1.67.0'
47-
run: |
48-
cargo update -p zerofrom --precise 0.1.4
49-
cargo update -p yoke --precise 0.7.4
50-
cargo update -p litemap --precise 0.7.3
5144
- name: Add `aarch64-unknown-none` toolchain for `no_std` tests
5245
if: |
5346
matrix.os == 'ubuntu-latest' &&
@@ -66,7 +59,7 @@ jobs:
6659
if: |
6760
matrix.os == 'windows-latest' &&
6861
matrix.rust != '1.63.0' &&
69-
matrix.rust != '1.67.0'
62+
matrix.rust != '1.82.0'
7063
run: cargo test --test debugger_visualizer --features "url/debugger_visualizer,url_debug_tests/debugger_visualizer" -- --test-threads=1 || echo "debugger test failed"
7164
continue-on-error: true # Fails on GH actions, but not locally.
7265
- name: Test `no_std` support

idna/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ By default, `idna` uses [ICU4X](https://github.com/unicode-org/icu4x/) as its Un
4040
* The `Idna::to_ascii_inner` method has been removed. It didn't make sense as a public method, since callers were unable to figure out if there were errors. (A GitHub search found no callers for this method.)
4141
* Punycode labels whose decoding does not yield any non-ASCII characters are now treated as being in error.
4242
* When turning off default cargo features, the cargo feature `compiled_data` needs to be explicitly enabled.
43+
44+
## License
45+
46+
MIT OR Apache-2.0 for the code. Additionally, there is a test data file, IdnaTestV2.txt, under Unicode-3.0.

0 commit comments

Comments
 (0)