Expand CI coverage and update README (#80)

Closes #64
This commit is contained in:
Alex Crichton 2018-01-05 10:43:37 -06:00 committed by Carl Lerche
parent cde387d7e7
commit 555c97b313
4 changed files with 39 additions and 54 deletions

16
.appveyor.yml Normal file
View File

@ -0,0 +1,16 @@
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
- rustup-init.exe -y --default-host x86_64-pc-windows-msvc
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- if NOT "%TARGET%" == "x86_64-pc-windows-msvc" rustup target add %TARGET%
- rustc -V
- cargo -V
build: false
test_script:
- cargo test --target %TARGET%

View File

@ -1,22 +1,23 @@
---
language: rust
sudo: false
rust:
- stable
- beta
- nightly
matrix:
include:
- rust: stable
- os: osx
- rust: beta
- rust: nightly
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
- rust: nightly
before_script:
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
script:
- cargo doc --no-deps --all-features
after_success:
- travis-cargo doc-upload
script:
- cargo build
- cargo test
- cargo doc --no-deps
after_success:
- travis-cargo --only nightly doc-upload --branch new-crate
env:
global:
@ -25,6 +26,3 @@ env:
notifications:
email:
on_success: never
os:
- linux

View File

@ -1,34 +1,20 @@
# tokio-core
# tokio
Core I/O and event loop abstraction for asynchronous I/O in Rust built on
`futures` and `mio`.
A work-in-progress rearchitecting of the [tokio-core] crate in line with
[tokio-rs/tokio-rfcs#3][rfc]
[![Build Status](https://travis-ci.org/tokio-rs/tokio-core.svg?branch=master)](https://travis-ci.org/tokio-rs/tokio-core)
[![Build status](https://ci.appveyor.com/api/projects/status/caxmxbg8181kk9mq/branch/master?svg=true)](https://ci.appveyor.com/project/carllerche/tokio-core)
[tokio-core]: https://github.com/tokio-rs/tokio-core
[rfc]: https://github.com/tokio-rs/tokio-rfcs/pull/3
[Documentation](https://docs.rs/tokio-core)
[![Build Status](https://travis-ci.org/tokio-rs/tokio.svg?branch=new-crate)](https://travis-ci.org/tokio-rs/tokio)
[![Build status](https://ci.appveyor.com/api/projects/status/uxiinkgipvy6ehrj/branch/new-crate?svg=true)](https://ci.appveyor.com/project/alexcrichton/tokio/branch/new-crate)
[Tutorial](https://tokio.rs/)
[Documentation](https://tokio-rs.github.io/tokio)
## Usage
First, add this to your `Cargo.toml`:
```toml
[dependencies]
tokio-core = "0.1"
```
Next, add this to your crate:
```rust
extern crate tokio;
```
You can find extensive documentation and examples about how to use this crate
online at [https://tokio.rs](https://tokio.rs) as well as the `examples` folder
in this repository. The [API documentation](https://docs.rs/tokio-core) is also
a great place to get started for the nitty-gritty.
This project is a **work in progress**, more information will be added here as
it progresses.
# License

View File

@ -1,15 +0,0 @@
environment:
matrix:
- TARGET: x86_64-pc-windows-msvc
install:
- curl -sSf -o rustup-init.exe https://win.rustup.rs/
- rustup-init.exe -y --default-host %TARGET%
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- rustc -V
- cargo -V
build: false
test_script:
- cargo build
- cargo test