Skip to content

Commit

Permalink
Release 0.7.12
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 5, 2021
1 parent 64241ee commit 13948eb
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 40 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](https://semver.org).

<!--
Note: In this file, do not use the hard wrap in the middle of a sentence for compatibility with GitHub comment style markdown rendering.
-->

## [Unreleased]

## [0.7.12] - 2021-01-05

- Exclude unneeded files from crates.io.

## [0.7.11] - 2020-12-23

- [Add support for `tokio1::{AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead}`.](https://github.com/taiki-e/auto_enums/pull/122)
Expand Down Expand Up @@ -333,7 +341,8 @@ This project adheres to [Semantic Versioning](https://semver.org).

Initial release

[Unreleased]: https://github.com/taiki-e/auto_enums/compare/v0.7.11...HEAD
[Unreleased]: https://github.com/taiki-e/auto_enums/compare/v0.7.12...HEAD
[0.7.12]: https://github.com/taiki-e/auto_enums/compare/v0.7.11...v0.7.12
[0.7.11]: https://github.com/taiki-e/auto_enums/compare/v0.7.10...v0.7.11
[0.7.10]: https://github.com/taiki-e/auto_enums/compare/v0.7.9...v0.7.10
[0.7.9]: https://github.com/taiki-e/auto_enums/compare/v0.7.8...v0.7.9
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auto_enums"
version = "0.7.11"
version = "0.7.12"
authors = ["Taiki Endo <te316e89@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
Expand Down Expand Up @@ -82,8 +82,8 @@ trusted_len = ["auto_enums_derive/trusted_len"]

# NB: futures*, tokio*, serde, and rayon are public dependencies.
[dependencies]
auto_enums_core = { version = "=0.7.11", path = "core", default-features = false }
auto_enums_derive = { version = "=0.7.11", path = "derive", default-features = false }
auto_enums_core = { version = "=0.7.12", path = "core", default-features = false }
auto_enums_derive = { version = "=0.7.12", path = "derive", default-features = false }

[dev-dependencies]
rustversion = "1"
Expand Down
46 changes: 12 additions & 34 deletions ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,18 @@
set -euo pipefail
IFS=$'\n\t'

# A list of paths to the crate to be published.
# It will be published in the order listed.
MEMBERS=(
"core"
"derive"
"."
)

function error {
echo "error: $*" >&2
}
cd "$(cd "$(dirname "${0}")" && pwd)"/..

function retry() {
local -i max_retry=${1}
local -i count=0
while ! eval "${2}"; do
((count++))
if ((count > max_retry)); then
error "${3}"
exit 1
fi
echo "info: retry after $((10 * count)) seconds"
sleep $((10 * count))
done
}
set -x

cd "$(cd "$(dirname "${0}")" && pwd)"/..
(
cd core
cargo publish
)
(
cd derive
cargo publish
)

# publishing
for member in "${MEMBERS[@]}"; do
(
cd "${member}"
pwd
echo "info: running 'cargo publish ${dryrun:-}'"
retry 2 "cargo publish ${dryrun:-}" "unable to publish ${member}"
)
done
sleep 30
cargo publish
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auto_enums_core"
version = "0.7.11"
version = "0.7.12"
authors = ["Taiki Endo <te316e89@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auto_enums_derive"
version = "0.7.11"
version = "0.7.12"
authors = ["Taiki Endo <te316e89@gmail.com>"]
edition = "2018"
license = "Apache-2.0 OR MIT"
Expand Down

0 comments on commit 13948eb

Please sign in to comment.