about summary refs log tree commit diff
path: root/example/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-11-24T20·17+0000
committerVincent Ambo <tazjin@google.com>2019-11-24T20·17+0000
commitd441e035aabac877948f754289b3ab028408550b (patch)
treeb634459ce505c92a6e24efb08254a00535f9e05c /example/default.nix
parent24225580e8dd6dbbb930e01d0b4947f2feaa70c7 (diff)
feat: Add support for Protobuf-generated libraries
Adds a 'buildGo.proto' function which takes a single .proto file as
its source and generates a corresponding Go library which can then be
imported.

'proto' takes these arguments (Yants-style type definition):

struct "protoArgs" {
  # required:
  name = string;
  proto = path;

  # optional:
  extraDeps = list goLib; # defaults to [ ]
  protocFlags = option string;
}

Note that proto libraries will automatically have dependencies for the
required protobuf Go libraries added to them.

gRPC is not (yet) supported.
Diffstat (limited to 'example/default.nix')
0 files changed, 0 insertions, 0 deletions