Skip to content

Commit

Permalink
Merge pull request #154 from feed-rs/update-deps
Browse files Browse the repository at this point in the history
Update deps
  • Loading branch information
markpritchard committed Sep 27, 2022
2 parents b050a69 + 6fdb026 commit 6f6dba2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
# Test stable + version used in freedesktop sdk - tracks https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/blob/master/elements/components/rust.bst#L130
rust: [stable, 1.59.0]
rust: [stable, 1.61.0]
experimental: [false]

# also test on beta + nightly for advance warning of breakage
Expand Down
4 changes: 2 additions & 2 deletions feed-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ chrono = { version = "0.4" }
lazy_static = "1.4"
mime = "0.3"
quick-xml = { version = "0.23", features = ["encoding"] }
regex = "1.5"
regex = "1.6"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
siphasher = "0.3"
url = "2.2"
url = "2.3"
uuid = { version = "1.1", features = ["v4"] }
26 changes: 13 additions & 13 deletions feed-rs/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl Feed {
}

/// Type of a feed (RSS, Atom etc)
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum FeedType {
Atom,
JSON,
Expand Down Expand Up @@ -411,7 +411,7 @@ impl Entry {
///
/// [Atom spec]: http://www.atomenabled.org/developers/syndication/#category
/// [RSS 2 spec]: https://validator.w3.org/feed/docs/rss2.html#ltcategorygtSubelementOfLtitemgt
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Category {
/// The category as a human readable string
/// * Atom (required): Identifies the category.
Expand Down Expand Up @@ -451,7 +451,7 @@ impl Category {
///
/// [Atom spec]: http://www.atomenabled.org/developers/syndication/#contentElement
/// [RSS 2.0]: https://validator.w3.org/feed/docs/rss2.html#ltenclosuregtSubelementOfLtitemgt
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Content {
/// Atom
/// * If the type attribute ends in +xml or /xml, then an xml document of this type is contained inline.
Expand Down Expand Up @@ -507,7 +507,7 @@ impl Content {
/// Information on the tools used to generate the feed
///
/// Atom: Identifies the software used to generate the feed, for debugging and other purposes.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Generator {
/// Atom: Additional data
/// RSS 2: A string indicating the program used to generate the channel.
Expand Down Expand Up @@ -546,7 +546,7 @@ impl Generator {
/// [Atom spec]: http://www.atomenabled.org/developers/syndication/#optionalFeedElements
/// [RSS 2 spec]: https://validator.w3.org/feed/docs/rss2.html#ltimagegtSubelementOfLtchannelgt
/// [RSS 1 spec]: https://validator.w3.org/feed/docs/rss1.html#s5.4
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Image {
/// Link to the image
/// * Atom: The URL to an image or logo
Expand Down Expand Up @@ -609,7 +609,7 @@ impl Image {
/// Represents a link to an associated resource for the feed or entry.
///
/// [Atom spec]: http://www.atomenabled.org/developers/syndication/#link
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct Link {
/// Link to additional content
Expand Down Expand Up @@ -792,7 +792,7 @@ impl MediaCommunity {
}

/// Represents a "media:content" item from the RSS Media spec
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct MediaContent {
/// The direct URL
pub url: Option<Url>,
Expand Down Expand Up @@ -857,7 +857,7 @@ impl MediaContent {
}

/// Represents a "media:credit" item from the RSS Media spec
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct MediaCredit {
/// The entity being credited
pub entity: String,
Expand All @@ -870,7 +870,7 @@ impl MediaCredit {
}

/// Rating of the feed, item or media within the content
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct MediaRating {
// The scheme (defaults to "simple" per the spec)
pub urn: String,
Expand All @@ -890,7 +890,7 @@ impl MediaRating {
}

/// Represents a "media:text" item from the RSS Media spec
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct MediaText {
/// The text
pub text: Text,
Expand All @@ -911,7 +911,7 @@ impl MediaText {
}

/// Represents a "media:thumbnail" item from the RSS Media spec
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct MediaThumbnail {
/// The thumbnail image
pub image: Image,
Expand All @@ -928,7 +928,7 @@ impl MediaThumbnail {
/// Represents an author, contributor etc.
///
/// [Atom spec]: http://www.atomenabled.org/developers/syndication/#person
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Person {
/// Atom: human-readable name for the person.
/// JSON Feed: human-readable name for the person.
Expand Down Expand Up @@ -964,7 +964,7 @@ impl Person {
}

/// Textual content, or link to the content, for a given entry.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Text {
pub content_type: Mime,
pub src: Option<String>,
Expand Down

0 comments on commit 6f6dba2

Please sign in to comment.