feat(tvix/nix-daemon): Initial skeleton for nix-daemon

The goal is to create a drop-in replacement nix-daemon that nix-cpp can
use as a `daemon` store.

Change-Id: Ie092047dcc6a24a3b8d8d1b808f3e6fd2c493bf2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12711
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Vova Kryachko 2024-10-29 14:00:23 -04:00 committed by Vladimir Kryachko
parent eb2ca5f079
commit 9e294db820
6 changed files with 213 additions and 0 deletions

View file

@ -0,0 +1,24 @@
[package]
name = "nix-daemon"
version = "0.1.0"
edition = "2021"
[dependencies]
async-trait = "0.1.83"
clap = { workspace = true, features = ["derive", "env"] }
futures = { workspace = true }
mimalloc = { workspace = true }
nix-compat = { path = "../nix-compat" }
tvix-castore = { path = "../castore" }
tvix-store = { path = "../store" }
tvix-tracing = { path = "../tracing" }
tokio = { workspace = true, features = ["fs", "macros", "net", "rt", "rt-multi-thread", "signal"] }
tokio-listener = { workspace = true }
tracing = { workspace = true }
[lints]
workspace = true
[features]
default = ["otlp"]
otlp = ["tvix-tracing/otlp"]