summaryrefslogtreecommitdiffstats
path: root/vendor/fs-err/src/os.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /vendor/fs-err/src/os.rs
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/fs-err/src/os.rs')
-rw-r--r--vendor/fs-err/src/os.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/fs-err/src/os.rs b/vendor/fs-err/src/os.rs
new file mode 100644
index 000000000..b801e6076
--- /dev/null
+++ b/vendor/fs-err/src/os.rs
@@ -0,0 +1,11 @@
+//! OS-specific functionality.
+
+// The std-library has a couple more platforms than just `unix` for which these apis
+// are defined, but we're using just `unix` here. We can always expand later.
+#[cfg(unix)]
+/// Platform-specific extensions for Unix platforms.
+pub mod unix;
+
+#[cfg(windows)]
+/// Platform-specific extensions for Windows.
+pub mod windows;