~nickbp/twitch-rss

d91f3bf3005469ce0b918c1df8966ca828cfec82 — Nick Parker 3 months ago a8c9d94
Clean up HTML on RSS item content, update dependencies
3 files changed, 39 insertions(+), 32 deletions(-)

M Cargo.lock
M Cargo.toml
M src/rss.rs
M Cargo.lock => Cargo.lock +36 -29
@@ 446,9 446,9 @@ dependencies = [
 "hkdf",
 "hmac",
 "percent-encoding",
 "rand 0.8.3",
 "rand 0.8.4",
 "sha2",
 "time 0.2.26",
 "time 0.2.27",
 "version_check",
]



@@ 823,11 823,12 @@ dependencies = [

[[package]]
name = "git-testament"
version = "0.1.10"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a557b5980430b0d46578f4007a104641bebd42144e22579396c51510dbd51686"
checksum = "096cb9c8aa6f1924d079bf417f1d1685286958ff362fa58ae4d65a53ffec6c02"
dependencies = [
 "git-testament-derive",
 "no-std-compat",
]

[[package]]


@@ 1061,6 1062,12 @@ dependencies = [
]

[[package]]
name = "no-std-compat"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c"

[[package]]
name = "nom"
version = "5.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"


@@ 1102,9 1109,9 @@ dependencies = [

[[package]]
name = "once_cell"
version = "1.7.2"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3"
checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56"

[[package]]
name = "opaque-debug"


@@ 1164,14 1171,14 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"

[[package]]
name = "polling"
version = "2.0.3"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fc12d774e799ee9ebae13f4076ca003b40d18a11ac0f3641e6f899618580b7b"
checksum = "92341d779fa34ea8437ef4d82d440d5e1ce3f3ff7f824aa64424cd481f9a1f25"
dependencies = [
 "cfg-if",
 "libc",
 "log",
 "wepoll-sys",
 "wepoll-ffi",
 "winapi",
]



@@ 1247,14 1254,14 @@ dependencies = [

[[package]]
name = "rand"
version = "0.8.3"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e"
checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8"
dependencies = [
 "libc",
 "rand_chacha 0.3.1",
 "rand_core 0.6.2",
 "rand_hc 0.3.0",
 "rand_core 0.6.3",
 "rand_hc 0.3.1",
]

[[package]]


@@ 1274,7 1281,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
 "ppv-lite86",
 "rand_core 0.6.2",
 "rand_core 0.6.3",
]

[[package]]


@@ 1288,9 1295,9 @@ dependencies = [

[[package]]
name = "rand_core"
version = "0.6.2"
version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7"
checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7"
dependencies = [
 "getrandom 0.2.3",
]


@@ 1306,11 1313,11 @@ dependencies = [

[[package]]
name = "rand_hc"
version = "0.3.0"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73"
checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7"
dependencies = [
 "rand_core 0.6.2",
 "rand_core 0.6.3",
]

[[package]]


@@ 1346,7 1353,7 @@ dependencies = [
 "async-lock",
 "async-timer",
 "log",
 "rand 0.8.3",
 "rand 0.8.4",
]

[[package]]


@@ 1753,9 1760,9 @@ dependencies = [

[[package]]
name = "time"
version = "0.2.26"
version = "0.2.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08a8cbfbf47955132d0202d1662f49b2423ae35862aee471f3ba4b133358f372"
checksum = "4752a97f8eebd6854ff91f1c1824cd6160626ac4bd44287f7f4ea2035a02a242"
dependencies = [
 "const_fn",
 "libc",


@@ 1778,9 1785,9 @@ dependencies = [

[[package]]
name = "time-macros-impl"
version = "0.1.1"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5c3be1edfad6027c69f5491cf4cb310d1a71ecd6af742788c6ff8bced86b8fa"
checksum = "fd3c141a1b43194f3f56a1411225df8646c55781d5f26db825b3d98507eb482f"
dependencies = [
 "proc-macro-hack",
 "proc-macro2",


@@ 1806,9 1813,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"

[[package]]
name = "tokio"
version = "1.6.1"
version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0a38d31d7831c6ed7aad00aa4c12d9375fd225a6dd77da1d25b707346319a975"
checksum = "5fb2ed024293bb19f7a5dc54fe83bf86532a44c12a2bb8ba40d64a4509395ca2"
dependencies = [
 "autocfg",
 "pin-project-lite 0.2.6",


@@ 2106,10 2113,10 @@ dependencies = [
]

[[package]]
name = "wepoll-sys"
version = "3.0.1"
name = "wepoll-ffi"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fcb14dea929042224824779fbc82d9fab8d2e6d3cbc0ac404de8edf489e77ff"
checksum = "d743fdedc5c64377b5fc2bc036b01c7fd642205a0d96356034ae3404d49eb7fb"
dependencies = [
 "cc",
]

M Cargo.toml => Cargo.toml +2 -2
@@ 1,6 1,6 @@
[package]
name = "twitch-rss"
version = "0.1.0"
version = "0.1.1"
authors = ["Nick Parker <nick@nickbp.com>"]
license-file = "LICENCE.md"
edition = "2018"


@@ 16,7 16,7 @@ rss = "1.10"
# async support
async-std = "1.8"
# display SHA version
git-testament = "0.1"
git-testament = "0.2"
# http client
serde = "1.0"
surf = { version = "2.2", default-features = false, features = ["h1-client-rustls"] }

M src/rss.rs => src/rss.rs +1 -1
@@ 15,7 15,7 @@ pub fn to_rss(
        item_builder
            .title(format!("{} ({})", video.title, video.duration))
            .content(format!(
                "<p><img src='{}'/></p><p>{}</p>",
                "<p><img src=\"{}\"></p><p>{}</p>",
                video
                    .thumbnail_url
                    .replace("%{width}", thumbnail_width)