Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4a14519
Adjust Punycode overflow checks
hsivonen Jul 1, 2024
5019dd5
Merge pull request #949 from hsivonen/overflow
Manishearth Jul 1, 2024
6be49d0
Remove no_std category (crates.io doesn't support it, and it is now r…
Manishearth Jul 1, 2024
9fd5e1c
Add benches that use the main idna 1.0 entry point in idna and url
hsivonen Jul 3, 2024
a76fe7e
Merge pull request #950 from hsivonen/morebench
valenting Jul 3, 2024
4cb705e
Put the Unicode back end behind an adapter crate
hsivonen Jul 4, 2024
9c69553
Split fastest ASCII fast path from the rest
hsivonen Sep 13, 2024
f4a8b92
Bench hyphen in a domain that is otherwise lower-case ASCII
hsivonen Jul 8, 2024
881f7ae
Adjust MSRV
hsivonen Jul 8, 2024
77ba6e1
Merge branch 'main' into idna-v1x
hsivonen Sep 13, 2024
a771f80
Add README remarks about alternative Unicode back ends
hsivonen Sep 16, 2024
b235b56
Merge pull request #964 from hsivonen/idna-v1x
hsivonen Sep 16, 2024
95ce0f8
Merge branch 'idna-v1x' into adapter
hsivonen Sep 16, 2024
d6ac98b
Merge branch 'main' into idna-v1x
hsivonen Sep 16, 2024
e81799f
Merge pull request #966 from hsivonen/idna-v1x
hsivonen Sep 16, 2024
a8a0c44
Merge branch 'idna-v1x' into adapter
hsivonen Sep 16, 2024
b05732b
Change the idna_adapter dependency to crates.io
hsivonen Oct 29, 2024
f700ca8
Address clippy lints
hsivonen Oct 29, 2024
9163f30
Merge branch 'main' into idna-v1x
hsivonen Oct 29, 2024
22635e4
Merge branch 'idna-v1x' into adapter
hsivonen Oct 29, 2024
662970f
Increment version number of idna to 1.0.3
hsivonen Oct 29, 2024
59c7ea3
Merge pull request #965 from hsivonen/adapter
hsivonen Oct 29, 2024
e6cd8f7
Test MSRV with idna unicode-rs back end and test ICU4X back end with …
hsivonen Oct 29, 2024
6e032ab
Merge pull request #986 from hsivonen/idna-ci
hsivonen Oct 29, 2024
7ead88b
Prepare url crate for publication with idna 1.0.3 (#987)
hsivonen Nov 4, 2024
6811cbe
Merge branch 'main' into idna-v1x
hsivonen Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into idna-v1x
  • Loading branch information
hsivonen committed Oct 29, 2024
commit 9163f30d45c9dc40ee0a9eac5d6a7ba3f70cf0a4
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ jobs:
- name: Run debugger_visualizer tests
if: |
matrix.os == 'windows-latest' &&
matrix.rust != '1.67.0'
run: cargo test --test debugger_visualizer --features "url/debugger_visualizer,url_debug_tests/debugger_visualizer" -- --test-threads=1
matrix.rust != '1.56.0'
run: cargo test --test debugger_visualizer --features "url/debugger_visualizer,url_debug_tests/debugger_visualizer" -- --test-threads=1 || echo "debugger test failed"
continue-on-error: true # Fails on GH actions, but not locally.
- name: Test `no_std` support
run: cargo test --no-default-features --features=alloc
- name: Build `url` crate for `aarch64-unknown-none` with `no_std`
Expand Down
3 changes: 3 additions & 0 deletions idna/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ impl From<Errors> for Result<(), Errors> {
#[cfg(feature = "std")]
impl std::error::Error for Errors {}

#[cfg(not(feature = "std"))]
impl core::error::Error for Errors {}

impl core::fmt::Display for Errors {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(self, f)
Expand Down
6 changes: 3 additions & 3 deletions url/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ bencher = "0.1"
wasm-bindgen-test = "0.3"

[dependencies]
form_urlencoded = { version = "1.2.1", path = "../form_urlencoded" }
idna = { version = "1.0.2", path = "../idna" }
percent-encoding = { version = "2.3.1", path = "../percent_encoding" }
form_urlencoded = { version = "1.2.1", path = "../form_urlencoded", default-features = false, features = ["alloc"] }
idna = { version = "1.0.2", path = "../idna", default-features = false, features = ["alloc", "compiled_data"] }
percent-encoding = { version = "2.3.1", path = "../percent_encoding", default-features = false, features = ["alloc"] }
serde = { version = "1.0", optional = true, features = ["derive"] }

[features]
Expand Down
12 changes: 8 additions & 4 deletions url/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::borrow::Cow;
use std::cmp;
use std::fmt::{self, Formatter};
use std::net::{Ipv4Addr, Ipv6Addr};
use crate::net::{Ipv4Addr, Ipv6Addr};
use alloc::borrow::Cow;
use alloc::borrow::ToOwned;
use alloc::string::String;
use alloc::string::ToString;
use alloc::vec::Vec;
use core::cmp;
use core::fmt::{self, Formatter};

use percent_encoding::{percent_decode, utf8_percent_encode, CONTROLS};
#[cfg(feature = "serde")]
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.