treewide: remove bazel
Change-Id: Ia45fc0d797dbec1ebcb199b6711dcb66ac10ff3a
This commit is contained in:
parent
d766afc409
commit
713c1e5a81
4
.bazelrc
4
.bazelrc
|
@ -1,4 +0,0 @@
|
|||
# https://github.com/bazelbuild/rules_go/issues/3430
|
||||
build --experimental_output_directory_naming_scheme=diff_against_baseline
|
||||
|
||||
test --test_env=GO_TEST_WRAP_TESTV=1
|
|
@ -1 +0,0 @@
|
|||
6.0.0
|
|
@ -15,9 +15,3 @@ LOCK
|
|||
CURRENT
|
||||
MANIFEST-*
|
||||
OPTIONS-*
|
||||
|
||||
# Bazel
|
||||
bazel-bin
|
||||
bazel-out
|
||||
bazel-radiance
|
||||
bazel-testlogs
|
||||
|
|
27
BUILD
27
BUILD
|
@ -1,27 +0,0 @@
|
|||
load("@bazel_gazelle//:def.bzl", "gazelle")
|
||||
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")
|
||||
|
||||
# gazelle:prefix go.firedancer.io/radiance
|
||||
# gazelle:build_file_name BUILD
|
||||
gazelle(name = "gazelle")
|
||||
|
||||
gazelle(
|
||||
name = "gazelle-update-repos",
|
||||
args = [
|
||||
"-from_file=go.mod",
|
||||
"-to_macro=third_party/go/repositories.bzl%go_repositories",
|
||||
"-prune",
|
||||
],
|
||||
command = "update-repos",
|
||||
)
|
||||
|
||||
# Shortcut for the Go SDK
|
||||
alias(
|
||||
name = "go",
|
||||
actual = "@go_sdk//:bin/go",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
buildifier(
|
||||
name = "buildifier",
|
||||
)
|
10
INSTALL.md
10
INSTALL.md
|
@ -1,11 +1,3 @@
|
|||
## Building with Bazel
|
||||
|
||||
Bazel manages Go and C/C++ toolchains and all dependencies.
|
||||
|
||||
[Installation Guide](https://github.com/firedancer-io/firedancer/blob/main/bazel/README.md#installation) (Linux and macOS)
|
||||
|
||||
bazel build //cmd/radiance
|
||||
|
||||
## Building with Go
|
||||
|
||||
Radiance commands can be built with standard Go tooling (Go >= 1.19 is required),
|
||||
|
@ -17,8 +9,6 @@ By default, commands that require extra dependencies (e.g. RocksDB) are disabled
|
|||
|
||||
### With RocksDB
|
||||
|
||||
> We recommend using Bazel for Cgo builds.
|
||||
|
||||
Radiance tools that require direct access to the blockstore (such as `blockstore` and `car`)
|
||||
require a working C toolchain and extra compiler arguments to link against rocksdb.
|
||||
|
||||
|
|
132
WORKSPACE
132
WORKSPACE
|
@ -1,132 +0,0 @@
|
|||
workspace(name = "firedancer_radiance")
|
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
||||
|
||||
################################################################################
|
||||
# Dependencies #
|
||||
################################################################################
|
||||
|
||||
# Dep: gflags (C++)
|
||||
http_archive(
|
||||
name = "com_github_gflags_gflags",
|
||||
sha256 = "34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf",
|
||||
strip_prefix = "gflags-2.2.2",
|
||||
urls = ["https://github.com/gflags/gflags/archive/v2.2.2.tar.gz"],
|
||||
)
|
||||
|
||||
# Dep: RocksDB (C++)
|
||||
http_archive(
|
||||
name = "com_github_facebook_rocksdb",
|
||||
build_file = "//:third_party/rocksdb/rocksdb.bzl",
|
||||
sha256 = "b8ac9784a342b2e314c821f6d701148912215666ac5e9bdbccd93cf3767cb611",
|
||||
strip_prefix = "rocksdb-7.7.3",
|
||||
urls = ["https://github.com/facebook/rocksdb/archive/v7.7.3.tar.gz"],
|
||||
)
|
||||
|
||||
# Dep: grocksdb (Go)
|
||||
http_archive(
|
||||
name = "com_github_linxgnu_grocksdb",
|
||||
build_file = "//:third_party/go/grocksdb/grocksdb.bzl",
|
||||
sha256 = "3e76617aaa74a2658ac59a03b77c632c41971ae01a5ccb6e1b8edeff59f567bf",
|
||||
strip_prefix = "grocksdb-1.7.10",
|
||||
urls = ["https://github.com/linxGnu/grocksdb/archive/refs/tags/v1.7.10.tar.gz"],
|
||||
)
|
||||
|
||||
################################################################################
|
||||
# Go toolchain #
|
||||
# Gazelle build file generator #
|
||||
################################################################################
|
||||
|
||||
http_archive(
|
||||
name = "io_bazel_rules_go",
|
||||
sha256 = "19ef30b21eae581177e0028f6f4b1f54c66467017be33d211ab6fc81da01ea4d",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.0/rules_go-v0.38.0.zip",
|
||||
"https://github.com/bazelbuild/rules_go/releases/download/v0.38.0/rules_go-v0.38.0.zip",
|
||||
],
|
||||
)
|
||||
|
||||
http_archive(
|
||||
name = "bazel_gazelle",
|
||||
sha256 = "448e37e0dbf61d6fa8f00aaa12d191745e14f07c31cabfa731f0c8e8a4f41b97",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.28.0/bazel-gazelle-v0.28.0.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.28.0/bazel-gazelle-v0.28.0.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
|
||||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
||||
|
||||
go_rules_dependencies()
|
||||
|
||||
go_register_toolchains(version = "1.19.5")
|
||||
|
||||
################################################################################
|
||||
# Custom Go dependencies #
|
||||
################################################################################
|
||||
|
||||
# add `go_repository` rules here to override Gazelle-generated files.
|
||||
|
||||
################################################################################
|
||||
# go mod #
|
||||
################################################################################
|
||||
|
||||
gazelle_dependencies()
|
||||
|
||||
load("//:third_party/go/repositories.bzl", "go_repositories")
|
||||
|
||||
# gazelle:repository_macro third_party/go/repositories.bzl%go_repositories
|
||||
go_repositories()
|
||||
|
||||
################################################################################
|
||||
# Protobuf #
|
||||
################################################################################
|
||||
|
||||
http_archive(
|
||||
name = "rules_proto",
|
||||
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
|
||||
strip_prefix = "rules_proto-5.3.0-21.7",
|
||||
urls = [
|
||||
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
|
||||
|
||||
rules_proto_dependencies()
|
||||
|
||||
rules_proto_toolchains()
|
||||
|
||||
################################################################################
|
||||
# Foreign C/C++ build system support #
|
||||
################################################################################
|
||||
|
||||
http_archive(
|
||||
name = "rules_foreign_cc",
|
||||
sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51",
|
||||
strip_prefix = "rules_foreign_cc-0.9.0",
|
||||
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/0.9.0.tar.gz",
|
||||
)
|
||||
|
||||
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
|
||||
|
||||
rules_foreign_cc_dependencies()
|
||||
|
||||
################################################################################
|
||||
# Bazel Tools #
|
||||
################################################################################
|
||||
|
||||
http_archive(
|
||||
name = "com_github_bazelbuild_buildtools",
|
||||
sha256 = "e3bb0dc8b0274ea1aca75f1f8c0c835adbe589708ea89bf698069d0790701ea3",
|
||||
strip_prefix = "buildtools-5.1.0",
|
||||
urls = [
|
||||
"https://github.com/bazelbuild/buildtools/archive/5.1.0.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
|
||||
|
||||
buildifier_dependencies()
|
|
@ -1,25 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "radiance_lib",
|
||||
srcs = ["main.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//cmd/radiance/blockstore",
|
||||
"//cmd/radiance/car",
|
||||
"//cmd/radiance/gossip",
|
||||
"//cmd/radiance/replay",
|
||||
"@com_github_gagliardetto_solana_go//programs/vote",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
name = "radiance",
|
||||
embed = [":radiance_lib"],
|
||||
gotags = ["rocksdb"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
|
@ -1,23 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "blockstore",
|
||||
srcs = ["blockstore.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/radiance/blockstore/dumpbatches",
|
||||
"//cmd/radiance/blockstore/dumpshreds",
|
||||
"//cmd/radiance/blockstore/verifydata",
|
||||
"//cmd/radiance/blockstore/yaml",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
],
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "blockstore_missing",
|
||||
srcs = ["blockstore_missing.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@com_github_spf13_cobra//:cobra"],
|
||||
)
|
|
@ -1,16 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "dumpbatches",
|
||||
srcs = ["dumpbatches.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore/dumpbatches",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/radiance/blockstore/util",
|
||||
"//pkg/blockstore",
|
||||
"//pkg/shred",
|
||||
"@com_github_linxgnu_grocksdb//:grocksdb",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,15 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "dumpshreds",
|
||||
srcs = ["dumpshreds.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore/dumpshreds",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/radiance/blockstore/util",
|
||||
"//pkg/blockstore",
|
||||
"@com_github_linxgnu_grocksdb//:grocksdb",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,15 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "util",
|
||||
srcs = ["ints.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore/util",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "util_test",
|
||||
srcs = ["ints_test.go"],
|
||||
embed = [":util"],
|
||||
deps = ["@com_github_stretchr_testify//assert"],
|
||||
)
|
|
@ -1,23 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "verifydata",
|
||||
srcs = [
|
||||
"verifydata.go",
|
||||
"worker.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore/verifydata",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/blockstore",
|
||||
"//pkg/shred",
|
||||
"@com_github_linxgnu_grocksdb//:grocksdb",
|
||||
"@com_github_mattn_go_isatty//:go-isatty",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@com_github_vbauerster_mpb_v8//:mpb",
|
||||
"@com_github_vbauerster_mpb_v8//decor",
|
||||
"@com_github_vividcortex_ewma//:ewma",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
"@org_golang_x_sync//errgroup",
|
||||
],
|
||||
)
|
|
@ -1,21 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "yaml",
|
||||
srcs = [
|
||||
"shreds.go",
|
||||
"yaml.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/blockstore/yaml",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/radiance/blockstore/util",
|
||||
"//pkg/blockstore",
|
||||
"//pkg/shred",
|
||||
"@com_github_linxgnu_grocksdb//:grocksdb",
|
||||
"@com_github_segmentio_textio//:textio",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@in_gopkg_yaml_v3//:yaml_v3",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,13 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "car",
|
||||
srcs = ["car.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/car",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/radiance/car/create",
|
||||
"//cmd/radiance/car/dump",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
],
|
||||
)
|
|
@ -1,15 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "create",
|
||||
srcs = ["create.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/car/create",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/blockstore",
|
||||
"//pkg/ipld/cargen",
|
||||
"@com_github_pkg_profile//:profile",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,17 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "dump",
|
||||
srcs = ["dump.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/car/dump",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/ipld/ipldgen",
|
||||
"@com_github_gagliardetto_binary//:binary",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_ipld_go_car//:go-car",
|
||||
"@com_github_multiformats_go_multicodec//:go-multicodec",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,13 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "gossip",
|
||||
srcs = ["gossip.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/gossip",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/radiance/gossip/ping",
|
||||
"//cmd/radiance/gossip/pull",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
],
|
||||
)
|
|
@ -1,14 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "ping",
|
||||
srcs = ["ping.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/gossip/ping",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/gossip",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
"@org_golang_x_sync//errgroup",
|
||||
],
|
||||
)
|
|
@ -1,14 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "pull",
|
||||
srcs = ["pull.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/gossip/pull",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/gossip",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
"@org_golang_x_sync//errgroup",
|
||||
],
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "replay",
|
||||
srcs = ["replay.go"],
|
||||
importpath = "go.firedancer.io/radiance/cmd/radiance/replay",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/blockstore",
|
||||
"//pkg/genesis",
|
||||
"//pkg/merkletree",
|
||||
"//pkg/poh",
|
||||
"//pkg/runtime",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_spf13_cobra//:cobra",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "fixtures",
|
||||
srcs = [
|
||||
"fixtures.go",
|
||||
"shreds.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/fixtures",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@com_github_stretchr_testify//require"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "blobs",
|
||||
srcs = glob(["**"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
|
@ -1,8 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "archiveutil",
|
||||
srcs = ["archiveutil.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/archiveutil",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
|
@ -1,14 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "blockhash",
|
||||
srcs = ["blockhash.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/blockhash",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//proto/env/v1:env",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_gagliardetto_solana_go//rpc",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,45 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "blockstore",
|
||||
srcs = [
|
||||
"bincode.go",
|
||||
"bincode_rocks.go",
|
||||
"blockstore.go",
|
||||
"blockstore_rocks.go",
|
||||
"blockwalk.go",
|
||||
"blockwalk_rocks.go",
|
||||
"meta.go",
|
||||
"meta_rocks.go",
|
||||
"shreds.go",
|
||||
"shreds_rocks.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/blockstore",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/shred",
|
||||
"@com_github_gagliardetto_binary//:binary",
|
||||
"@com_github_linxgnu_grocksdb//:grocksdb",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "blockstore_test",
|
||||
srcs = [
|
||||
"blockwalk_test.go",
|
||||
"shreds_bench_test.go",
|
||||
"shreds_test.go",
|
||||
],
|
||||
data = ["//fixtures:blobs"],
|
||||
embed = [":blockstore"],
|
||||
gotags = ["rocksdb"],
|
||||
rundir = ".",
|
||||
deps = [
|
||||
"//fixtures",
|
||||
"//pkg/shred",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
],
|
||||
)
|
|
@ -1,14 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "clusternodes",
|
||||
srcs = ["gossip.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/clusternodes",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//proto/env/v1:env",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_gagliardetto_solana_go//rpc",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,39 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "compactindex",
|
||||
srcs = [
|
||||
"compactindex.go",
|
||||
"query.go",
|
||||
] + select({
|
||||
"@platforms//os:osx": ["build.go"],
|
||||
"@platforms//os:linux": ["build.go"],
|
||||
"//conditions:default": [],
|
||||
}) + select({
|
||||
"@platforms//os:linux": ["fallocate_linux.go"],
|
||||
"//conditions:default": ["fallocate_generic.go"],
|
||||
}),
|
||||
importpath = "go.firedancer.io/radiance/pkg/compactindex",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_cespare_xxhash_v2//:xxhash",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "compactindex_test",
|
||||
srcs = [
|
||||
"compactindex_test.go",
|
||||
"query_test.go",
|
||||
] + select({
|
||||
"@platforms//os:osx": ["build_test.go"],
|
||||
"@platforms//os:linux": ["build_test.go"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
embed = [":compactindex"],
|
||||
deps = [
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
"@com_github_vbauerster_mpb_v8//decor",
|
||||
],
|
||||
)
|
|
@ -1,9 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "endpoints",
|
||||
srcs = ["endpoints.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/endpoints",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@com_github_gagliardetto_solana_go//rpc"],
|
||||
)
|
|
@ -1,23 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "envfile",
|
||||
srcs = [
|
||||
"env.go",
|
||||
"filter_nodes.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/envfile",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//proto/env/v1:env",
|
||||
"@org_golang_google_protobuf//encoding/prototext",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "envfile_test",
|
||||
srcs = ["env_test.go"],
|
||||
data = glob(["testdata/**"]),
|
||||
embed = [":envfile"],
|
||||
deps = ["//proto/env/v1:env"],
|
||||
)
|
|
@ -1,32 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "genesis",
|
||||
srcs = [
|
||||
"file.go",
|
||||
"genesis.go",
|
||||
"serde.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/genesis",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/archiveutil",
|
||||
"//pkg/runtime",
|
||||
"@com_github_gagliardetto_binary//:binary",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "genesis_test",
|
||||
srcs = ["file_test.go"],
|
||||
data = ["//fixtures:blobs"],
|
||||
embed = [":genesis"],
|
||||
rundir = ".",
|
||||
deps = [
|
||||
"//fixtures",
|
||||
"//pkg/runtime",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
],
|
||||
)
|
|
@ -1,44 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "gossip",
|
||||
srcs = [
|
||||
"bitvec.go",
|
||||
"bloom.go",
|
||||
"client.go",
|
||||
"crds.go",
|
||||
"ping.go",
|
||||
"pull.go",
|
||||
"schema.go",
|
||||
"socketaddr.go",
|
||||
"transaction.go",
|
||||
"types.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/gossip",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_novifinancial_serde_reflection_serde_generate_runtime_golang//bincode",
|
||||
"@com_github_novifinancial_serde_reflection_serde_generate_runtime_golang//serde",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "gossip_test",
|
||||
srcs = [
|
||||
"bloom_test.go",
|
||||
"crds_test.go",
|
||||
"message_test.go",
|
||||
"ping_test.go",
|
||||
],
|
||||
data = ["//fixtures:blobs"],
|
||||
embed = [":gossip"],
|
||||
rundir = ".",
|
||||
deps = [
|
||||
"//fixtures",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
"@org_golang_x_sync//errgroup",
|
||||
],
|
||||
)
|
|
@ -1,38 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "car",
|
||||
srcs = [
|
||||
"car.go",
|
||||
"writer.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/ipld/car",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_filecoin_project_go_leb128//:go-leb128",
|
||||
"@com_github_ipfs_go_cid//:go-cid",
|
||||
"@com_github_ipld_go_car//:go-car",
|
||||
"@com_github_ipld_go_ipld_prime//codec/dagcbor",
|
||||
"@com_github_ipld_go_ipld_prime//datamodel",
|
||||
"@com_github_multiformats_go_multicodec//:go-multicodec",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "car_test",
|
||||
srcs = [
|
||||
"car_test.go",
|
||||
"writer_test.go",
|
||||
],
|
||||
embed = [":car"],
|
||||
deps = [
|
||||
"@com_github_ipfs_go_cid//:go-cid",
|
||||
"@com_github_ipfs_go_datastore//:go-datastore",
|
||||
"@com_github_ipfs_go_ipfs_blockstore//:go-ipfs-blockstore",
|
||||
"@com_github_ipfs_go_ipld_cbor//:go-ipld-cbor",
|
||||
"@com_github_ipld_go_car//:go-car",
|
||||
"@com_github_multiformats_go_multicodec//:go-multicodec",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
],
|
||||
)
|
|
@ -1,32 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "cargen",
|
||||
srcs = ["cargen.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/ipld/cargen",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/blockstore",
|
||||
"//pkg/ipld/car",
|
||||
"//pkg/ipld/ipldgen",
|
||||
"//pkg/shred",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "cargen_test",
|
||||
srcs = ["cargen_test.go"],
|
||||
embed = [":cargen"],
|
||||
deps = [
|
||||
"//pkg/blockstore",
|
||||
"//pkg/shred",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_go_logr_logr//testr",
|
||||
"@com_github_ipfs_go_cid//:go-cid",
|
||||
"@com_github_ipld_go_car//:go-car",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,30 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "ipldgen",
|
||||
srcs = ["ipldgen.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/ipld/ipldgen",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/ipld/car",
|
||||
"//pkg/ipld/ipldsch",
|
||||
"//pkg/shred",
|
||||
"@com_github_gagliardetto_binary//:binary",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_ipld_go_ipld_prime//datamodel",
|
||||
"@com_github_ipld_go_ipld_prime//linking/cid",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "ipldgen_test",
|
||||
srcs = ["ipldgen_test.go"],
|
||||
embed = [":ipldgen"],
|
||||
deps = [
|
||||
"//pkg/ipld/car",
|
||||
"@com_github_ipfs_go_cid//:go-cid",
|
||||
"@com_github_multiformats_go_multihash//:go-multihash",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
],
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "ipldsch",
|
||||
srcs = [
|
||||
"ipldsch.go",
|
||||
"ipldsch_minima.go",
|
||||
"ipldsch_satisfaction.go",
|
||||
"ipldsch_types.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/ipld/ipldsch",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_ipld_go_ipld_prime//datamodel",
|
||||
"@com_github_ipld_go_ipld_prime//node/mixins",
|
||||
"@com_github_ipld_go_ipld_prime//schema",
|
||||
],
|
||||
)
|
|
@ -1,13 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "kafka",
|
||||
srcs = ["kafka.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/kafka",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//proto/env/v1:env",
|
||||
"@com_github_twmb_franz_go//pkg/kgo",
|
||||
"@com_github_twmb_franz_go//pkg/sasl/scram",
|
||||
],
|
||||
)
|
|
@ -1,14 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "leaderschedule",
|
||||
srcs = ["epoch.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/leaderschedule",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//proto/env/v1:env",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
"@com_github_gagliardetto_solana_go//rpc",
|
||||
"@io_k8s_klog_v2//:klog",
|
||||
],
|
||||
)
|
|
@ -1,15 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "merkletree",
|
||||
srcs = ["merkletree.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/merkletree",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "merkletree_test",
|
||||
srcs = ["merkletree_test.go"],
|
||||
embed = [":merkletree"],
|
||||
deps = ["@com_github_stretchr_testify//assert"],
|
||||
)
|
|
@ -1,8 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "netlink",
|
||||
srcs = ["interfaces.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/netlink",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "nftables",
|
||||
srcs = ["nftables.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/nftables",
|
||||
target_compatible_with = select({
|
||||
"@platforms//os:linux": [],
|
||||
"//conditions:default": ["@platforms//:incompatible"],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_google_nftables//:nftables",
|
||||
"@com_github_google_nftables//binaryutil",
|
||||
"@com_github_google_nftables//expr",
|
||||
"@org_golang_x_sys//unix",
|
||||
],
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "poh",
|
||||
srcs = ["poh.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/poh",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "poh_test",
|
||||
srcs = ["poh_test.go"],
|
||||
embed = [":poh"],
|
||||
deps = [
|
||||
"@com_github_minio_sha256_simd//:sha256-simd",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
],
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "runtime",
|
||||
srcs = [
|
||||
"runtime.go",
|
||||
"serde.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/runtime",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@com_github_gagliardetto_binary//:binary"],
|
||||
)
|
|
@ -1,26 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "sbf",
|
||||
srcs = [
|
||||
"asm.go",
|
||||
"interpreter.go",
|
||||
"opcode.go",
|
||||
"program.go",
|
||||
"sbf.go",
|
||||
"stack.go",
|
||||
"syscalls.go",
|
||||
"verifier.go",
|
||||
"vm.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/sbf",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@com_github_spaolacci_murmur3//:murmur3"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "sbf_test",
|
||||
srcs = ["opcode_test.go"],
|
||||
embed = [":sbf"],
|
||||
deps = ["@com_github_stretchr_testify//require"],
|
||||
)
|
|
@ -1,8 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "cu",
|
||||
srcs = ["cu.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/sbf/cu",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
|
@ -1,32 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "loader",
|
||||
srcs = [
|
||||
"arithmetic.go",
|
||||
"copy.go",
|
||||
"loader.go",
|
||||
"parse.go",
|
||||
"relocate.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/sbf/loader",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//pkg/sbf"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "loader_test",
|
||||
srcs = [
|
||||
"loader_test.go",
|
||||
"relocate_test.go",
|
||||
],
|
||||
data = ["//fixtures:blobs"],
|
||||
embed = [":loader"],
|
||||
rundir = ".",
|
||||
deps = [
|
||||
"//fixtures",
|
||||
"//pkg/sbf",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
],
|
||||
)
|
|
@ -1,36 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "sealevel",
|
||||
srcs = [
|
||||
"cu.go",
|
||||
"logging.go",
|
||||
"params.go",
|
||||
"sealevel.go",
|
||||
"syscalls.go",
|
||||
"syscalls_log.go",
|
||||
"syscalls_misc.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/sealevel",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//pkg/sbf",
|
||||
"//pkg/sbf/cu",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "sealevel_test",
|
||||
srcs = ["sealevel_test.go"],
|
||||
data = ["//fixtures:blobs"],
|
||||
embed = [":sealevel"],
|
||||
rundir = ".",
|
||||
deps = [
|
||||
"//fixtures",
|
||||
"//pkg/sbf",
|
||||
"//pkg/sbf/loader",
|
||||
"@com_github_stretchr_testify//assert",
|
||||
"@com_github_stretchr_testify//require",
|
||||
],
|
||||
)
|
|
@ -1,16 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "shred",
|
||||
srcs = [
|
||||
"entry.go",
|
||||
"shred.go",
|
||||
"shredder.go",
|
||||
],
|
||||
importpath = "go.firedancer.io/radiance/pkg/shred",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_gagliardetto_binary//:binary",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
],
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "tpu",
|
||||
srcs = ["tpu.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/tpu",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@com_github_gagliardetto_binary//:binary",
|
||||
"@com_github_gagliardetto_solana_go//:solana-go",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "tpu_test",
|
||||
srcs = ["tpu_test.go"],
|
||||
embed = [":tpu"],
|
||||
)
|
|
@ -1,15 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||||
|
||||
go_library(
|
||||
name = "util",
|
||||
srcs = ["util.go"],
|
||||
importpath = "go.firedancer.io/radiance/pkg/util",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "util_test",
|
||||
srcs = ["util_test.go"],
|
||||
embed = [":util"],
|
||||
deps = ["@com_github_stretchr_testify//assert"],
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "env",
|
||||
srcs = ["env.pb.go"],
|
||||
importpath = "go.firedancer.io/radiance/proto/env/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@org_golang_google_protobuf//reflect/protoreflect",
|
||||
"@org_golang_google_protobuf//runtime/protoimpl",
|
||||
],
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "heimdall",
|
||||
srcs = ["heimdall.pb.go"],
|
||||
importpath = "go.firedancer.io/radiance/proto/heimdall/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@org_golang_google_protobuf//reflect/protoreflect",
|
||||
"@org_golang_google_protobuf//runtime/protoimpl",
|
||||
],
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "network",
|
||||
srcs = ["slot_status.pb.go"],
|
||||
importpath = "go.firedancer.io/radiance/proto/network/v1",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@org_golang_google_protobuf//reflect/protoreflect",
|
||||
"@org_golang_google_protobuf//runtime/protoimpl",
|
||||
],
|
||||
)
|
|
@ -1,62 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "grocksdb",
|
||||
srcs = [
|
||||
"array.go",
|
||||
"backup.go",
|
||||
"c.h",
|
||||
"cache.go",
|
||||
"cf_handle.go",
|
||||
"cf_metadata.go",
|
||||
"checkpoint.go",
|
||||
"compaction_filter.go",
|
||||
"comparator.go",
|
||||
"cow.go",
|
||||
"cuckoo_table.go",
|
||||
"db.go",
|
||||
"dbpath.go",
|
||||
"doc.go",
|
||||
"env.go",
|
||||
"filter_policy.go",
|
||||
"grocksdb.c",
|
||||
"grocksdb.h",
|
||||
"iterator.go",
|
||||
"jemalloc.go",
|
||||
"mem_alloc.go",
|
||||
"memory_usage.go",
|
||||
"merge_operator.go",
|
||||
"non_builtin.go",
|
||||
"optimistic_transaction_db.go",
|
||||
"options.go",
|
||||
"options_backup.go",
|
||||
"options_block_based_table.go",
|
||||
"options_compaction.go",
|
||||
"options_compression.go",
|
||||
"options_env.go",
|
||||
"options_flush.go",
|
||||
"options_ingest.go",
|
||||
"options_read.go",
|
||||
"options_restore.go",
|
||||
"options_transaction.go",
|
||||
"options_transactiondb.go",
|
||||
"options_write.go",
|
||||
"perf_context.go",
|
||||
"perf_level.go",
|
||||
"ratelimiter.go",
|
||||
"slice.go",
|
||||
"slice_transform.go",
|
||||
"snapshot.go",
|
||||
"sst_file_writer.go",
|
||||
"transaction.go",
|
||||
"transactiondb.go",
|
||||
"util.go",
|
||||
"wal_iterator.go",
|
||||
"write_batch.go",
|
||||
"write_batch_wi.go",
|
||||
],
|
||||
cdeps = ["@com_github_facebook_rocksdb//:rocksdb"],
|
||||
cgo = True,
|
||||
importpath = "github.com/linxGnu/grocksdb",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -1,31 +0,0 @@
|
|||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = glob(["**"]),
|
||||
)
|
||||
|
||||
cmake(
|
||||
name = "rocksdb",
|
||||
lib_source = "//:srcs",
|
||||
out_lib_dir = "lib64",
|
||||
out_static_libs = ["librocksdb.a"],
|
||||
visibility = ["//visibility:public"],
|
||||
build_args = ["--parallel `njobs`"],
|
||||
generate_args = ["-G Ninja"],
|
||||
linkopts = ["-lz", "-lbz2", "-lsnappy", "-lzstd"],
|
||||
cache_entries = {
|
||||
"ROCKSDB_BUILD_SHARED": "OFF",
|
||||
"WITH_BZ2": "ON",
|
||||
"WITH_SNAPPY": "ON",
|
||||
"WITH_ZLIB": "ON",
|
||||
"WITH_ZSTD": "ON",
|
||||
"WITH_ALL_TESTS": "OFF",
|
||||
"WITH_BENCHMARK_TOOLS": "OFF",
|
||||
"WITH_CORE_TOOLS": "OFF",
|
||||
"WITH_RUNTIME_DEBUG": "OFF",
|
||||
"WITH_TESTS": "OFF",
|
||||
"WITH_TOOLS": "OFF",
|
||||
"WITH_TRACE_TOOLS": "OFF",
|
||||
},
|
||||
)
|
|
@ -1,12 +0,0 @@
|
|||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
go_library(
|
||||
name = "confirmed_block",
|
||||
srcs = ["confirmed_block.pb.go"],
|
||||
importpath = "go.firedancer.io/radiance/third_party/solana_proto/confirmed_block",
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"@org_golang_google_protobuf//reflect/protoreflect",
|
||||
"@org_golang_google_protobuf//runtime/protoimpl",
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue