Skip to content

Commit 9e6a7ae

Browse files
committed
Exclude trait FilePath for wasi
1 parent ead42f2 commit 9e6a7ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ atty = "0.2"
8484
static_assertions = "1.1"
8585
half = "1.6"
8686
memchr = "2"
87-
filepath = "0.1.1"
8887

8988
# RustPython crates implementing functionality based on CPython
9089
mt19937 = "2.0"
@@ -124,6 +123,7 @@ openssl = { version = "0.10.32", features = ["vendored"], optional = true }
124123
openssl-sys = { version = "0.9", optional = true }
125124
openssl-probe = { version = "0.1", optional = true }
126125
which = "4.0"
126+
filepath = "0.1.1"
127127

128128
[target.'cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))'.dependencies]
129129
num_cpus = "1"

vm/src/stdlib/os.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::time::{Duration, SystemTime};
77
use std::{env, fs};
88

99
use crossbeam_utils::atomic::AtomicCell;
10+
#[cfg(not(target_os = "wasi"))]
1011
use filepath::FilePath;
1112
use num_bigint::BigInt;
1213

0 commit comments

Comments
 (0)