Rust: add task-based parallel processing