Skip to content

Commit

Permalink
Merge pull request #36 from avnik/avnik/restruct
Browse files Browse the repository at this point in the history
Cleanup project root, restructuring
  • Loading branch information
mbssrc authored Jan 7, 2025
2 parents e0f702c + 0eff133 commit 20c1024
Show file tree
Hide file tree
Showing 34 changed files with 43 additions and 42 deletions.
43 changes: 3 additions & 40 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,43 +1,6 @@
[workspace]
members = [
"client",
"common",
"."
"crates/client",
"crates/common",
"crates/admin"
]

[package]
authors = ["Alexander Nikolaev <[email protected]>"]
edition = "2021"
license = "Apache 2.0"
name = "givc"
publish = false
version = "0.0.1"

[dependencies]
anyhow = "1.0.86"
async-stream = "0.3"
async-channel = "2.3.1"
strum = {version = "0.26", features = ["derive"]}
clap = {version = "4.5.4", features = ["derive", "env"]}
console = "0.15"
prost = "0.13"
regex = "1.11"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
tokio-stream = "0.1"
tokio-vsock = "0.5"
tonic = {version="0.12", features = ["tls"]}
tonic-types = {version="0.12"}
tonic-reflection = {version="0.12"}
tower = {version = "0.4"}
tracing = "0.1"
tracing-subscriber = {version = "0.3", features = ["env-filter", "tracing-log", "time", "local-time"]}
tracing-journald = {version =" 0.2.0"}
serde = { version = "1.0.202", features = ["derive"]}
serde_json = "1.0.120"
x509-parser = { version = "0.16" }

tokio-listener = { features = ["multi-listener", "tonic012", "vsock"], git = "https://github.com/avnik/tokio-listener", branch = "avnik/vsock-ghaf" }

# GIVC subparts
givc-common = { path="common" }
givc-client = { path="client" }
1 change: 0 additions & 1 deletion common/api

This file was deleted.

36 changes: 36 additions & 0 deletions crates/admin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[package]
authors = ["Alexander Nikolaev <[email protected]>"]
edition = "2021"
license = "Apache 2.0"
name = "givc"
publish = false
version = "0.0.1"

[dependencies]
anyhow = "1.0.86"
async-stream = "0.3"
async-channel = "2.3.1"
strum = {version = "0.26", features = ["derive"]}
clap = {version = "4.5.4", features = ["derive", "env"]}
console = "0.15"
prost = "0.13"
regex = "1.11"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
tokio-stream = "0.1"
tokio-vsock = "0.5"
tonic = {version="0.12", features = ["tls"]}
tonic-types = {version="0.12"}
tonic-reflection = {version="0.12"}
tower = {version = "0.4"}
tracing = "0.1"
tracing-subscriber = {version = "0.3", features = ["env-filter", "tracing-log", "time", "local-time"]}
tracing-journald = {version =" 0.2.0"}
serde = { version = "1.0.202", features = ["derive"]}
serde_json = "1.0.120"
x509-parser = { version = "0.16" }

tokio-listener = { features = ["multi-listener", "tonic012", "vsock"], git = "https://github.com/avnik/tokio-listener", branch = "avnik/vsock-ghaf" }

# GIVC subparts
givc-common = { path="../common" }
givc-client = { path="../client" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions crates/common/api
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion nixos/packages/givc-admin-rs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ let
# Common arguments can be set here to avoid repeating them later
# Note: changes here will rebuild all dependency crates
commonArgs = {
pname = "givc";
version = "0.0.1";
src = lib.cleanSourceWith {
src = craneLib.path src;
filter = protoOrCargo;
Expand Down Expand Up @@ -42,7 +44,7 @@ let
# MY_CUSTOM_VAR = "some value";
postUnpack = ''
# Avoid issue with source filtering, put symlink back into source tree
ln -sf ../api $sourceRoot/common/api
ln -sf ../../api $sourceRoot/crates/common/api
'';
postInstall = ''
mkdir -p $cli/bin $agent/bin
Expand Down

0 comments on commit 20c1024

Please sign in to comment.