From e9bf16009cd7af77e98cf0a004244d534646ae61 Mon Sep 17 00:00:00 2001 From: "Y. T. Chung" Date: Sun, 13 Dec 2015 00:24:49 +0800 Subject: [PATCH] update readme, add appveyor build --- README.md | 9 +++++++++ appveyor.yml | 17 +++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index 8bfd62a4..9aafad58 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,13 @@ Read `Cargo.toml` for more details. *Require `libsodium` and `libcrypto` by default.* +### Run binaries with Cargo + +``` +$ cargo run --release --bin sslocal -- -c config.json +$ cargo run --release --bin ssserver -- -c config.json +``` + ## Getting Started Create a shadowsocks' configuration file. Example @@ -122,6 +129,8 @@ Currently it uses [coio-rs](https://github.com/zonyitoo/coio-rs) as the backend - [ ] PAC - [x] Improved logging format (waiting for the new official log crate) - [ ] Support more ciphers without depending on `libcrypto` (waiting for an acceptable Rust crypto lib implementation) +- [ ] Windows support. Depending on Mio and Coio-rs. +- [ ] Build with stable. ## License diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..e75db3a3 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,17 @@ +environment: + matrix: + # - TARGET: x86_64-pc-windows-msvc + # - TARGET: i686-pc-windows-msvc + - TARGET: i686-pc-windows-gnu +install: + - ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-nightly-${env:TARGET}.exe" + - rust-nightly-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" + - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin + - SET PATH=%PATH%;C:\MinGW\bin + - rustc -V + - cargo -V + +build: false + +test_script: + - cargo test -v