mirror of
https://github.com/sile/hls_m3u8.git
synced 2024-11-21 14:50:59 +00:00
Merge pull request #76 from GnomedDev/update-deps
[Breaking] Update dependencies
This commit is contained in:
commit
dbf26f685e
9 changed files with 21 additions and 15 deletions
18
Cargo.toml
18
Cargo.toml
|
@ -23,21 +23,27 @@ travis-ci = { repository = "sile/hls_m3u8" }
|
||||||
chrono = { version = "0.4", optional = true }
|
chrono = { version = "0.4", optional = true }
|
||||||
backtrace = { version = "0.3", features = ["std"], optional = true }
|
backtrace = { version = "0.3", features = ["std"], optional = true }
|
||||||
|
|
||||||
derive_builder = "0.9"
|
derive_builder = "0.20"
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
||||||
derive_more = "0.99"
|
derive_more = { version = "1", features = [
|
||||||
|
"display",
|
||||||
|
"as_ref",
|
||||||
|
"from",
|
||||||
|
"deref",
|
||||||
|
"deref_mut",
|
||||||
|
] }
|
||||||
shorthand = "0.1"
|
shorthand = "0.1"
|
||||||
strum = { version = "0.17", features = ["derive"] }
|
strum = { version = "0.26.3", features = ["derive"] }
|
||||||
|
|
||||||
stable-vec = { version = "0.4" }
|
stable-vec = { version = "0.4" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
pretty_assertions = "0.6"
|
pretty_assertions = "1.4.0"
|
||||||
version-sync = "0.9"
|
version-sync = "0.9"
|
||||||
automod = "0.2"
|
automod = "1.0.14"
|
||||||
criterion = "0.3.1"
|
criterion = "0.5.1"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "bench_main"
|
name = "bench_main"
|
||||||
|
|
|
@ -57,7 +57,7 @@ pub(crate) enum Line<'a> {
|
||||||
|
|
||||||
#[allow(clippy::large_enum_variant)]
|
#[allow(clippy::large_enum_variant)]
|
||||||
#[derive(Debug, Clone, PartialEq, Display)]
|
#[derive(Debug, Clone, PartialEq, Display)]
|
||||||
#[display(fmt = "{}")]
|
#[display("{_variant}")]
|
||||||
pub(crate) enum Tag<'a> {
|
pub(crate) enum Tag<'a> {
|
||||||
ExtXVersion(tags::ExtXVersion),
|
ExtXVersion(tags::ExtXVersion),
|
||||||
ExtInf(tags::ExtInf<'a>),
|
ExtInf(tags::ExtInf<'a>),
|
||||||
|
|
|
@ -170,7 +170,7 @@ impl<'a> MediaSegment<'a> {
|
||||||
/// .duration(Duration::from_secs(4))
|
/// .duration(Duration::from_secs(4))
|
||||||
/// .uri("http://www.uri.com/")
|
/// .uri("http://www.uri.com/")
|
||||||
/// .build()?;
|
/// .build()?;
|
||||||
/// # Ok::<(), String>(())
|
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -283,7 +283,7 @@ impl<'a> ExtXMedia<'a> {
|
||||||
/// "public.accessibility.describes-music-and-sound"
|
/// "public.accessibility.describes-music-and-sound"
|
||||||
/// ))
|
/// ))
|
||||||
/// .build()?;
|
/// .build()?;
|
||||||
/// # Ok::<(), String>(())
|
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -121,7 +121,7 @@ impl<'a> ExtXSessionData<'a> {
|
||||||
/// .data(SessionData::Value("some data".into()))
|
/// .data(SessionData::Value("some data".into()))
|
||||||
/// .language("en")
|
/// .language("en")
|
||||||
/// .build()?;
|
/// .build()?;
|
||||||
/// # Ok::<(), String>(())
|
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn builder() -> ExtXSessionDataBuilder<'a> { ExtXSessionDataBuilder::default() }
|
pub fn builder() -> ExtXSessionDataBuilder<'a> { ExtXSessionDataBuilder::default() }
|
||||||
|
|
|
@ -281,7 +281,7 @@ let date_range = ExtXDateRange::builder()
|
||||||
.scte35_in("0xFC002F0000000000FF1")
|
.scte35_in("0xFC002F0000000000FF1")
|
||||||
.end_on_next(true)
|
.end_on_next(true)
|
||||||
.build()?;
|
.build()?;
|
||||||
# Ok::<(), String>(())
|
# Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
```
|
```
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
|
@ -306,7 +306,7 @@ let date_range = ExtXDateRange::builder()
|
||||||
.scte35_in("0xFC002F0000000000FF1")
|
.scte35_in("0xFC002F0000000000FF1")
|
||||||
.end_on_next(true)
|
.end_on_next(true)
|
||||||
.build()?;
|
.build()?;
|
||||||
# Ok::<(), String>(())
|
# Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
```
|
```
|
||||||
"#
|
"#
|
||||||
)]
|
)]
|
||||||
|
|
|
@ -33,7 +33,7 @@ impl<'a> ExtXKey<'a> {
|
||||||
/// .versions(vec![1, 2, 3, 4, 5])
|
/// .versions(vec![1, 2, 3, 4, 5])
|
||||||
/// .build()?,
|
/// .build()?,
|
||||||
/// );
|
/// );
|
||||||
/// # Ok::<(), String>(())
|
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -122,7 +122,7 @@ impl<'a> DecryptionKey<'a> {
|
||||||
/// .format(KeyFormat::Identity)
|
/// .format(KeyFormat::Identity)
|
||||||
/// .versions(&[1, 2, 3, 4, 5])
|
/// .versions(&[1, 2, 3, 4, 5])
|
||||||
/// .build()?;
|
/// .build()?;
|
||||||
/// # Ok::<(), String>(())
|
/// # Ok::<(), Box<dyn std::error::Error>>(())
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
@ -10,7 +10,7 @@ use crate::Error;
|
||||||
///
|
///
|
||||||
/// For example Full HD has a resolution of 1920x1080.
|
/// For example Full HD has a resolution of 1920x1080.
|
||||||
#[derive(ShortHand, Ord, PartialOrd, Debug, Clone, Copy, PartialEq, Eq, Hash, Display)]
|
#[derive(ShortHand, Ord, PartialOrd, Debug, Clone, Copy, PartialEq, Eq, Hash, Display)]
|
||||||
#[display(fmt = "{}x{}", width, height)]
|
#[display("{}x{}", width, height)]
|
||||||
#[shorthand(enable(must_use))]
|
#[shorthand(enable(must_use))]
|
||||||
pub struct Resolution {
|
pub struct Resolution {
|
||||||
/// Horizontal pixel dimension.
|
/// Horizontal pixel dimension.
|
||||||
|
|
Loading…
Reference in a new issue