This repository was created as a means of building seastar applications using Bazel.
It can build hello world application but it's not yet ready for production.
Tests and demos can be run using following commands:
bazel run @seastar//:hello-world
bazel test @seastar//...
- Release and feature flags.
- Build and run seastar tests.
- Build seastar with DPDK support.
In your WORKSPACE
file add:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "seastar_bazel",
# TODO: Get the latest sha256 value from a bazel debug message.
# sha256 = "...",
strip_prefix = "seastar_bazel-8327c59",
# Replace 8327c59 with the latest commit.
url = "https://github.com/crackcomm/seastar_bazel/archive/8327c59.tar.gz",
)
load("@seastar_bazel//:seastar_deps.bzl", "seastar_deps")
seastar_deps()
load("@seastar_bazel//:seastar.bzl", "seastar")
seastar()
See BUILD file in examples.
To use local version of seastar use new_local_repository
rule before seastar
repository rule call.
new_local_repository(
name = "seastar",
path = "my-seastar",
build_file = "@seastar_bazel//:third_party/seastar.BUILD",
)
Based on tensorflow networking.