mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
parent
cde387d7e7
commit
555c97b313
16
.appveyor.yml
Normal file
16
.appveyor.yml
Normal 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%
|
28
.travis.yml
28
.travis.yml
@ -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
|
||||
|
34
README.md
34
README.md
@ -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]
|
||||
|
||||
[](https://travis-ci.org/tokio-rs/tokio-core)
|
||||
[](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)
|
||||
[](https://travis-ci.org/tokio-rs/tokio)
|
||||
[](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
|
||||
|
||||
|
15
appveyor.yml
15
appveyor.yml
@ -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
|
Loading…
x
Reference in New Issue
Block a user