bevyengine / bevyengine/bevy

Move away from std::Path in bevy_assets

Open
#19,079 2 comments 1 reaction 0 assignees View on GitHub
A-Assets C-Usability D-Modest O-Embedded S-Ready-For-Implementation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

> Future PR: Cart has previously expressed a desire to move away from `std::path::Path`, as `AssetPath` _shouldn't_ support platform-specific functionality like Windows prefixes or different path separators. `AssetPath` should always use `str` instead of `Path`, but that will requiring providing our own implementations for common `Path` operations (`components`, `file_name`, etc.).

_Originally posted by @bushrat011899 in https://github.com/bevyengine/bevy/pull/19070#discussion_r2073309255_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.