Skip to content

refactor: rspack_fs use Utf8Path and FileMetadata#8366

Merged
jerrykingxyz merged 1 commit intomainfrom
jerry/fs
Nov 8, 2024
Merged

refactor: rspack_fs use Utf8Path and FileMetadata#8366
jerrykingxyz merged 1 commit intomainfrom
jerry/fs

Conversation

@jerrykingxyz
Copy link
Copy Markdown
Contributor

@jerrykingxyz jerrykingxyz commented Nov 7, 2024

Summary

  • update ReadableFileSystem trait to use Utf8Path and Utf8PathBuf
    In rspack we use Utf8Path and Utf8PathBuf instead of Path and PathBuf. more info see refactor: drop support for non-UTF8 paths #7570

  • define FileMetadata to replace Metadata to make Async and Sync trait return same struct

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 7, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 7, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit b3ffc46
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/672c6ce053928f000890c4b0
😎 Deploy Preview https://deploy-preview-8366--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@hardfist
Copy link
Copy Markdown
Contributor

hardfist commented Nov 7, 2024

@jerrykingxyz can you help explain why change Path to Utf8Path in Filesystem trait here?
Path & PathBuf seems more standard as a rust api interface

@h-a-n-a h-a-n-a changed the title refactor: rspack_fs use utf8path and filemetadata refactor: rspack_fs use Utf8Path and FileMetadata Nov 8, 2024
@jerrykingxyz jerrykingxyz merged commit b77d7de into main Nov 8, 2024
@jerrykingxyz jerrykingxyz deleted the jerry/fs branch November 8, 2024 06:10
@jerrykingxyz jerrykingxyz mentioned this pull request Nov 18, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants