BUILD 948 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. )
  6. go_library(
  7. name = "go_default_library",
  8. srcs = [
  9. "config.go",
  10. "decode.go",
  11. "encode.go",
  12. "error.go",
  13. "parse.go",
  14. "parse.peg.go",
  15. "util.go",
  16. ],
  17. importpath = "github.com/naoina/toml",
  18. tags = ["automanaged"],
  19. visibility = ["//visibility:public"],
  20. deps = [
  21. "//vendor/github.com/naoina/go-stringutil:go_default_library",
  22. "//vendor/github.com/naoina/toml/ast:go_default_library",
  23. ],
  24. )
  25. filegroup(
  26. name = "package-srcs",
  27. srcs = glob(["**"]),
  28. tags = ["automanaged"],
  29. visibility = ["//visibility:private"],
  30. )
  31. filegroup(
  32. name = "all-srcs",
  33. srcs = [
  34. ":package-srcs",
  35. "//vendor/github.com/naoina/toml/ast:all-srcs",
  36. ],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )