diff options
author | Nadrieril | 2019-04-14 23:14:45 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-14 23:14:45 +0200 |
commit | 74e59290247a7201c17dd748b7f554716ad16691 (patch) | |
tree | 767a9b16619a8e0428e57f66d497d44149503141 | |
parent | e5bc3586fc83768a72260fa800bf86be827b9519 (diff) |
improved_slice_patterns: prepare for publishing
Diffstat (limited to '')
-rw-r--r-- | Cargo.lock | 4 | ||||
-rw-r--r-- | improved_slice_patterns/Cargo.toml | 5 | ||||
-rw-r--r-- | improved_slice_patterns/src/lib.rs | 7 |
3 files changed, 10 insertions, 6 deletions
@@ -83,7 +83,7 @@ name = "dhall_core" version = "0.1.0" dependencies = [ "dhall_generated_parser 0.1.0", - "improved_slice_patterns 0.1.0", + "improved_slice_patterns 1.0.0", "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "pest 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -147,7 +147,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "improved_slice_patterns" -version = "0.1.0" +version = "1.0.0" [[package]] name = "itertools" diff --git a/improved_slice_patterns/Cargo.toml b/improved_slice_patterns/Cargo.toml index 10a43e8..7bc6ca0 100644 --- a/improved_slice_patterns/Cargo.toml +++ b/improved_slice_patterns/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "improved_slice_patterns" -version = "0.1.0" +version = "1.0.0" authors = ["Nadrieril <nadrieril@users.noreply.github.com>"] license = "MIT OR Apache-2.0" edition = "2018" +description = "A tiny crate that provides macros to help matching on Vecs and iterators using the syntax of slice_patterns" +repository = "https://github.com/Nadrieril/dhall-rust" +readme = "README.md" diff --git a/improved_slice_patterns/src/lib.rs b/improved_slice_patterns/src/lib.rs index 56547f9..3fdd9c9 100644 --- a/improved_slice_patterns/src/lib.rs +++ b/improved_slice_patterns/src/lib.rs @@ -1,7 +1,8 @@ #![feature(slice_patterns)] //! A tiny crate that provides two macros to help matching -//! on `Vec`s and iterators using [`slice_patterns`][slice_patterns] +//! on `Vec`s and iterators using the syntax of +//! [`slice_patterns`][slice_patterns] //! //! [slice_patterns]: https://doc.rust-lang.org/nightly/unstable-book/language-features/slice-patterns.html @@ -14,7 +15,7 @@ /// pattern, unless the iterator is double-ended. /// /// Example: -/// ``` +/// ```edition2018 /// use improved_slice_patterns::destructure_iter; /// /// let vec = vec![Some(1), Some(2), Some(3), None]; @@ -128,7 +129,7 @@ macro_rules! destructure_iter { /// A variable length pattern (`x..`) returns an iterator. /// /// Example: -/// ``` +/// ```edition2018 /// #![feature(slice_patterns)] /// use improved_slice_patterns::match_vec; /// |