HomePhabricator
Diffusion Comm 1229893ff64f

[services] Backup - Rust lib - Add initialize

Description

[services] Backup - Rust lib - Add initialize

Summary:
Depends on D4884

Adding initializing function in rust to be called from the c++.

The goal here is to:

  • spawn a thread in rust that will listen on a thread-safe queue (initialize)
  • schedule some data on this queue (process)
  • gracefully exit the thread and release all resources (terminate)

Later on, in the spawned thread, we will connect to the blob service through the gRPC, but first things first.

I'm probably going to remove all logging before landing, I'm leaving it as is for now.

Test Plan: test plan in D4870

Reviewers: tomek, varun, max

Reviewed By: varun

Subscribers: ashoat, tomek, atul, abosh

Differential Revision: https://phab.comm.dev/D4867

Details

Provenance
karolAuthored on Aug 29 2022, 6:56 AM
Reviewer
varun
Differential Revision
D4867: [services] Backup - Rust lib - Add initialize
Parents
rCOMM15ddad8a5688: [services] Backup - Rust lib - Add is initialized
Branches
Unknown
Tags
Unknown