summaryrefslogtreecommitdiffstats
path: root/vendor/filetime/src/wasm.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:47:55 +0000
commit2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4 (patch)
tree033cc839730fda84ff08db877037977be94e5e3a /vendor/filetime/src/wasm.rs
parentInitial commit. (diff)
downloadcargo-upstream.tar.xz
cargo-upstream.zip
Adding upstream version 0.70.1+ds1.upstream/0.70.1+ds1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--vendor/filetime/src/wasm.rs40
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/filetime/src/wasm.rs b/vendor/filetime/src/wasm.rs
new file mode 100644
index 0000000..4a7a5bb
--- /dev/null
+++ b/vendor/filetime/src/wasm.rs
@@ -0,0 +1,40 @@
+use crate::FileTime;
+use std::fs::{self, File};
+use std::io;
+use std::path::Path;
+
+pub fn set_file_times(_p: &Path, _atime: FileTime, _mtime: FileTime) -> io::Result<()> {
+ Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
+}
+
+pub fn set_symlink_file_times(_p: &Path, _atime: FileTime, _mtime: FileTime) -> io::Result<()> {
+ Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
+}
+
+pub fn set_file_mtime(_p: &Path, _mtime: FileTime) -> io::Result<()> {
+ Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
+}
+
+pub fn set_file_atime(_p: &Path, _atime: FileTime) -> io::Result<()> {
+ Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
+}
+
+pub fn from_last_modification_time(_meta: &fs::Metadata) -> FileTime {
+ unimplemented!()
+}
+
+pub fn from_last_access_time(_meta: &fs::Metadata) -> FileTime {
+ unimplemented!()
+}
+
+pub fn from_creation_time(_meta: &fs::Metadata) -> Option<FileTime> {
+ unimplemented!()
+}
+
+pub fn set_file_handle_times(
+ _f: &File,
+ _atime: Option<FileTime>,
+ _mtime: Option<FileTime>,
+) -> io::Result<()> {
+ Err(io::Error::new(io::ErrorKind::Other, "Wasm not implemented"))
+}