Skip to content

Releases: rushmorem/publicsuffix

v2.2.3

12 Oct 14:12
a377c40
Compare
Choose a tag to compare
(cargo-release) publicsuffix version 2.2.3

v2.2.2

10 Aug 16:55
0d224e3
Compare
Choose a tag to compare
(cargo-release) publicsuffix version 2.2.2

v2.2.1

09 Aug 17:17
cc1c92d
Compare
Choose a tag to compare
(cargo-release) publicsuffix version 2.2.1

v2.2.0

09 Aug 16:23
e23b7f1
Compare
Choose a tag to compare
(cargo-release) publicsuffix version 2.2.0

v2.1.0

09 Jul 10:08
3787f3f
Compare
Choose a tag to compare
(cargo-release) publicsuffix version 2.1.0

v1.3.2

05 Jan 21:21
Compare
Choose a tag to compare

If all you want is to do syntax checks, you can now just create an empty list to still take advantage of this library's domain and email parsing engines. Here is an example:-

let list = List::empty();

if list.parse_email("甲斐@黒川.日本").is_ok() {
  // this is a valid email address
}

If this is all you use the library for, don't forget to disable default-features in your Cargo.toml so you don't download unnecessary dependencies.

v1.3.1

05 Jan 10:24
Compare
Choose a tag to compare

This release adds support for validating the local-part of an email address.

v1.3.0

04 Jan 11:12
Compare
Choose a tag to compare

Add support for validating email addresses

v1.2.0

03 Jan 21:54
Compare
Choose a tag to compare

Instead of having to specify whether you are parsing a domain, a host or a URL, now you can just call List::parse_str and it will extract a host from that string if any.

v1.1.0

03 Jan 18:28
Compare
Choose a tag to compare

Now you can parse URLs using List::parse_url or hosts that can potentially be IP addresses using List::parse_host.

List::parse_domain rejects everything that is not a domain name. While this is very useful, domains and IP addresses are usually used interchangeably. Having to first check whether a host is an IP address before trying to parse it as a domain is not very convenient, hence List::parse_host. List::parse_url takes it a step further and allows you to just pass in a URL instead.