55#include < utility>
66
77#include " crubit_helpers/string_conversions.h"
8- #include " rust/zip_wrapper .h"
8+ #include " crubit/rust .h"
99#include " absl/status/status.h"
1010#include " absl/status/statusor.h"
1111#include " absl/strings/match.h"
@@ -25,7 +25,7 @@ enum class RustCallSite {
2525 kResultUnit ,
2626};
2727
28- std::string FromRustVecU8 (const zip_wrapper ::VecU8& vec) {
28+ std::string FromRustVecU8 (const rust ::VecU8& vec) {
2929 return std::string (security::crubit_helpers::StringViewFromVecU8 (vec));
3030}
3131
@@ -73,7 +73,7 @@ absl::Status RustErrorToStatus(std::string err_str, RustCallSite call_site) {
7373} // namespace
7474
7575absl::StatusOr<RustVecU8Wrapper> FromRustResultVecU8 (
76- rs_std::Result<zip_wrapper ::VecU8, zip_wrapper ::VecU8> result_vec_u8) {
76+ rs_std::Result<rust ::VecU8, rust ::VecU8> result_vec_u8) {
7777 if (!result_vec_u8.has_value ()) {
7878 return RustErrorToStatus (FromRustVecU8 (std::move (result_vec_u8).err ()),
7979 RustCallSite::kResultVecU8 );
@@ -82,16 +82,16 @@ absl::StatusOr<RustVecU8Wrapper> FromRustResultVecU8(
8282}
8383
8484absl::Status FromRustResultUnit (
85- rs_std::Result<uint8_t , zip_wrapper ::VecU8> result_unit) {
85+ rs_std::Result<uint8_t , rust ::VecU8> result_unit) {
8686 if (!result_unit.has_value ()) {
8787 return RustErrorToStatus (FromRustVecU8 (std::move (result_unit).err ()),
8888 RustCallSite::kResultUnit );
8989 }
9090 return absl::OkStatus ();
9191}
9292
93- absl::StatusOr<zip_wrapper ::BufferedZipArchive> FromRustBufferedZipArchive (
94- rs_std::Result<zip_wrapper ::BufferedZipArchive, zip_wrapper ::VecU8>
93+ absl::StatusOr<rust ::BufferedZipArchive> FromRustBufferedZipArchive (
94+ rs_std::Result<rust ::BufferedZipArchive, rust ::VecU8>
9595 result_buffered_zip_archive) {
9696 if (!result_buffered_zip_archive.has_value ()) {
9797 return RustErrorToStatus (
@@ -101,8 +101,8 @@ absl::StatusOr<zip_wrapper::BufferedZipArchive> FromRustBufferedZipArchive(
101101 return std::move (result_buffered_zip_archive).value ();
102102}
103103
104- absl::StatusOr<zip_wrapper ::FsZipArchive> FromRustFsZipArchive (
105- rs_std::Result<zip_wrapper ::FsZipArchive, zip_wrapper ::VecU8>
104+ absl::StatusOr<rust ::FsZipArchive> FromRustFsZipArchive (
105+ rs_std::Result<rust ::FsZipArchive, rust ::VecU8>
106106 result_fs_zip_archive) {
107107 if (!result_fs_zip_archive.has_value ()) {
108108 return RustErrorToStatus (
@@ -112,8 +112,8 @@ absl::StatusOr<zip_wrapper::FsZipArchive> FromRustFsZipArchive(
112112 return std::move (result_fs_zip_archive).value ();
113113}
114114
115- absl::StatusOr<zip_wrapper ::BufferedZipFile> FromRustBufferedZipFile (
116- rs_std::Result<zip_wrapper ::BufferedZipFile, zip_wrapper ::VecU8>
115+ absl::StatusOr<rust ::BufferedZipFile> FromRustBufferedZipFile (
116+ rs_std::Result<rust ::BufferedZipFile, rust ::VecU8>
117117 result_buffered_zip_file) {
118118 if (!result_buffered_zip_file.has_value ()) {
119119 return RustErrorToStatus (
@@ -123,8 +123,8 @@ absl::StatusOr<zip_wrapper::BufferedZipFile> FromRustBufferedZipFile(
123123 return std::move (result_buffered_zip_file).value ();
124124}
125125
126- absl::StatusOr<zip_wrapper ::FsZipFile> FromRustFsZipFile (
127- rs_std::Result<zip_wrapper ::FsZipFile, zip_wrapper ::VecU8>
126+ absl::StatusOr<rust ::FsZipFile> FromRustFsZipFile (
127+ rs_std::Result<rust ::FsZipFile, rust ::VecU8>
128128 result_fs_zip_file) {
129129 if (!result_fs_zip_file.has_value ()) {
130130 return RustErrorToStatus (FromRustVecU8 (std::move (result_fs_zip_file).err ()),
@@ -133,8 +133,8 @@ absl::StatusOr<zip_wrapper::FsZipFile> FromRustFsZipFile(
133133 return std::move (result_fs_zip_file).value ();
134134}
135135
136- absl::StatusOr<zip_wrapper ::BufferedZipWriter> FromRustBufferedZipWriter (
137- rs_std::Result<zip_wrapper ::BufferedZipWriter, zip_wrapper ::VecU8>
136+ absl::StatusOr<rust ::BufferedZipWriter> FromRustBufferedZipWriter (
137+ rs_std::Result<rust ::BufferedZipWriter, rust ::VecU8>
138138 result_buffered_zip_writer) {
139139 if (!result_buffered_zip_writer.has_value ()) {
140140 return RustErrorToStatus (
@@ -144,8 +144,8 @@ absl::StatusOr<zip_wrapper::BufferedZipWriter> FromRustBufferedZipWriter(
144144 return std::move (result_buffered_zip_writer).value ();
145145}
146146
147- absl::StatusOr<zip_wrapper ::FsZipWriter> FromRustFsZipWriter (
148- rs_std::Result<zip_wrapper ::FsZipWriter, zip_wrapper ::VecU8>
147+ absl::StatusOr<rust ::FsZipWriter> FromRustFsZipWriter (
148+ rs_std::Result<rust ::FsZipWriter, rust ::VecU8>
149149 result_fs_zip_writer) {
150150 if (!result_fs_zip_writer.has_value ()) {
151151 return RustErrorToStatus (
0 commit comments