From dc04a6bd01409996a98b9b98652d888fd9e1fc86 Mon Sep 17 00:00:00 2001 From: Will Li Date: Fri, 7 Jun 2024 11:23:15 -0700 Subject: [PATCH] Add x509-parser to oss shim (#3825) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/3825 bypass-github-export-checks Reviewed By: JakobDegen Differential Revision: D58116156 fbshipit-source-id: 8b4af860bd4ff2e749efb056e597bdea70c653e7 --- shim/third-party/rust/Cargo.toml | 2 ++ shim/third-party/rust/fixups/oid-registry/fixups.toml | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 shim/third-party/rust/fixups/oid-registry/fixups.toml diff --git a/shim/third-party/rust/Cargo.toml b/shim/third-party/rust/Cargo.toml index 6cdeea1ca8..0b8fa9f08e 100644 --- a/shim/third-party/rust/Cargo.toml +++ b/shim/third-party/rust/Cargo.toml @@ -134,6 +134,7 @@ num-traits = "0.2" num_cpus = "1.11" num_enum = "0.5" object = "0.29.0" +oid-registry = "0.6.1" once_cell = "1.8" os_str_bytes = { version = "6.6.0", features = ["conversions"] } parking_lot = { version = "0.11.2", features = ["send_guard"] } @@ -218,6 +219,7 @@ walkdir = "2.3.2" which = "4.3.0" windows_x86_64_msvc = "=0.48.0" # our fixup only works if we are on precisely 0.48.0 winapi = { version = "0.3", features = ["everything"] } +x509-parser = { version = "0.14.0", features = ["verify"] } xattr = "0.2.2" zip = "0.5" zstd = "0.13.0" diff --git a/shim/third-party/rust/fixups/oid-registry/fixups.toml b/shim/third-party/rust/fixups/oid-registry/fixups.toml new file mode 100644 index 0000000000..79d5cb979d --- /dev/null +++ b/shim/third-party/rust/fixups/oid-registry/fixups.toml @@ -0,0 +1,7 @@ +cargo_env = [ + "CARGO_PKG_NAME", # Needed by _buck1_handle_manifest_dir + "CARGO_MANIFEST_DIR", +] + +[[buildscript]] +[buildscript.gen_srcs]