You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,8 +10,7 @@ patterns and surprisingly difficult to implement securely).
11
10
12
11
[Documentation](https://docs.rs/tempfile/)
13
12
14
-
Usage
15
-
-----
13
+
## Usage
16
14
17
15
Minimum required Rust version: 1.63.0
18
16
@@ -23,8 +21,27 @@ Add this to your `Cargo.toml`:
23
21
tempfile = "3"
24
22
```
25
23
26
-
Example
27
-
-------
24
+
## Supported Platforms
25
+
26
+
This crate supports all major operating systems:
27
+
28
+
- Linux
29
+
- Android
30
+
- MacOS
31
+
- Windows
32
+
- FreeBSD (likely other BSDs but we don't have CI for them)
33
+
- RedoxOS
34
+
- Wasm (build and link only, Wasm doesn't have a filesystem)
35
+
- WASI P1 & P2.
36
+
37
+
However:
38
+
39
+
- Android, RedoxOS, Wasm, and WASI targets all require the latest stable rust compiler.
40
+
- WASI P1/P2 does not define a default temporary directory. You'll need to explicitly call `tempfile::env::override_temp_dir` with a valid directory or temporary file creation will panic on this platform.
41
+
- WASI P1/P2 does not have file permissions.
42
+
- You _may_ need to override the temporary directory in Android as well to point at your application's per-app cache directory.
0 commit comments