Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from tsirysndr/client-sdk
Browse files Browse the repository at this point in the history
feat: add client sdk
  • Loading branch information
tsirysndr committed May 6, 2023
2 parents 554fbb1 + 977a76d commit 047b53c
Show file tree
Hide file tree
Showing 150 changed files with 8,591 additions and 94 deletions.
15 changes: 15 additions & 0 deletions .vscode/superviseur.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
},
{
"path": "../examples"
},
{
"path": "../sdk/deno"
},
{
"path": "../sdk/gleam"
},
{
"path": "../sdk/go"
},
{
"path": "../sdk/node"
},
{
"path": "../sdk/rust"
}
],
"settings": {}
Expand Down
177 changes: 156 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ notify = "5.1.0"
indexmap = { version = "1.9.2", features = ["serde"] }
async-trait = "0.1.68"
dyn-clone = "1.0.11"
serde_json = "1.0.96"
colored_json = "3.1.0"

[build-dependencies]
tonic-build = "0.8"
31 changes: 22 additions & 9 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure().out_dir("src/api").compile(
&[
"proto/objects/v1alpha1/service.proto",
"proto/superviseur/v1alpha1/control.proto",
"proto/superviseur/v1alpha1/core.proto",
"proto/superviseur/v1alpha1/logging.proto",
],
&["proto"],
)?;
tonic_build::configure()
.type_attribute("objects.v1alpha1.Project", "#[derive(serde::Serialize)]")
.type_attribute("objects.v1alpha1.Service", "#[derive(serde::Serialize)]")
.type_attribute(
"superviseur.v1alpha1.ListProjectsResponse",
"#[derive(serde::Serialize)]",
)
.type_attribute(
"superviseur.v1alpha1.GetProjectResponse",
"#[derive(serde::Serialize)]",
)
.out_dir("src/api")
.compile(
&[
"proto/objects/v1alpha1/service.proto",
"proto/superviseur/v1alpha1/control.proto",
"proto/superviseur/v1alpha1/core.proto",
"proto/superviseur/v1alpha1/logging.proto",
"proto/superviseur/v1alpha1/project.proto",
],
&["proto"],
)?;
Ok(())
}
Loading

0 comments on commit 047b53c

Please sign in to comment.