Skip to content

Commit

Permalink
Merge pull request #128 from epage/since
Browse files Browse the repository at this point in the history
docs: Update deprecations for not being nom v8
  • Loading branch information
epage committed Feb 3, 2023
2 parents bc143cc + ba5bb77 commit 2f52238
Show file tree
Hide file tree
Showing 13 changed files with 209 additions and 209 deletions.
6 changes: 3 additions & 3 deletions src/bits/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::IResult;
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bits::take`][crate::bits::take]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bits::take`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bits::take`")]
pub fn take<I, O, C, E: ParseError<(I, usize)>>(
count: C,
) -> impl Fn((I, usize)) -> IResult<(I, usize), O, E>
Expand Down Expand Up @@ -99,7 +99,7 @@ where
/// Generates a parser taking `count` bits and comparing them to `pattern`
///
/// **WARNING:** Deprecated, replaced with [`winnow::bits::tag`][crate::bits::tag]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bits::tag`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bits::tag`")]
pub fn tag<I, O, C, E: ParseError<(I, usize)>>(
pattern: O,
count: C,
Expand Down Expand Up @@ -149,7 +149,7 @@ where
/// assert_eq!(parse(([0b10000000].as_ref(), 1)), Ok((([0b10000000].as_ref(), 2), false)));
/// ```
/// **WARNING:** Deprecated, replaced with [`winnow::bits::bool`][crate::bits::bool]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bits::bool`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bits::bool`")]
pub fn bool<I, E: ParseError<(I, usize)>>(input: (I, usize)) -> IResult<(I, usize), bool, E>
where
I: Input<Token = u8> + AsBytes,
Expand Down
6 changes: 3 additions & 3 deletions src/bits/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::IResult;
///
/// **WARNING:** Deprecated, replaced with [`winnow::bits::take`][crate::bits::take] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bits::take` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take<I, O, C, E: ParseError<(I, usize)>>(
Expand Down Expand Up @@ -77,7 +77,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bits::tag`][crate::bits::tag] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bits::tag` with input wrapped in `winnow::input::Streaming`"
)]
pub fn tag<I, O, C, E: ParseError<(I, usize)>>(
Expand Down Expand Up @@ -129,7 +129,7 @@ where
/// assert_eq!(parse(([0b10000000].as_ref(), 1)), Ok((([0b10000000].as_ref(), 2), false)));
/// ```
/// **WARNING:** Deprecated, replaced with [`winnow::bits::bool`][crate::bits::bool]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bits::bool`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bits::bool`")]
pub fn bool<I, E: ParseError<(I, usize)>>(input: (I, usize)) -> IResult<(I, usize), bool, E>
where
I: Input<Token = u8> + AsBytes,
Expand Down
28 changes: 14 additions & 14 deletions src/bytes/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::tag`][crate::bytes::tag]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::tag`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::tag`")]
pub fn tag<T, I, Error: ParseError<I>>(
tag: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -94,7 +94,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::tag_no_case`][crate::bytes::tag_no_case]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::tag_no_case`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::tag_no_case`")]
pub fn tag_no_case<T, I, Error: ParseError<I>>(
tag: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -177,7 +177,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_till1`][crate::bytes::take_till1]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_till1`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_till1`")]
pub fn is_not<T, I, Error: ParseError<I>>(
arr: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -223,7 +223,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while1`][crate::bytes::take_while1`]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_while1`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_while1`")]
pub fn is_a<T, I, Error: ParseError<I>>(
arr: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -267,7 +267,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while`][crate::bytes::take_while]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_while`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_while`")]
pub fn take_while<T, I, Error: ParseError<I>>(
list: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -311,7 +311,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while1`][crate::bytes::take_while1]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_while1`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_while1`")]
pub fn take_while1<T, I, Error: ParseError<I>>(
list: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -360,7 +360,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while_m_n`][crate::bytes::take_while_m_n]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_while_m_n`"
)]
pub fn take_while_m_n<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -445,7 +445,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_till`][crate::bytes::take_till]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_till`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_till`")]
#[allow(clippy::redundant_closure)]
pub fn take_till<T, I, Error: ParseError<I>>(
list: T,
Expand Down Expand Up @@ -491,7 +491,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_till1`][crate::bytes::take_till1]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_till1`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_till1`")]
#[allow(clippy::redundant_closure)]
pub fn take_till1<T, I, Error: ParseError<I>>(
list: T,
Expand Down Expand Up @@ -546,7 +546,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take`][crate::bytes::take]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take`")]
pub fn take<C, I, Error: ParseError<I>>(
count: C,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -591,7 +591,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_until`][crate::bytes::take_until]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_until`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_until`")]
pub fn take_until<T, I, Error: ParseError<I>>(
tag: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -637,7 +637,7 @@ where
/// ```
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_until1`][crate::bytes::take_until1]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::bytes::take_until1`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::bytes::take_until1`")]
pub fn take_until1<T, I, Error: ParseError<I>>(
tag: T,
) -> impl Fn(I) -> IResult<I, <I as Input>::Slice, Error>
Expand Down Expand Up @@ -684,7 +684,7 @@ where
///
///
/// **WARNING:** Deprecated, replaced with [`winnow::character::escaped`][crate::character::escaped]
#[deprecated(since = "8.0.0", note = "Replaced with `winnow::character::escaped`")]
#[deprecated(since = "0.1.0", note = "Replaced with `winnow::character::escaped`")]
pub fn escaped<'a, I: 'a, Error, F, G, O1, O2>(
mut normal: F,
control_char: char,
Expand Down Expand Up @@ -802,7 +802,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::character::escaped_transform`][crate::character::escaped_transform]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::character::escaped_transform`"
)]
pub fn escaped_transform<I, Error, F, G, O1, O2, ExtendItem, Output>(
Expand Down
28 changes: 14 additions & 14 deletions src/bytes/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::tag`][crate::bytes::tag] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::tag` with input wrapped in `winnow::input::Streaming`"
)]
pub fn tag<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -97,7 +97,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::tag_no_case`][crate::bytes::tag_no_case] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::tag_no_case` with input wrapped in `winnow::input::Streaming`"
)]
pub fn tag_no_case<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -192,7 +192,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_till1`][crate::bytes::take_till1] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_till1` with input wrapped in `winnow::input::Streaming`"
)]
pub fn is_not<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -243,7 +243,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while1`][crate::bytes::take_while1] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_while1` with input wrapped in `winnow::input::Streaming`"
)]
pub fn is_a<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -293,7 +293,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while`][crate::bytes::take_while] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_while` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take_while<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -344,7 +344,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while1`][crate::bytes::take_while1] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_while1` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take_while1<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -397,7 +397,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_while_m_n`][crate::bytes::take_while_m_n] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_while_m_n` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take_while_m_n<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -488,7 +488,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_till`][crate::bytes::take_till] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_till` with input wrapped in `winnow::input::Streaming`"
)]
#[allow(clippy::redundant_closure)]
Expand Down Expand Up @@ -538,7 +538,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_till1`][crate::bytes::take_till1] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_till1` with input wrapped in `winnow::input::Streaming`"
)]
#[allow(clippy::redundant_closure)]
Expand Down Expand Up @@ -590,7 +590,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take`][crate::bytes::take] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take<C, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -641,7 +641,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_until`][crate::bytes::take_until] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_until` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take_until<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -693,7 +693,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::bytes::take_until1`][crate::bytes::take_until1] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::bytes::take_until1` with input wrapped in `winnow::input::Streaming`"
)]
pub fn take_until1<T, I, Error: ParseError<I>>(
Expand Down Expand Up @@ -744,7 +744,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::character::escaped`][crate::character::escaped] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::character::escaped` with input wrapped in `winnow::input::Streaming`"
)]
pub fn escaped<I, Error, F, G, O1, O2>(
Expand Down Expand Up @@ -858,7 +858,7 @@ where
///
/// **WARNING:** Deprecated, replaced with [`winnow::character::escaped_transform`][crate::character::escaped_transform] with input wrapped in [`winnow::input::Streaming`][crate::input::Streaming]
#[deprecated(
since = "8.0.0",
since = "0.1.0",
note = "Replaced with `winnow::character::escaped_transform` with input wrapped in `winnow::input::Streaming`"
)]
pub fn escaped_transform<I, Error, F, G, O1, O2, ExtendItem, Output>(
Expand Down

0 comments on commit 2f52238

Please sign in to comment.