2018-07-19 16:31:50 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2018-07-30 06:14:50 +00:00
|
|
|
srcs = [
|
|
|
|
"database.go",
|
|
|
|
"inmemory.go",
|
|
|
|
],
|
2018-07-20 21:31:26 +00:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/shared/database",
|
2018-07-19 16:31:50 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
|
|
|
"@com_github_ethereum_go_ethereum//ethdb:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2018-07-30 06:14:50 +00:00
|
|
|
srcs = [
|
|
|
|
"database_test.go",
|
|
|
|
"inmemory_test.go",
|
|
|
|
],
|
2018-07-19 16:31:50 +00:00
|
|
|
embed = [":go_default_library"],
|
2018-07-30 06:14:50 +00:00
|
|
|
deps = [
|
|
|
|
"@com_github_ethereum_go_ethereum//ethdb:go_default_library",
|
|
|
|
"@com_github_syndtr_goleveldb//leveldb/errors:go_default_library",
|
|
|
|
],
|
2018-07-19 16:31:50 +00:00
|
|
|
)
|