Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 12 Aug 22:12
· 12 commits to main since this release
v0.2.0
aeb7131

Install

protoc discovers plugins as protoc-gen-<name> on PATH, so the file name is
load-bearing — it is what makes --clojure_out work.

curl -fsSLo protoc-gen-clojure \
  "https://github.com/bpalermo/protoc-gen-clojure/releases/download/v0.2.0/protoc-gen-clojure_0.2.0_linux_x86_64"
chmod +x protoc-gen-clojure && mv protoc-gen-clojure /usr/local/bin/

On macOS, clear the quarantine attribute: xattr -d com.apple.quarantine <path>.
Binaries are unsigned.

Bazel

bazel_dep(name = "protoc_gen_clojure", version = "0.2.0")

plugin = use_extension("@protoc_gen_clojure//clojure:extensions.bzl", "toolchains")
use_repo(plugin, "protoc_gen_clojure_toolchains")

register_toolchains("@protoc_gen_clojure_toolchains//:all")

Consumers need no Clojure, no JVM and no GraalVM: the toolchain fetches the
prebuilt binary for the host platform.

What's Changed

  • fix(bcr): author the registry entry with the CLA address by @bpalermo in #31
  • feat(emitter): hint the generated Java class so the runtime can skip DynamicMessage by @bpalermo in #32
  • feat(emitter): generate records for nested messages by @bpalermo in #33
  • test: add the nested-message fixture and its golden by @bpalermo in #35
  • test: generate the nested golden from one proto, not from all eight by @bpalermo in #36
  • test: verify the prebuilt-toolchain path against a published release by @bpalermo in #38
  • feat(bazel)!: move the public API to //clojure, and document it by @bpalermo in #39

Full Changelog: v0.1.0...v0.2.0