Skip to content

pansen/sanchez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanchez

Rust playground project.

Currently finds *.mp3 files in a given directory and parses them ID3 tags. The parsing can be done multithreaded, defining the number of threads with the -j option.

Besides the "scanner" functionality there is also a "watcher", which watches the exact same given directory for file changes, resulting in the same ID3 extraction process.

Build & Run

Prerequisites

Since some dependencies require the unstable Plugin feature, we need to have a nightly version of Rust installed. The easiest way is using rustup

rustup install nightly
rustup default nightly

see: https://github.com/rust-lang-nursery/rustup.rs#working-with-nightly-rust

Develop

Once rust is setup, we can compile and start

diesel migration run
cargo build && time RUST_BACKTRACE=1 target/debug/sanchez ~/Music/ -vv

Note we don't call cargo run, see "Issues" below

Issues

When running cargo build && time RUST_BACKTRACE=1 cargo run -- /tmp/ -vvv we receive an error that goes back to cargo

    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/sanchez /tmp/ -vvv -w`
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
error: Process didn't exit successfully: `target/debug/sanchez /tmp/ -vvv -w` (signal: 5, SIGTRAP: trace/breakpoint trap)

Some values in arguments.rs are warned to be unused, though they are used

warning: value assigned to `verbosity` is never read, #[warn(unused_assignments)] on by default
  --> src/arguments.rs:72:9
   |
72 |     let mut verbosity = 0;
   |         ^^^^^^^^^^^^^

warning: struct field is never used: `thread_number`, #[warn(dead_code)] on by default
  --> src/scan.rs:22:5
   |
22 |     thread_number: usize,
   |     ^^^^^^^^^^^^^^^^^^^^

Links

Environment

Threads

Strings

Crypto

Framework

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages