Skip to content

Commit 54e0e81

Browse files
committed
Build with stable Rust.
- #750 introduced strip=true, but it can only be used in >= 1.59
1 parent 15ff6ac commit 54e0e81

File tree

6 files changed

+7
-18
lines changed

6 files changed

+7
-18
lines changed

.github/workflows/build-and-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
~/.cargo/git
3030
target
3131
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
32-
- name: Install Rust nightly
32+
- name: Install Rust
3333
uses: actions-rs/toolchain@v1
3434
with:
3535
profile: minimal

.github/workflows/build-nightly-release.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ jobs:
6969
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
7070
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
7171
72-
- name: Install Rust nightly
72+
- name: Install Rust
7373
uses: actions-rs/toolchain@v1
7474
with:
7575
profile: minimal
76-
toolchain: nightly
7776
target: ${{ matrix.target }}
7877
default: true
7978
override: true
@@ -103,11 +102,10 @@ jobs:
103102
steps:
104103
- uses: actions/checkout@v2
105104

106-
- name: Install Rust nightly
105+
- name: Install Rust
107106
uses: actions-rs/toolchain@v1
108107
with:
109108
profile: minimal
110-
toolchain: nightly
111109
default: true
112110
override: true
113111

.github/workflows/build-release.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ jobs:
8484
# echo "::add-path::/usr/local/opt/gnu-tar/libexec/gnubin"
8585
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
8686
87-
- name: Install Rust Nightly
87+
- name: Install Rust
8888
uses: actions-rs/toolchain@v1
8989
with:
9090
profile: minimal
91-
toolchain: nightly
9291
target: ${{ matrix.target }}
9392
default: true
9493
override: true
@@ -120,11 +119,10 @@ jobs:
120119
steps:
121120
- uses: actions/checkout@v2
122121

123-
- name: Install Rust Nightly
122+
- name: Install Rust
124123
uses: actions-rs/toolchain@v1
125124
with:
126125
profile: minimal
127-
toolchain: nightly
128126
default: true
129127
override: true
130128

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ lto = "fat"
5050
codegen-units = 1
5151
incremental = false
5252
panic = "abort"
53-
strip = true
53+
#strip = true
5454

5555
[features]
5656
default = [

README.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ This project uses system (libc) memory allocator (Rust's default). But it also a
6969
Install from [crates.io](https://crates.io/crates/shadowsocks-rust):
7070

7171
```bash
72-
# Set default toolchain to nightly
73-
rustup default nightly
74-
# RECOMMEND: Check the rust-toolchain file in the project root and use the recommended nightly version
75-
# For example:
76-
# rustup default nightly-2021-06-03
77-
7872
# Install from crates.io
7973
cargo install shadowsocks-rust
8074
```
@@ -789,7 +783,7 @@ It supports the following features:
789783
- [x] Improved logging format (waiting for the new official log crate)
790784
- [x] Support more ciphers without depending on `libcrypto` (waiting for an acceptable Rust crypto lib implementation)
791785
- [x] Windows support.
792-
- [ ] Build with stable `rustc` (blocking by `crypto2`).
786+
- [x] Build with stable `rustc` <del>(blocking by `crypto2`)</del>.
793787
- [x] Support HTTP Proxy protocol
794788
- [x] AEAD ciphers. (proposed in [SIP004](https://github.com/shadowsocks/shadowsocks-org/issues/30), still under discussion)
795789
- [x] Choose server based on delay #152

rust-toolchain

-1
This file was deleted.

0 commit comments

Comments
 (0)