Skip to content

Commit

Permalink
Merge branch 'release/v0.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
lo48576 committed Oct 27, 2019
2 parents e4e0732 + 4071e93 commit 0d5f85b
Show file tree
Hide file tree
Showing 14 changed files with 989 additions and 1,024 deletions.
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@

## [Unreleased]

## [0.2.1]

* `*Str::new()` methods are added.
* `IriFragmentStr::from_prefixed()` is added.
* `types::CreationError` is renamed to `types::IriCreationError`.
+ The old name will be kept until the next minor version bump to keep compatibility.
* Reduced indirect dependencies

### Added
* `*Str::new()` methods are added (39c8f735ccf6f28aaf2f16dcdc579fb3838bb5fb).
+ Previously the string slices are created as `<&FooStr>::try_from(s)` (where `s: &str`),
but this is redundant.
Now `FooStr::new(s)` can be used instead of `<&FooStr>::try_from(s)` for `s: &str`.
* `IriFragmentStr::from_prefixed()` is added (34cec2f422ba8046134668bdb662f69c9db7f52c).
* This creates `IriFragmentStr` from the given string with leading hash (`#`) character.
For example, `IriFragmentStr::from_prefixed("#foo")` is same as `IriFragmentStr::new("foo")`.

### Changed (non-breaking)
* `types::CreationError` is renamed to `types::IriCreationError`
(c6e930608f158281d059e632ffc6117bddf18ebc, c0e650c5e19f1775cf82960afc9610994afba66e).
+ The old name will be kept until the next minor version bump to keep compatibility.
* Disabled `lexical` feature of `nom` crate (a2d5bcd02e02e80af1c4fc8c14d768ca519ef467).
+ This reduces indirect dependencies.
* Migrate code generator from proc-macro crate to non-proc-macro one
(363337e720a9fdfa7e17153ffc63192bd49f7cc3).
+ This reduces indirect dependencies, and may also reduce compilation time.

## [0.2.0]

* Use nom 5.0.0.
Expand Down Expand Up @@ -46,7 +73,8 @@

Totally rewritten.

[Unreleased]: <https://github.com/lo48576/iri-string/compare/v0.2.0...develop>
[Unreleased]: <https://github.com/lo48576/iri-string/compare/v0.2.1...develop>
[0.2.1]: <https://github.com/lo48576/iri-string/releases/tag/v0.2.1>
[0.2.0]: <https://github.com/lo48576/iri-string/releases/tag/v0.2.0>
[0.2.0-beta.1]: <https://github.com/lo48576/iri-string/releases/tag/v0.2.0-beta.1>
[0.2.0-beta.0]: <https://github.com/lo48576/iri-string/releases/tag/v0.2.0-beta.0>
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "iri-string"
version = "0.2.0"
version = "0.2.1"
authors = ["YOSHIOKA Takuma <lo48576@hard-wi.red>"]
edition = "2018"
license = "MIT OR Apache-2.0"
Expand All @@ -13,9 +13,9 @@ keywords = ["IRI", "URI"]
all-features = true

[dependencies]
custom-slice-macros = "0.1.1"
nom = "5"
nom = { version = "5", default-features = false, features = ["std"] }
serde = { version = "1", features = ["derive"], optional = true }
validated-slice = "0.2.0"

[badges]
maintenance = { status = "experimental" }
Expand Down
10 changes: 9 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
//! String types for [IRI](https://tools.ietf.org/html/rfc3987).
//! String types for [RFC 3987 IRI][RFC 3987].
//!
//! Note that this crate does not have any extra knowledge about protocols.
//! Comparisons between IRI strings by `PartialEq` and `Eq` is implemented as [simple string
//! comparison](https://tools.ietf.org/html/rfc3986#section-6.2.1).
//! You should implement by yourself or use another crate to use such extra knowledge to compare
//! IRIs.
//!
//! [RFC 3987]: https://tools.ietf.org/html/rfc3987
#![warn(missing_docs)]
#![warn(clippy::missing_docs_in_private_items)]

Expand Down
6 changes: 5 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@
//! Currently not implemented :-P.

pub use self::iri::{
AbsoluteIriStr, AbsoluteIriString, CreationError, IriFragmentStr, IriFragmentString,
AbsoluteIriStr, AbsoluteIriString, IriCreationError, IriFragmentStr, IriFragmentString,
IriReferenceStr, IriReferenceString, IriStr, IriString, RelativeIriStr, RelativeIriString,
};

#[macro_use]
mod macros;

mod iri;

/// Error on conversion into an IRI type.
#[deprecated(since = "0.2.1", note = "Renamed to `IriCreationError`")]
pub type CreationError<T> = IriCreationError<T>;
2 changes: 1 addition & 1 deletion src/types/iri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

pub use self::{
absolute::{AbsoluteIriStr, AbsoluteIriString},
error::CreationError,
error::IriCreationError,
fragment::{IriFragmentStr, IriFragmentString},
normal::{IriStr, IriString},
reference::{IriReferenceStr, IriReferenceString},
Expand Down

0 comments on commit 0d5f85b

Please sign in to comment.