Move pattern matching to Rust

This commit is contained in:
topjohnwu
2023-06-21 16:47:20 -07:00
parent 399b9e5eba
commit 9c7cf340a1
7 changed files with 91 additions and 76 deletions
-3
View File
@@ -19,9 +19,6 @@ void repack(const char *src_img, const char *out_img, bool skip_comp = false);
int split_image_dtb(const char *filename);
int dtb_commands(int argc, char *argv[]);
size_t patch_verity(rust::Slice<uint8_t> data);
size_t patch_encryption(rust::Slice<uint8_t> data);
static inline bool check_env(const char *name) {
using namespace std::string_view_literals;
const char *val = getenv(name);