Skip to content

fluent-uri v0.3.0

Choose a tag to compare

@yescallop yescallop released this 29 Sep 09:29
· 108 commits to main since this release

Highlights

  • Reintroduced a Uri type that represents a URI (always with a scheme).
  • Added support for IRIs (RFC 3987) by introducing Iri and IriRef types.
  • Dropped net from default features list.

Other changes

Added

  • Implemented From and TryFrom between URI/IRI (reference) types and strings.
  • Added IRI encoders IUserinfo, IRegName, IPort, IPath, IQuery, IFragment, and IData.
  • Changed Authority and Host to take encoder type parameters which default to URI encoders.
  • Added type aliases IAuthority and IHost that use IRI encoders.
  • Added Table::{or_ucschar, or_iprivate}.

Removed

  • Removed UriRef::is_uri in favor of has_scheme.

Changed

  • Replaced EString::push_byte with EString::push which takes char as argument.
  • Renamed EStr<Path>::segments to segments_if_absolute for clarity.
  • Renamed Table::gen to new, and Table::enc to or_pct_encoded.
  • Changed Table::allows to take char as argument.