Skip to content

Commit

Permalink
separate crate for metagen-client-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Natoandro committed Nov 26, 2024
1 parent 57d7ea6 commit 4c07d0a
Show file tree
Hide file tree
Showing 21 changed files with 2,830 additions and 8,015 deletions.
20 changes: 10 additions & 10 deletions .ghjk/lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -1082,37 +1082,37 @@
"ty": "denoFile@v1",
"key": "dev-gate6",
"desc": "Launch the typegate from a locally found meta bin.",
"envKey": "bciqcljozrbuwh7aum6v6soif6qr2nvpwr7gbyxrmob3ybh4bsxpqfyy"
"envKey": "bciqk7rioqxzcpzf572poq2vwefpcmqnboofojgkgonvpih3q6wwyldq"
},
"dev-gate5": {
"ty": "denoFile@v1",
"key": "dev-gate5",
"desc": "Launch the typegate from the latests published image.",
"envKey": "bciqcljozrbuwh7aum6v6soif6qr2nvpwr7gbyxrmob3ybh4bsxpqfyy"
"envKey": "bciqk7rioqxzcpzf572poq2vwefpcmqnboofojgkgonvpih3q6wwyldq"
},
"dev-gate4": {
"ty": "denoFile@v1",
"key": "dev-gate4",
"desc": "Launch the typegate from the locally built typegate image.",
"envKey": "bciqcljozrbuwh7aum6v6soif6qr2nvpwr7gbyxrmob3ybh4bsxpqfyy"
"envKey": "bciqk7rioqxzcpzf572poq2vwefpcmqnboofojgkgonvpih3q6wwyldq"
},
"dev-gate3": {
"ty": "denoFile@v1",
"key": "dev-gate3",
"desc": "Launch the typegate from meta-cli cmd.",
"envKey": "bciqcljozrbuwh7aum6v6soif6qr2nvpwr7gbyxrmob3ybh4bsxpqfyy"
"envKey": "bciqk7rioqxzcpzf572poq2vwefpcmqnboofojgkgonvpih3q6wwyldq"
},
"dev-gate2": {
"ty": "denoFile@v1",
"key": "dev-gate2",
"desc": "Launch the typegate in sync mode.",
"envKey": "bciqgfe63ayh7e7kzg4f47bmaleew7jcdukchs3cg45tvdiwoxotxzfy"
"envKey": "bciqe4fan2davv7bngzw6aygwwbrd7vjviea4rylpwikafl4kqyaxyuq"
},
"dev-gate1": {
"ty": "denoFile@v1",
"key": "dev-gate1",
"desc": "Launch the typegate in single-instance mode.",
"envKey": "bciqcljozrbuwh7aum6v6soif6qr2nvpwr7gbyxrmob3ybh4bsxpqfyy"
"envKey": "bciqk7rioqxzcpzf572poq2vwefpcmqnboofojgkgonvpih3q6wwyldq"
},
"dev-eg-tgraphs": {
"ty": "denoFile@v1",
Expand Down Expand Up @@ -1561,7 +1561,7 @@
}
]
},
"bciqcljozrbuwh7aum6v6soif6qr2nvpwr7gbyxrmob3ybh4bsxpqfyy": {
"bciqk7rioqxzcpzf572poq2vwefpcmqnboofojgkgonvpih3q6wwyldq": {
"provides": [
{
"ty": "posix.envVar",
Expand Down Expand Up @@ -1596,7 +1596,7 @@
{
"ty": "posix.envVar",
"key": "LOG_LEVEL",
"val": "DEBUG"
"val": "DEBUG,substantial=ERROR"
},
{
"ty": "posix.envVar",
Expand Down Expand Up @@ -1629,7 +1629,7 @@
}
]
},
"bciqgfe63ayh7e7kzg4f47bmaleew7jcdukchs3cg45tvdiwoxotxzfy": {
"bciqe4fan2davv7bngzw6aygwwbrd7vjviea4rylpwikafl4kqyaxyuq": {
"provides": [
{
"ty": "posix.envVar",
Expand Down Expand Up @@ -1664,7 +1664,7 @@
{
"ty": "posix.envVar",
"key": "LOG_LEVEL",
"val": "DEBUG"
"val": "DEBUG,substantial=ERROR"
},
{
"ty": "posix.envVar",
Expand Down
115 changes: 80 additions & 35 deletions Cargo.lock

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

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ members = [
"src/meta-cli",
"src/metagen",
"src/metagen/src/fdk_rust/static",
"src/metagen/src/client_rs/static",
"src/mt_deno",
"src/typegate/engine",
"src/typegate/standalone",
"src/typegraph/core",
"src/xtask",
"src/substantial"
]
"src/substantial",
"src/metagen-client-rs",
"tests/metagen/typegraphs/sample/rs",
"tests/metagen/typegraphs/sample/rs_upload",
]

exclude = [
"tests/runtimes/wasm_reflected/rust",
"tests/runtimes/wasm_wire/rust",
"tests/metagen/typegraphs/sample/rs",
"tests/metagen/typegraphs/sample/rs_upload",
"src/pyrt_wit_wire",
]
Expand All @@ -33,6 +34,7 @@ mt_deno = { path = "src/mt_deno/" }
common = { path = "src/common/" }
substantial = { path = "src/substantial/" }
metagen = { path = "src/metagen/" }
metagen-client = { path = "src/metagen-client-rs" }
typegate_engine = { path = "src/typegate/engine" }

# cli
Expand Down
19 changes: 19 additions & 0 deletions src/metagen-client-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "metagen-client"
version.workspace = true
edition.workspace = true

[dependencies]
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
reqwest = { version = "0.12.9", features = ["blocking", "json", "stream", "multipart"] }
mime_guess = "2.0"
futures = { version = "0.3" }
tokio-util = { version = "0.7", features = ["compat", "io"] }
derive_more = { version = "1.0", features = ["debug"] }
lazy_static = "1.5"

# [features]
# default = ["sync"]
# sync = ["reqwest/blocking"]
# async = ["dep:futures", "dep:tokio-util"]
Loading

0 comments on commit 4c07d0a

Please sign in to comment.