mirror of
https://github.com/openharmony/third_party_rust_slab.git
synced 2026-06-30 20:47:55 -04:00
Bump version to v0.4.2
This commit is contained in:
@@ -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).
|
||||
|
||||
+11
-2
@@ -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 <me@carllerche.com>"]
|
||||
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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@ Pre-allocated storage for a uniform data type.
|
||||
[](https://crates.io/crates/slab)
|
||||
[](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:
|
||||
|
||||
+4
-5
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user