mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-09 11:21:51 +01:00
refactor: add basic cargo make gen command
This commit is contained in:
parent
5492a70dde
commit
2d089295bf
@ -3,6 +3,19 @@ command = "cargo"
|
|||||||
args = ["run", "-p", "ci", "--", "codegen"]
|
args = ["run", "-p", "ci", "--", "codegen"]
|
||||||
workspace = false
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.local_codegen]
|
||||||
|
command = "cargo"
|
||||||
|
args = [
|
||||||
|
"run",
|
||||||
|
"-p",
|
||||||
|
"dagger-rs",
|
||||||
|
"--",
|
||||||
|
"generate",
|
||||||
|
"--output",
|
||||||
|
"crates/dagger-sdk/src/gen.rs",
|
||||||
|
]
|
||||||
|
workspace = false
|
||||||
|
|
||||||
[tasks.build]
|
[tasks.build]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["run", "-p", "ci", "--", "ci"]
|
args = ["run", "-p", "ci", "--", "ci"]
|
||||||
@ -20,6 +33,10 @@ args = ["fix", "--workspace", "--allow-dirty"]
|
|||||||
dependencies = ["fmt"]
|
dependencies = ["fmt"]
|
||||||
workspace = false
|
workspace = false
|
||||||
|
|
||||||
|
[tasks.gen]
|
||||||
|
dependencies = ["local_codegen", "fmt", "fix"]
|
||||||
|
workspace = false
|
||||||
|
|
||||||
[tasks.release_crate]
|
[tasks.release_crate]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = [
|
args = [
|
||||||
|
@ -111,8 +111,8 @@ pub struct BuildArg {
|
|||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||||
pub struct PipelineLabel {
|
pub struct PipelineLabel {
|
||||||
pub value: String,
|
|
||||||
pub name: String,
|
pub name: String,
|
||||||
|
pub value: String,
|
||||||
}
|
}
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct CacheVolume {
|
pub struct CacheVolume {
|
||||||
@ -2848,9 +2848,9 @@ impl Socket {
|
|||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
||||||
pub enum CacheSharingMode {
|
pub enum CacheSharingMode {
|
||||||
LOCKED,
|
|
||||||
SHARED,
|
SHARED,
|
||||||
PRIVATE,
|
PRIVATE,
|
||||||
|
LOCKED,
|
||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]
|
||||||
pub enum NetworkProtocol {
|
pub enum NetworkProtocol {
|
||||||
|
Loading…
Reference in New Issue
Block a user