blob: 27ceacac7648bdbad3943bd17faafc3a4aa574df [file] [log] [blame]
diff --git a/BUILD.bazel b/BUILD.bazel
new file mode 100644
index 0000000..2a6ebf2
--- /dev/null
+++ b/BUILD.bazel
@@ -0,0 +1,12 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
+
+cc_library(
+ name = "ultrajson",
+ srcs = [
+ "lib/ultrajsondec.c",
+ "lib/ultrajsonenc.c",
+ ],
+ hdrs = ["lib/ultrajson.h"],
+ includes = ["lib"],
+ visibility = ["//visibility:public"],
+)
diff --git a/MODULE.bazel b/MODULE.bazel
new file mode 100644
index 0000000..93ec523
--- /dev/null
+++ b/MODULE.bazel
@@ -0,0 +1,13 @@
+"""
+Module: ultrajson
+Purpose: Provides the ultrajson library as a Bazel cc_library target
+"""
+
+module(
+ name = "ultrajson",
+ version = "5.10.0",
+ compatibility_level = 1,
+)
+
+bazel_dep(name = "rules_cc", version = "0.1.1")
+bazel_dep(name = "platforms", version = "0.0.11")