Skip to content

Commit 1c3d0d0

Browse files
committed
Added vita target support
1 parent 58acb56 commit 1c3d0d0

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,31 @@ jobs:
425425
env:
426426
RUSTFLAGS: --cfg tokio_unstable -Dwarnings
427427

428+
cross-check-tier3:
429+
name: cross-check-tier3
430+
needs: basics
431+
runs-on: ubuntu-latest
432+
strategy:
433+
matrix:
434+
target:
435+
- name: armv7-sony-vita-newlibeabihf
436+
exclude_features: "process,signal,rt-process-signal,full"
437+
steps:
438+
- uses: actions/checkout@v3
439+
- name: Install Rust ${{ env.rust_nightly }}
440+
uses: dtolnay/rust-toolchain@nightly
441+
with:
442+
toolchain: ${{ env.rust_nightly }}
443+
components: rust-src
444+
- name: Install cargo-hack
445+
uses: taiki-e/install-action@v2
446+
with:
447+
tool: cargo-hack
448+
- uses: Swatinem/rust-cache@v2
449+
- run: cargo hack check -Zbuild-std --workspace --each-feature --target ${{ matrix.target.name }} --exclude-features "${{ matrix.target.exclude_features }}"
450+
env:
451+
RUSTFLAGS: --cfg tokio_unstable -Dwarnings
452+
428453
cross-test-with-parking_lot:
429454
needs: basics
430455
runs-on: ubuntu-latest

tokio/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ pin-project-lite = "0.2.11"
9595

9696
# Everything else is optional...
9797
bytes = { version = "1.0.0", optional = true }
98-
mio = { version = "0.8.6", optional = true, default-features = false }
98+
mio = { version = "0.8.9", optional = true, default-features = false }
9999
num_cpus = { version = "1.8.0", optional = true }
100100
parking_lot = { version = "0.12.0", optional = true }
101101

102102
[target.'cfg(not(target_family = "wasm"))'.dependencies]
103-
socket2 = { version = "0.5.3", optional = true, features = [ "all" ] }
103+
socket2 = { version = "0.5.5", optional = true, features = [ "all" ] }
104104

105105
# Currently unstable. The API exposed by these features may be broken at any time.
106106
# Requires `--cfg tokio_unstable` to enable.
@@ -113,11 +113,11 @@ tracing = { version = "0.1.25", default-features = false, features = ["std"], op
113113
backtrace = { version = "0.3.58" }
114114

115115
[target.'cfg(unix)'.dependencies]
116-
libc = { version = "0.2.145", optional = true }
116+
libc = { version = "0.2.149", optional = true }
117117
signal-hook-registry = { version = "1.1.1", optional = true }
118118

119119
[target.'cfg(unix)'.dev-dependencies]
120-
libc = { version = "0.2.145" }
120+
libc = { version = "0.2.149" }
121121
nix = { version = "0.26", default-features = false, features = ["fs", "socket"] }
122122

123123
[target.'cfg(windows)'.dependencies.windows-sys]
@@ -139,7 +139,7 @@ mockall = "0.11.1"
139139
async-stream = "0.3"
140140

141141
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
142-
socket2 = "0.5.3"
142+
socket2 = "0.5.5"
143143
tempfile = "3.1.0"
144144

145145
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dev-dependencies]

tokio/src/net/unix/ucred.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub(crate) use self::impl_solaris::get_peer_cred;
5454
#[cfg(target_os = "aix")]
5555
pub(crate) use self::impl_aix::get_peer_cred;
5656

57-
#[cfg(target_os = "espidf")]
57+
#[cfg(any(target_os = "espidf", target_os = "vita"))]
5858
pub(crate) use self::impl_noproc::get_peer_cred;
5959

6060
#[cfg(any(
@@ -295,7 +295,7 @@ pub(crate) mod impl_aix {
295295
}
296296
}
297297

298-
#[cfg(target_os = "espidf")]
298+
#[cfg(any(target_os = "espidf", target_os = "vita"))]
299299
pub(crate) mod impl_noproc {
300300
use crate::net::unix::UnixStream;
301301
use std::io;

0 commit comments

Comments
 (0)