Skip to content

Commit

Permalink
feat(metagen): add file upload support for Rust client (#893)
Browse files Browse the repository at this point in the history
Solve
[MET-629](https://linear.app/metatypedev/issue/MET-629/client-add-support-for-file-uploads)
(Part 1)
- Add file upload support to Rust metagen client

<!-- 2. Explain WHY the change cannot be made simpler -->



<!-- 3. Explain HOW users should update their code -->

#### Migration notes

_N/A_


- [x] The change comes with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
  • Loading branch information
Natoandro authored Nov 27, 2024
1 parent 9671d60 commit 2fbb49a
Show file tree
Hide file tree
Showing 47 changed files with 5,470 additions and 6,760 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
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ repos:
exclude: tests/metagen/typegraphs/sample/rs/client.rs
- id: clippy
args:
- "--workspace"
- "--locked"
- "--all-features"
- "--all-targets"
Expand Down
138 changes: 108 additions & 30 deletions Cargo.lock

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

Loading

0 comments on commit 2fbb49a

Please sign in to comment.