3 ms·
before the inevitable 'this is a oneliner in bash', the oneliner is actually in the code already: https://github.com/johnward/fmtconverter/blob/a83b6cb5b4fcd51
by baq 6y ago
before the inevitable 'this is a oneliner in bash', the oneliner is actually in the code already:
https://github.com/johnward/fmtconverter/blob/a83b6cb5b4fcd51a9045df27165f64b8509a01cc/src/main.rs#L109 https://github.com/johnward/fmtconverter/blob/a83b6cb5b4fcd5...
so take it for what it is - learning/showcase of rust filesystem and process spawn apis.
- pornel 6y agoShell 1-liner is a pragmatic approach, but for a submission with "in Rust" in the title I hoped it would be something fancier. For example, it's possible to use ffmpeg's C API to do the transcoding in process: https://github.com/zmwangx/rust-ffmpeg/blob/master/examples/transcode-audio.rs https://github.com/zmwangx/rust-ffmpeg/blob/master/examples/...
- baq 6y agoabsolutely no disagreement here