Skip to content

Commit

Permalink
Merge branch 'master' into std-future
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche committed Jun 5, 2019
2 parents c768196 + 8d0f102 commit f6d97d1
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 13 deletions.
10 changes: 7 additions & 3 deletions ci/azure-install-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ steps:
# Linux and macOS.
- script: |
set -e
echo "Installing toolchain: $RUSTUP_TOOLCHAIN"
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
export PATH=$PATH:$HOME/.cargo/bin
rustup toolchain install $RUSTUP_TOOLCHAIN
rustup default $RUSTUP_TOOLCHAIN
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
env:
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
Expand All @@ -13,8 +15,10 @@ steps:
# Windows.
- script: |
curl -sSf -o rustup-init.exe https://win.rustup.rs
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN%
rustup-init.exe -y --default-toolchain none
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
rustup toolchain install %RUSTUP_TOOLCHAIN%
rustup default %RUSTUP_TOOLCHAIN%
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
env:
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
Expand Down
2 changes: 1 addition & 1 deletion ci/azure-test-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- template: azure-patch-crates.yml

- script: cargo check --all
displayName: cargo +nightly check --all
displayName: cargo check --all

# Check benches
- script: cargo check --benches --all
Expand Down
5 changes: 5 additions & 0 deletions tokio-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.1.6 (June 4, 2019)

### Added
- Add Sync impl for Lock (#1117).

# 0.1.5 (April 22, 2019)

### Added
Expand Down
2 changes: 1 addition & 1 deletion tokio-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Synchronization utilities

[Documentation](https://docs.rs/tokio-sync/0.1.5/tokio_sync/)
[Documentation](https://docs.rs/tokio-sync/0.1.6/tokio_sync/)

## Overview

Expand Down
6 changes: 4 additions & 2 deletions tokio-sync/src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ pub struct Lock<T> {
#[derive(Debug)]
pub struct LockGuard<T>(Lock<T>);

// As long as T: Send, it's fine to send Lock<T> to other threads.
// If T was not Send, sending a Lock<T> would be bad, since you can access T through Lock<T>.
// As long as T: Send, it's fine to send and share Lock<T> between threads.
// If T was not Send, sending and sharing a Lock<T> would be bad, since you can access T through
// Lock<T>.
unsafe impl<T> Send for Lock<T> where T: Send {}
unsafe impl<T> Sync for Lock<T> where T: Send {}
unsafe impl<T> Sync for LockGuard<T> where T: Send + Sync {}

#[derive(Debug)]
Expand Down
5 changes: 5 additions & 0 deletions tokio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
This changelog only applies to the `tokio` crate proper. Each sub crate
maintains its own changelog tracking changes made in each respective sub crate.

# 0.1.21 (May 30, 2019)

### Changed
- Bump `tokio-trace-core` version to 0.2 (#1111).

# 0.1.20 (May 14, 2019)

### Added
Expand Down
4 changes: 2 additions & 2 deletions tokio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
authors = ["Carl Lerche <me@carllerche.com>"]
license = "MIT"
readme = "README.md"
documentation = "https://docs.rs/tokio/0.1.20/tokio/"
documentation = "https://docs.rs/tokio/0.1.21/tokio/"
repository = "https://github.com/tokio-rs/tokio"
homepage = "https://tokio.rs"
description = """
Expand Down Expand Up @@ -76,7 +76,7 @@ tokio-threadpool = { version = "0.2.0", optional = true, path = "../tokio-thread
tokio-tcp = { version = "0.2.0", optional = true, path = "../tokio-tcp" }
tokio-udp = { version = "0.2.0", optional = true, path = "../tokio-udp" }
tokio-timer = { version = "0.3.0", optional = true, path = "../tokio-timer" }
tokio-trace-core = { version = "0.1", optional = true }
tokio-trace-core = { version = "0.2", optional = true }

# Needed until `reactor` is removed from `tokio`.
mio = { version = "0.6.14", optional = true }
Expand Down
8 changes: 4 additions & 4 deletions tokio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ the Rust programming language. It is:

[Website](https://tokio.rs) |
[Guides](https://tokio.rs/docs/getting-started/hello-world/) |
[API Docs](https://docs.rs/tokio/0.1.19/tokio) |
[API Docs](https://docs.rs/tokio/0.1.21/tokio) |
[Chat](https://gitter.im/tokio-rs/tokio)

## Overview
Expand All @@ -45,9 +45,9 @@ level, it provides a few major components:
These components provide the runtime components necessary for building
an asynchronous application.

[net]: https://docs.rs/tokio/0.1.19/tokio/net/index.html
[reactor]: https://docs.rs/tokio/0.1.19/tokio/reactor/index.html
[scheduler]: https://docs.rs/tokio/0.1.19/tokio/runtime/index.html
[net]: https://docs.rs/tokio/0.1.21/tokio/net/index.html
[reactor]: https://docs.rs/tokio/0.1.21/tokio/reactor/index.html
[scheduler]: https://docs.rs/tokio/0.1.21/tokio/runtime/index.html

## Example

Expand Down

0 comments on commit f6d97d1

Please sign in to comment.