-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Result type. Return also the more general DateTime<FixedOffset> type instead of DateTime<Utc> in parse_from_str(). For failed tests: also output pretty-printed export XML for easier comparison with expected output. Code refactoring. Edit install instructions and usage. Edit comments.
- Loading branch information
Showing
16 changed files
with
802 additions
and
304 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "xmltv2rss" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
authors = ["willemw12 <[email protected]>"] | ||
edition = "2021" | ||
license = "GPL-3.0-or-later" | ||
|
@@ -9,11 +9,9 @@ homepage = "https://github.com/willemw12/xmltv2rss-rs" | |
#documentation = "https://github.com/willemw12/xmltv2rss-rs" | ||
repository = "https://github.com/willemw12/xmltv2rss-rs" | ||
readme = "README.md" | ||
keywords = ["epg", "rss", "tv", "xmltv"] | ||
keywords = ["atom", "epg", "rss", "tv", "xmltv"] | ||
categories = ["command-line-utilities"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
# [[bin]] | ||
# name = "xmltv2rss" | ||
# required-features = ["build-binary"] | ||
|
@@ -22,11 +20,16 @@ categories = ["command-line-utilities"] | |
# build-binary = ["dep:clap"] | ||
|
||
[dependencies] | ||
# clap = { version = "4.5.4", features = ["cargo", "derive"], optional = true } | ||
clap = { version = "4.5.4", features = ["cargo", "derive"] } | ||
atom_syndication = "0.12.3" | ||
chrono = "0.4.38" | ||
# clap = { version = "...", features = ["cargo", "derive"], optional = true } | ||
clap = { version = "4.5.4", features = ["cargo", "derive"] } | ||
derive_builder = "0.20.0" | ||
quick-xml = { version = "0.31", features = ["serialize"] } | ||
rss = "2.0.7" | ||
thiserror = "1.0.59" | ||
rss = "2.0.8" | ||
thiserror = "1.0.61" | ||
uuid = { version = "1.8.0", features = ["v4", "macro-diagnostics", "serde"] } | ||
xmltv = "0.9.6" | ||
|
||
[dev-dependencies] | ||
pretty_assertions = "1.4.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use thiserror::Error; | ||
|
||
pub type Result<T> = std::result::Result<T, Error>; | ||
|
||
#[derive(Error, Debug)] | ||
pub enum Error { | ||
#[error(transparent)] | ||
Atom(#[from] atom_syndication::Error), | ||
|
||
#[error(transparent)] | ||
De(#[from] quick_xml::DeError), | ||
|
||
#[error(transparent)] | ||
Io(#[from] std::io::Error), | ||
|
||
#[error(transparent)] | ||
OptionsBuilder(#[from] crate::export::OptionsBuilderError), | ||
|
||
#[error(transparent)] | ||
Parse(#[from] chrono::ParseError), | ||
|
||
#[error(transparent)] | ||
Rss(#[from] rss::Error), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.