-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): introduce workspace file archive (#20471)
- Loading branch information
Showing
16 changed files
with
593 additions
and
129 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use std::fs::Metadata; | ||
|
||
#[cfg(target_os = "macos")] | ||
pub fn get_mod_time(metadata: &Metadata) -> i64 { | ||
use std::os::macos::fs::MetadataExt; | ||
metadata.st_mtime() | ||
} | ||
|
||
#[cfg(target_os = "windows")] | ||
pub fn get_mod_time(metadata: &Metadata) -> i64 { | ||
use std::os::windows::fs::MetadataExt; | ||
metadata.last_write_time() as i64 | ||
} | ||
|
||
#[cfg(target_os = "linux")] | ||
pub fn get_mod_time(metadata: &Metadata) -> i64 { | ||
use std::os::unix::fs::MetadataExt; | ||
metadata.mtime() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
mod find_matching_projects; | ||
mod get_mod_time; | ||
mod normalize_trait; | ||
pub mod path; | ||
|
||
pub use find_matching_projects::*; | ||
pub use get_mod_time::*; | ||
pub use normalize_trait::Normalize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.