feat(tvix/store): initial dummy implementation

This replaces the hello world example from tvix-store with an actual
gRPC endpoint, implementing all of BlobService, DirectoryService and
PathInfoService.

All RPC methods currently respond with the unimplemented gRPC status.

Co-Authored-By: Márton Boros <martonboros@gmail.com>
Change-Id: Ieba333cca44dc1e3f2ffbe676ba7a99e672b9bfb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7664
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2022-12-28 16:40:28 +01:00 committed by flokli
parent d22a9c8610
commit 58f5ff2c17
7 changed files with 175 additions and 22 deletions

20
tvix/Cargo.lock generated
View file

@ -290,9 +290,9 @@ dependencies = [
[[package]]
name = "clap"
version = "4.0.27"
version = "4.0.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0acbd8d28a0a60d7108d7ae850af6ba34cf2d1257fc646980e5f97ce14275966"
checksum = "a7db700bc935f9e43e88d00b0850dae18a63773cfbec6d8e070fccf7fef89a39"
dependencies = [
"bitflags",
"clap_derive",
@ -884,9 +884,9 @@ dependencies = [
[[package]]
name = "is-terminal"
version = "0.4.0"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aae5bc6e2eb41c9def29a3e0f1306382807764b9b53112030eff57435667352d"
checksum = "28dfb6c8100ccc63462345b67d1bbc3679177c75ee4bf59bf29c8b1d110b8189"
dependencies = [
"hermit-abi 0.2.6",
"io-lifetimes",
@ -1045,7 +1045,7 @@ dependencies = [
name = "nix-cli"
version = "0.1.0"
dependencies = [
"clap 4.0.27",
"clap 4.0.32",
"tempfile",
]
@ -1553,9 +1553,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
[[package]]
name = "rustix"
version = "0.36.3"
version = "0.36.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b1fbb4dfc4eb1d390c02df47760bb19a84bb80b301ecc947ab5406394d8223e"
checksum = "4feacf7db682c6c329c4ede12649cd36ecab0f3be5b7d74e6a20304725db4549"
dependencies = [
"bitflags",
"errno",
@ -1889,6 +1889,7 @@ dependencies = [
"libc",
"memchr",
"mio",
"num_cpus",
"pin-project-lite",
"socket2",
"tokio-macros",
@ -2090,7 +2091,7 @@ checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
name = "tvix-cli"
version = "0.1.0"
dependencies = [
"clap 4.0.27",
"clap 4.0.32",
"dirs",
"rustyline",
"smol_str",
@ -2145,11 +2146,14 @@ dependencies = [
"anyhow",
"blake3",
"data-encoding",
"clap 4.0.32",
"lazy_static",
"prost",
"prost-build",
"test-case",
"thiserror",
"tokio",
"tokio-stream",
"tonic",
"tonic-build",
]