Skip to content

Commit a0305ea

Browse files
authored
Merge pull request #65 from diogomatsubara/chore/add-cfg-guard-for-unix
chore: add cfg cond for unix on UnixListener
2 parents 9d1176d + 9f29a34 commit a0305ea

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ on:
99

1010
jobs:
1111
build-full:
12-
runs-on: ubuntu-latest
12+
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15+
os: [ubuntu-latest, windows-latest]
1516
rust: [stable, beta, nightly]
1617
continue-on-error: ${{ matrix.rust == 'nightly' }}
1718
steps:
@@ -20,6 +21,11 @@ jobs:
2021
run: |
2122
rustup toolchain install ${{ matrix.rust }} --profile minimal --component clippy,rustfmt
2223
rustup default ${{ matrix.rust }}
24+
- name: Install OpenSSL on Windows
25+
if: runner.os == 'Windows'
26+
run: |
27+
vcpkg integrate install
28+
vcpkg.exe install openssl:x64-windows-static-md
2329
- name: Build
2430
run: cargo build --verbose --examples --all-features
2531
- name: Test

src/net.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ impl AsyncAccept for UnixListener {
5151
}
5252
}
5353

54+
#[cfg(unix)]
5455
#[cfg_attr(docsrs, doc(cfg(feature = "tokio-net")))]
5556
impl AsyncListener for UnixListener {
5657
#[inline]

0 commit comments

Comments
 (0)