diff --git a/Cargo.toml b/Cargo.toml index 70af68465..e3bfdabd7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "itertools" -version = "0.12.1" +version = "0.13.0" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-itertools/itertools" diff --git a/README.md b/README.md index 9acac2d37..24059e514 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ How to use with Cargo: ```toml [dependencies] -itertools = "0.12.1" +itertools = "0.13.0" ``` How to use in your crate: diff --git a/src/sources.rs b/src/sources.rs index a7f51e52f..0cfd79d5f 100644 --- a/src/sources.rs +++ b/src/sources.rs @@ -98,6 +98,7 @@ where /// vec![1, 1, 2, 3, 5, 8, 13, 21]); /// assert_eq!(fibonacci.last(), Some(2_971_215_073)) /// ``` +#[deprecated(note = "Use std from_fn() instead", since = "0.13.0")] pub fn unfold(initial_state: St, f: F) -> Unfold where F: FnMut(&mut St) -> Option, @@ -118,6 +119,7 @@ where /// See [`unfold`](crate::unfold) for more information. #[derive(Clone)] #[must_use = "iterators are lazy and do nothing unless consumed"] +#[deprecated(note = "Use std from_fn() instead", since = "0.13.0")] pub struct Unfold { f: F, /// Internal state that will be passed to the closure on the next iteration