From 1bbd8f313c8f0721802b427ce86c40b4f470e867 Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Sat, 16 May 2026 23:33:05 +0300 Subject: [PATCH] build: add scm-1 rockspec for the pb runtime MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Installs the 12 modules under pb.* from runtime/pb/ via builtin build type; lua >= 5.1 is the only declared dependency since every other import (bit, datetime, digest, ffi, fiber, json, protobuf, utf8) is a Tarantool builtin. Plugin stays out of scope — it's a Go binary built via the Justfile, not a luarocks artifact. Source URL points at the planned sourcecraft.dev home that matches go.mod's module path. --- tarantool-protobuf-scm-1.rockspec | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tarantool-protobuf-scm-1.rockspec diff --git a/tarantool-protobuf-scm-1.rockspec b/tarantool-protobuf-scm-1.rockspec new file mode 100644 index 0000000000000000000000000000000000000000..45e9c087b7df9182cf7e6b08521adc02d296d4aa --- /dev/null +++ b/tarantool-protobuf-scm-1.rockspec @@ -0,0 +1,45 @@ +package = "tarantool-protobuf" +version = "scm-1" + +source = { + url = "git+https://sourcecraft.dev/bigbes/tarantool-protobuf.git", + branch = "master", +} + +description = { + summary = "Protocol Buffers (proto3) + gRPC runtime for Tarantool", + detailed = [[ +A protoc plugin (Go) and pure-Lua runtime that give Tarantool a complete +proto3 + gRPC stack — decode, map, oneof, services, well-known types, JSON +and text-format codecs, and zero-copy lazy decode views. The Lua module +is named `pb` to avoid colliding with Tarantool's encode-only built-in +`protobuf` module. This rockspec installs only the runtime; the +`protoc-gen-tarantool` plugin must be built separately from the Go +sources (see Justfile). +]], + homepage = "https://sourcecraft.dev/bigbes/tarantool-protobuf", + license = "BSD-2-Clause", + maintainer = "Eugene Blikh ", +} + +dependencies = { + "lua >= 5.1", +} + +build = { + type = "builtin", + modules = { + ["pb"] = "runtime/pb/init.lua", + ["pb.codec"] = "runtime/pb/codec.lua", + ["pb.descriptor_pb"] = "runtime/pb/descriptor_pb.lua", + ["pb.dynamic"] = "runtime/pb/dynamic.lua", + ["pb.fileset"] = "runtime/pb/fileset.lua", + ["pb.grpc"] = "runtime/pb/grpc.lua", + ["pb.json"] = "runtime/pb/json.lua", + ["pb.lazy"] = "runtime/pb/lazy.lua", + ["pb.parser"] = "runtime/pb/parser.lua", + ["pb.text"] = "runtime/pb/text.lua", + ["pb.wire"] = "runtime/pb/wire.lua", + ["pb.wkt"] = "runtime/pb/wkt.lua", + }, +}