feat: depend on radicle-ci-broker via crates.io, plus fixes

The CI broker has dropped the RunResult::Error variant, so drop any
use of that. The Request::version field has been added, so deal with
that.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
Lars Wirzenius
2024-04-03 16:18:00 +03:00
parent 8fd5e71c4b
commit eaeb89b3bf
5 changed files with 68 additions and 79 deletions
-8
View File
@@ -33,14 +33,6 @@ pub fn write_failed() -> Result<(), NativeMessageError> {
Ok(())
}
/// Write a message indicating error to stdout.
pub fn write_errored(s: &str) -> Result<(), NativeMessageError> {
write_response(&Response::Finished {
result: RunResult::Error(s.into()),
})?;
Ok(())
}
/// Write a message indicating success to stdout.
pub fn write_succeeded() -> Result<(), NativeMessageError> {
write_response(&Response::Finished {