mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-12-30 11:31:02 +01:00
Compare commits
4 Commits
dagger-sdk
...
44fa0240f8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44fa0240f8 | ||
|
62de24153a
|
|||
|
9513bb5653
|
|||
|
6b43d5bc36
|
12
ARCHITECTURE.md
Normal file
12
ARCHITECTURE.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Architecture
|
||||||
|
|
||||||
|
- `.` Root project mainly used for generating the CLI, which in turn is used to
|
||||||
|
bootstrap the code generation from `dagger`
|
||||||
|
- `crates/dagger-core` Contains all base types used during actual usage. This is
|
||||||
|
where the primary logic lives in which the user interacts (\*disclaimer: most
|
||||||
|
stuff haven't moved in here yet.)
|
||||||
|
- `crates/dagger-sdk` Contains the actual sdk in which the user interacts,
|
||||||
|
`dagger-core` is reexported through this API as well.
|
||||||
|
- `crates/dagger-codegen` This is the bulk of the work, it takes the input
|
||||||
|
graphql and spits out the API in which the user interacts, this is heavily
|
||||||
|
inspired by other `dagger-sdk's`. It primarily turns graphql into rust code.
|
||||||
11
CONTRIBUTING.md
Normal file
11
CONTRIBUTING.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
The sdk is still quite young, so feel free to either:
|
||||||
|
|
||||||
|
- Refactor
|
||||||
|
- Document
|
||||||
|
- Improve the code
|
||||||
|
|
||||||
|
Feel free to ping me on discord @Hermansen#4325, or just create an issue if
|
||||||
|
there is a missing feature, or you'd like some mentorship in getting into the
|
||||||
|
code
|
||||||
36
Cargo.lock
generated
36
Cargo.lock
generated
@@ -537,9 +537,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures"
|
name = "futures"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "13e2792b0ff0340399d58445b88fd9770e3489eff258a4cbc1523418f12abf84"
|
checksum = "531ac96c6ff5fd7c62263c5e3c67a603af4fcaee2e1a0ae5565ba3a11e69e549"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-channel",
|
"futures-channel",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
@@ -552,9 +552,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-channel"
|
name = "futures-channel"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "2e5317663a9089767a1ec00a487df42e0ca174b61b4483213ac24448e4664df5"
|
checksum = "164713a5a0dcc3e7b4b1ed7d3b433cabc18025386f9339346e8daf15963cf7ac"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-sink",
|
"futures-sink",
|
||||||
@@ -562,15 +562,15 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-core"
|
name = "futures-core"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ec90ff4d0fe1f57d600049061dc6bb68ed03c7d2fbd697274c41805dcb3f8608"
|
checksum = "86d7a0c1aa76363dac491de0ee99faf6941128376f1cf96f07db7603b7de69dd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-executor"
|
name = "futures-executor"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e8de0a35a6ab97ec8869e32a2473f4b1324459e14c29275d14b10cb1fd19b50e"
|
checksum = "1997dd9df74cdac935c76252744c1ed5794fac083242ea4fe77ef3ed60ba0f83"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-task",
|
"futures-task",
|
||||||
@@ -579,15 +579,15 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-io"
|
name = "futures-io"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531"
|
checksum = "89d422fa3cbe3b40dca574ab087abb5bc98258ea57eea3fd6f1fa7162c778b91"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-macro"
|
name = "futures-macro"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "95a73af87da33b5acf53acfebdc339fe592ecf5357ac7c0a7734ab9d8c876a70"
|
checksum = "3eb14ed937631bd8b8b8977f2c198443447a8355b6e3ca599f38c975e5a963b6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@@ -596,21 +596,21 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-sink"
|
name = "futures-sink"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f310820bb3e8cfd46c80db4d7fb8353e15dfff853a127158425f31e0be6c8364"
|
checksum = "ec93083a4aecafb2a80a885c9de1f0ccae9dbd32c2bb54b0c3a65690e0b8d2f2"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-task"
|
name = "futures-task"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dcf79a1bf610b10f42aea489289c5a2c478a786509693b80cd39c44ccd936366"
|
checksum = "fd65540d33b37b16542a0438c12e6aeead10d4ac5d05bd3f805b8f35ab592879"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-util"
|
name = "futures-util"
|
||||||
version = "0.3.26"
|
version = "0.3.27"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9c1d6de3acfef38d2be4b1f543f553131788603495be83da675e180c8d6b7bd1"
|
checksum = "3ef6b17e481503ec85211fed8f39d1970f128935ca1f814cd32ac4a6842e84ab"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-channel",
|
"futures-channel",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
|
|||||||
40
README.md
40
README.md
@@ -1,40 +0,0 @@
|
|||||||
# dagger-rs
|
|
||||||
|
|
||||||
A dagger sdk written in rust for rust.
|
|
||||||
|
|
||||||
# Usage
|
|
||||||
|
|
||||||
See [dagger-sdk](./crates/dagger-sdk/README.md)
|
|
||||||
|
|
||||||
### Status
|
|
||||||
|
|
||||||
- [x] dagger cli downloader
|
|
||||||
- [x] dagger network session
|
|
||||||
- [x] graphql rust codegen (User API)
|
|
||||||
- [x] Scalars
|
|
||||||
- [x] Enums
|
|
||||||
- [x] Input
|
|
||||||
- [x] Objects
|
|
||||||
- [x] Implement context and querier
|
|
||||||
- [x] Marshaller
|
|
||||||
- [x] Querier
|
|
||||||
- [x] Context
|
|
||||||
- [x] Deserializer for nested response (bind)
|
|
||||||
- [x] Add codegen to hook into querier
|
|
||||||
- [x] fix build / release cycle
|
|
||||||
- [x] general api stabilisation
|
|
||||||
- [x] document usage
|
|
||||||
- [x] make async variant
|
|
||||||
|
|
||||||
## Architecture
|
|
||||||
|
|
||||||
- `.` Root project mainly used for generating the CLI, which in turn is used to
|
|
||||||
bootstrap the code generation from `dagger`
|
|
||||||
- `crates/dagger-core` Contains all base types used during actual usage. This is
|
|
||||||
where the primary logic lives in which the user interacts (\*disclaimer: most
|
|
||||||
stuff haven't moved in here yet.)
|
|
||||||
- `crates/dagger-sdk` Contains the actual sdk in which the user interacts,
|
|
||||||
`dagger-core` is reexported through this API as well.
|
|
||||||
- `crates/dagger-codegen` This is the bulk of the work, it takes the input
|
|
||||||
graphql and spits out the API in which the user interacts, this is heavily
|
|
||||||
inspired by other `dagger-sdk's`. It primarily turns graphql into rust code.
|
|
||||||
@@ -15,7 +15,7 @@ dagger-core = { path = "../dagger-core", version = "^0.2.8" }
|
|||||||
|
|
||||||
base64 = "0.21.0"
|
base64 = "0.21.0"
|
||||||
eyre = "0.6.8"
|
eyre = "0.6.8"
|
||||||
futures = "0.3.26"
|
futures = "0.3.27"
|
||||||
gql_client = "1.0.7"
|
gql_client = "1.0.7"
|
||||||
serde = { version = "1.0.152", features = ["derive"] }
|
serde = { version = "1.0.152", features = ["derive"] }
|
||||||
serde_json = "1.0.93"
|
serde_json = "1.0.93"
|
||||||
|
|||||||
Reference in New Issue
Block a user