Page MenuHomePhabricator

[services] Rust Integration - Backup - Rust - Add converting functions
ClosedPublic

Authored by karol on Sep 2 2022, 3:51 AM.
Tags
None
Referenced Files
F2094462: D5034.id16487.diff
Mon, Jun 24, 5:34 AM
Unknown Object (File)
Sun, Jun 23, 2:53 AM
Unknown Object (File)
Sat, Jun 22, 7:21 PM
Unknown Object (File)
Sat, Jun 22, 4:33 PM
Unknown Object (File)
Fri, Jun 21, 10:42 AM
Unknown Object (File)
Wed, Jun 19, 8:16 PM
Unknown Object (File)
Thu, Jun 13, 6:20 AM
Unknown Object (File)
Sun, Jun 2, 3:44 AM

Details

Summary

Depends on D5031

Adding helper functions to convert between rust's String and c++'s char* both ways.

Test Plan

backup builds successfully

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested changes to this revision.Sep 5 2022, 7:49 AM
tomek added inline comments.
services/backup/blob_client/src/tools.rs
37 ↗(On Diff #16233)

We should avoid using unwrap

This revision now requires changes to proceed.Sep 5 2022, 7:49 AM
services/backup/blob_client/src/tools.rs
37 ↗(On Diff #16233)

Right, I will fix this.

tomek added inline comments.
services/backup/blob_client/src/tools.rs
1 ↗(On Diff #16356)

Do we need this line?

23–25 ↗(On Diff #16356)

This should be formatted in the diff that introduced this code.

35 ↗(On Diff #16356)

This line seems to be too long - is it formatted?

This revision is now accepted and ready to land.Sep 7 2022, 6:02 AM
services/backup/blob_client/src/tools.rs
1 ↗(On Diff #16356)

Apparently, no. Weird that cargo check didn't catch this.

35 ↗(On Diff #16356)

will do

This revision was landed with ongoing or failed builds.Sep 8 2022, 4:10 AM
This revision was automatically updated to reflect the committed changes.