Page MenuHomePhabricator

[native] more refactoring of the native rust library
ClosedPublic

Authored by varun on Sep 16 2022, 2:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 5:48 PM
Unknown Object (File)
Mon, Dec 30, 3:05 PM
Unknown Object (File)
Sat, Dec 28, 5:35 AM
Unknown Object (File)
Fri, Dec 27, 8:39 AM
Unknown Object (File)
Fri, Dec 27, 5:05 AM
Unknown Object (File)
Fri, Dec 27, 5:05 AM
Unknown Object (File)
Fri, Dec 27, 5:05 AM
Unknown Object (File)
Fri, Dec 27, 4:56 AM

Details

Summary

remove the header files after build so they don't appear in the devs' git status. also rename grpc_client -> native_rust_library and move it out of the cpp folder. we're renaming the cargo project because it will be more than a gRPC client library going forward.

Depends on D5104

Test Plan

cleaned the Xcode build folder, removed all build artifacts from git repo with cargo clean, deleted the header files, and then ran Xcode build

Diff Detail

Repository
rCOMM Comm
Branch
identity-client (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Sep 16 2022, 3:06 PM
.gitignore
11

created a separate .gitignore file for the cargo project

native/cpp/CommonCpp/grpc/grpc_client/cxx.h
1

we don't need to check this file in anymore, since we're creating it in the Xcode build and deleting it in the last build phase. same with the other header file

native/native_rust_library/.gitignore
1

it's easier to just have a separate .gitignore for the cargo project in case we move the folder to a new location in the future

scripts/clean-up-native-rust-library.sh
1–3

addresses @jon 's feedback on previous diff in stack

ashoat added inline comments.
native/cpp/CommonCpp/grpc/grpc_client/cxx.h
1

we're creating it in the Xcode build and deleting it in the last build phase

Where exactly does this change occur? Can't tell if there's something in the .pbxproj or what

scripts/clean-up-native-rust-library.sh
1

Newline after shebang

native/cpp/CommonCpp/grpc/grpc_client/cxx.h
1

the files are generated in scripts/build-rust-native-library.sh (previous diff in stack) and they're deleted in scripts/clean-up-native-rust-library.sh. these scripts are being called in Xcode Build Phases (you can see it in project.pbxproj lines 895 and 914)

scripts/clean-up-native-rust-library.sh
1

ack

This revision is now accepted and ready to land.Sep 16 2022, 4:45 PM