Certain Window/Linux paths can't be used with this crate

Open
#273 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

The issue points to AudioTrack.file and the From implementation for AudioMap, but does not name source files or tests. Start by locating these definitions and tracing other path values represented as &str, including where they reach std::process::Command. Done means filesystem paths work without requiring UTF-8 across the affected crate APIs.

Written by the indexing model from the issue text.

Description

The code uses &str liberally throughout to represent paths but that requires UTF-8 and that's not guaranteed on Linux nor Windows. It's strongly recommended in the Rust ecosystem to use &Path instead of &str - I haven't dug into the code too deeply but generally it shouldn't be needed - std::process::Command supports taking &Path as an argument and using Path consistently throughout makes everything correctly path aware.

Not everywhere but for example:

pub struct AudioTrack<'a> {
    pub file: &'a str,
impl<'a, const N: usize> From<[(&'a str, AudioDuration<'a>); N]> for AudioMap<'a> {
    fn from(arr: [(&'a str, AudioDuration<'a>); N]) -> Self {
        AudioMap(Some(arr.into_iter().map(AudioTrack::from).collect()))
    }
Dominant language
Rust
Stars
3.3k
Forks
118
Avg merge
1d 8h
Merged PRs (30d)
16

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dmtrKovalenko/fframes

All issues in dmtrKovalenko/fframes

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.