From 6cf7a35bb0bed910975dac6000f6d5da37f51f2c Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 11 Jan 2019 15:08:54 -0800 Subject: [PATCH] Bump version to v0.4.2 --- CHANGELOG.md | 4 ++++ Cargo.toml | 13 +++++++++++-- LICENSE | 2 +- README.md | 4 ++-- src/lib.rs | 9 ++++----- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c7828..9a222b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.4.2 (January 11, 2019) + +* Add `Slab::drain` (#56). + # 0.4.1 (July 15, 2018) * Improve `reserve` and `reserve_exact` (#37). diff --git a/Cargo.toml b/Cargo.toml index d1c08c6..88da41f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,20 @@ [package] name = "slab" -version = "0.4.1" +# When releasing to crates.io: +# - Update version number +# - lib.rs: html_root_url. +# - README.md +# - Update CHANGELOG.md +# - Update doc URL. +# - Cargo.toml +# - README.md +# - Create git tag +version = "0.4.2" license = "MIT" authors = ["Carl Lerche "] description = "Pre-allocated storage for a uniform data type" -documentation = "https://docs.rs/slab" +documentation = "https://docs.rs/slab/0.4.2/slab/" homepage = "https://github.com/carllerche/slab" repository = "https://github.com/carllerche/slab" readme = "README.md" diff --git a/LICENSE b/LICENSE index 58fb29a..819ce21 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2018 Carl Lerche +Copyright (c) 2019 Carl Lerche Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated diff --git a/README.md b/README.md index b7aa209..2609ffb 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Pre-allocated storage for a uniform data type. [![Crates.io](https://img.shields.io/crates/v/slab.svg?maxAge=2592000)](https://crates.io/crates/slab) [![Build Status](https://travis-ci.org/carllerche/slab.svg?branch=master)](https://travis-ci.org/carllerche/slab) -[Documentation](https://docs.rs/slab) +[Documentation](https://docs.rs/slab/0.4.2/slab/) ## Usage @@ -13,7 +13,7 @@ To use `slab`, first add this to your `Cargo.toml`: ```toml [dependencies] -slab = "0.4" +slab = "0.4.2" ``` Next, add this to your crate: diff --git a/src/lib.rs b/src/lib.rs index 87cd3e9..f6e9f8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,7 @@ -//! Pre-allocated storage for a uniform data type. +#![deny(warnings, missing_docs, missing_debug_implementations, unreachable_pub)] +#![doc(html_root_url = "https://docs.rs/slab/0.4.2")] +#![crate_name = "slab"]//! Pre-allocated storage for a uniform data type. + //! //! `Slab` provides pre-allocated storage for a single data type. If many values //! of a single type are being allocated, it can be more efficient to @@ -98,10 +101,6 @@ //! //! [`Slab::with_capacity`]: struct.Slab.html#with_capacity -#![deny(warnings, missing_docs, missing_debug_implementations, unreachable_pub)] -#![doc(html_root_url = "https://docs.rs/slab/0.4.1")] -#![crate_name = "slab"] - use std::iter::IntoIterator; use std::ops; use std::vec;