Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
g1eny0ung committed Aug 17, 2024
1 parent dd19034 commit df305ba
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.0] - 2024-08-17

### Changed

- Upgrade `http` to version `1` [#17](https://github.com/g1eny0ung/parse_link_header/pull/17)

## [0.3.2] - 2022-01-11

### Changed
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parse_link_header"
version = "0.3.3"
version = "0.4.0"
authors = [
"Yue Yang <[email protected]>",
"Matthew Dharm"
Expand All @@ -18,4 +18,4 @@ license = "MIT"
http = "1"
regex = "1"
lazy_static = "1.4.0"
url = {version = "2.2.2", optional = true }
url = { version = "2.2.2", optional = true }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ In your `Cargo.toml`, add:

```toml
[dependencies]
parse_link_header = "0.3"
parse_link_header = "0.4"
```

Then:
Expand All @@ -67,7 +67,7 @@ use http::Uri;

#[derive(Debug, PartialEq)]
pub struct Link {
pub uri: Uri, // https://docs.rs/http/0.2.1/http/uri/struct.Uri.html
pub uri: Uri, // https://docs.rs/http/1.1.0/http/uri/struct.Uri.html
pub raw_uri: String,
pub queries: HashMap<String, String>,
pub params: HashMap<String, String>,
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A library for parsing HTTP Link header.
//!
//! # How to use
//! ## How to use
//!
//! ### Note for version 0.1.x
//!
Expand All @@ -18,7 +18,7 @@
//!
//! ```toml
//! [dependencies]
//! parse_link_header = "0.3"
//! parse_link_header = "0.4"
//! ```
//!
//! Then:
Expand All @@ -45,7 +45,7 @@
//!
//! #[derive(Debug, PartialEq)]
//! pub struct Link {
//! pub uri: Uri, // https://docs.rs/http/0.2.1/http/uri/struct.Uri.html
//! pub uri: Uri, // https://docs.rs/http/1.1.0/http/uri/struct.Uri.html
//! pub raw_uri: String,
//! pub queries: HashMap<String, String>,
//! pub params: HashMap<String, String>,
Expand Down Expand Up @@ -157,7 +157,7 @@ impl From<&Error> for Error {
#[derive(Debug, PartialEq)]
pub struct Link {
/// A parsed form of the URI
pub uri: Uri, // https://docs.rs/http/0.2.1/http/uri/struct.Uri.html
pub uri: Uri, // https://docs.rs/http/1.1.0/http/uri/struct.Uri.html

/// The raw text string of the URI
pub raw_uri: String,
Expand Down

0 comments on commit df305ba

Please sign in to comment.