10 releases

0.4.0 Jun 18, 2021
0.3.0 Feb 6, 2020
0.2.3 Nov 24, 2019
0.2.2 Oct 30, 2019
0.1.1 May 5, 2018

#248 in Web programming

Download history 898/week @ 2021-08-13 824/week @ 2021-08-20 630/week @ 2021-08-27 532/week @ 2021-09-03 836/week @ 2021-09-10 1028/week @ 2021-09-17 934/week @ 2021-09-24 866/week @ 2021-10-01 1100/week @ 2021-10-08 1187/week @ 2021-10-15 1120/week @ 2021-10-22 1626/week @ 2021-10-29 1218/week @ 2021-11-05 2221/week @ 2021-11-12 2001/week @ 2021-11-19 1539/week @ 2021-11-26

7,310 downloads per month
Used in 14 crates (6 directly)

MIT/Apache

160KB
2K SLoC

iri-string

Build Status Latest version Documentation Minimum rustc version: 1.48

String types for IRIs (Internationalized Resource Identifiers) and URIs (Uniform Resource Identifiers).

See the documentation for details.

Features

  • no_std support.
  • String types (both owned and borrowed) for IRIs.
  • IRI reference resolution algorithm.

Feature flags

Direct

  • alloc (enabled by default)
    • Enables types and functions which require memory allocation.
    • Requires std or alloc crate available.
  • std (enabled by default)
    • Enables all std features (such as memory allocations and std::error::Error trait).
    • Requires std crate available.
    • This automatically enables alloc feature.

nom

  • nom-std (enabled by default)
    • Enable optimization for internal parsers, using std power.
    • This automatically enables std feature.

serde

  • serde
    • Implements Serialize and Deserialize traits for string types.
  • serde-alloc
    • Enables deriving serialization and deserialization impls which requires heap memory allocation.
    • If you enable alloc and serde features at the same time, you should also enable serde-alloc feature.
    • This automatically enables alloc feature.
  • serde-std
    • Enables deriving serialization and deserialization impls which requires std stuff.
    • If you enable std and serde features at the same time, you should also enable serde-std feature.
    • This automatically enables std feature.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.8–1.1MB
~24K SLoC