Skip to content

Commit f109cba

Browse files
committed
feat: temporary fix waiting for: udoprog/genco/issues/39
Signed-off-by: kjuulh <[email protected]>
1 parent 7e67959 commit f109cba

File tree

4 files changed

+422
-112
lines changed

4 files changed

+422
-112
lines changed

sdk/rust/Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/rust/crates/dagger-codegen/src/rust/functions.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ fn format_function_args(
334334
});
335335

336336
let description = quote! {
337-
$(if argument_description.len() > 0 => $(format!("/// ")))
338-
$(if argument_description.len() > 0 => $(format!("/// # Arguments")))
339-
$(if argument_description.len() > 0 => $(format!("/// ")))
337+
$(if argument_description.len() > 0 => $(format!("///\n")))
338+
$(if argument_description.len() > 0 => $(format!("/// # Arguments\n")))
339+
$(if argument_description.len() > 0 => $(format!("///\n")))
340340
$(for arg_desc in argument_description join ($['\r']) => $arg_desc)
341341
};
342342

@@ -350,9 +350,9 @@ fn format_function_args(
350350
))
351351
} else {
352352
let description = quote! {
353-
$(if argument_description.len() > 0 => $(format!("/// ")))
354-
$(if argument_description.len() > 0 => $(format!("/// # Arguments")))
355-
$(if argument_description.len() > 0 => $(format!("/// ")))
353+
$(if argument_description.len() > 0 => $(format!("///\n")))
354+
$(if argument_description.len() > 0 => $(format!("/// # Arguments\n")))
355+
$(if argument_description.len() > 0 => $(format!("///\n")))
356356
$(for arg_desc in argument_description join ($['\r']) => $arg_desc)
357357
};
358358
Some((required_args, description, false))

sdk/rust/crates/dagger-sdk/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ async-trait = "0.1.67"
4646
[dev-dependencies]
4747
pretty_assertions = "1.3.0"
4848
rand = "0.8.5"
49-
genco = "0.17.3"
5049
tracing-test = "0.2.4"
5150

5251
[features]

0 commit comments

Comments
 (0)