Skip to content

Commit

Permalink
Protocol buffer types to JSON
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 610826186
  • Loading branch information
jcking authored and copybara-github committed Feb 27, 2024
1 parent 6654e73 commit 317d916
Show file tree
Hide file tree
Showing 4 changed files with 1,375 additions and 0 deletions.
44 changes: 44 additions & 0 deletions extensions/protobuf/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,50 @@ cc_test(
],
)

cc_library(
name = "json",
srcs = ["json.cc"],
hdrs = ["json.h"],
deps = [
":any",
":duration",
":field_mask",
":map_reflection",
":struct",
":timestamp",
":wrappers",
"//common:any",
"//common:json",
"//common:value",
"//internal:status_macros",
"//internal:time",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/base:nullability",
"@com_google_absl//absl/status",
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:string_view",
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:variant",
"@com_google_protobuf//:protobuf",
],
)

cc_test(
name = "json_test",
srcs = ["json_test.cc"],
deps = [
":json",
"//common:json",
"//common:value_testing",
"//internal:testing",
"@com_google_absl//absl/log:absl_check",
"@com_google_absl//absl/strings:string_view",
"@com_google_cel_spec//proto/test/v1/proto2:test_all_types_cc_proto",
"@com_google_protobuf//:protobuf",
],
)

cc_library(
name = "struct",
srcs = ["struct.cc"],
Expand Down
Loading

0 comments on commit 317d916

Please sign in to comment.