-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native] Filepath generation for log and userkeys data
Summary: [ENG-6216 : Add rust code for getting filepath with compations/logs](https://linear.app/comm/issue/ENG-6216/add-rust-code-for-getting-filepath-with-compationslogs) Adds two new functions for files used for backup data storage on the device (while they are waiting to be confirmed by backup service): one for logs (with optional attachments file) and the second one for userkeys file. Additionally changes the functions to take `&str` (`rust::Str`) instead of `String` (`rust::String`) as we are making a copy of them to std::string immediately and don't need to pass an owned string. Depends on D10604 Test Plan: Called these functions from rust and got these results: ``` backup-123-userkeys backup-123-log-456 backup-123-log-456-attachments ``` Reviewers: marcin, kamil Reviewed By: marcin Subscribers: ashoat, tomek Differential Revision: https://phab.comm.dev/D10605
- Loading branch information
1 parent
b185d93
commit b096784
Showing
7 changed files
with
126 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters