diff --git a/.travis.yml b/.travis.yml index c4e5c98..5fe60a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ language: rust +rust: + - nightly + - 1.0.0-beta + after_success: | [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ] && diff --git a/Cargo.toml b/Cargo.toml index e86bad8..a026c71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "smtp" -version = "0.0.10" +version = "0.0.11" description = "Simple SMTP client" readme = "README.md" documentation = "http://amousset.github.io/rust-smtp/smtp/" @@ -15,6 +15,8 @@ keywords = ["email", "smtp", "mailer"] time = "*" uuid = "*" log = "*" -env_logger = "*" rustc-serialize = "*" rust-crypto = "*" + +[dev-dependencies] +env_logger = "*" diff --git a/README.md b/README.md index 9232257..7982695 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,6 @@ rust-smtp [![Build Status](https://travis-ci.org/amousset/rust-smtp.svg?branch=m This library implements a simple SMTP client. See the [documentation](http://amousset.github.io/rust-smtp/smtp/) for more information. -Rust versions -------------- - -This library is designed for Rust 1.0.0-nightly (master). - Install ------- @@ -19,24 +14,6 @@ To use this library, add the following to your `Cargo.toml`: smtp = "*" ``` -Otherwise, you can clone this repository and run `cargo build`. - -Example -------- - -There is an example command-line program included: -```sh -$ cargo test -$ env RUST_LOG=info cargo run --example client -- -s "My subject" -r sender@localhost recipient@localhost < email.txt -INFO:smtp::sender: connection established to 127.0.0.1:25 -INFO:smtp::sender: 1d0467fb21b2454f90a85dd1e0eda839: from= -INFO:smtp::sender: 1d0467fb21b2454f90a85dd1e0eda839: to= -INFO:smtp::sender: 1d0467fb21b2454f90a85dd1e0eda839: conn_use=1, size=1889, status=sent (2.0.0 Ok: queued as BAA9C1C0055) -INFO:client: Email sent successfully -``` - -Run `cargo run --example client -- -h` to get a list of available options. - Tests -----