Fintan Halpenny
4e85d1cef3
feat: display module
...
Adds a `display` module to hold types that are useful in tools that can display
data, e.g. a `rad-job` CLI
2025-07-18 08:39:11 +01:00
Fintan Halpenny
0c82a9a934
feat: add FindByCommit iterator
...
Introducing a `FindByCommit` iterator, which can be constructed using
`Jobs::find_by_commit`.
This allows the caller to supply a `git::Oid` and get back an `Iterator` of all
`Job`s that are running for that commit.
2025-07-18 08:39:11 +01:00
Lars Wirzenius
574129a2d0
fix: inline variable in format string
...
This is now considered idiomatic Rust style. Found by clippy in Rust
1.88, but will work with Rust 1.84.1.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2025-06-30 09:37:08 +03:00
Fintan Halpenny
68cac715ac
fix: add https:// to homepage
releases/v0.1.0
2025-06-12 11:30:21 +02:00
Fintan Halpenny
83edfbc761
fix: MSRV of 1.84
...
It would seem like the crate `base64ct` bumped their MSRV to 1.85 and added the
new edition:
- https://github.com/RustCrypto/formats/commit/ea10f3b1337faf08f14ba3e25edde10cad2dd07e
- https://github.com/RustCrypto/formats/pull/1859/files
This blocks us from publishing using `rust-version = 1.82`. We bump to `1.84` to
allow us to publish the crate.
2025-06-12 11:24:25 +02:00
Fintan Halpenny
94f74a8fd2
chore: add homepage and repository
2025-06-12 10:20:55 +02:00
Fintan Halpenny
5b86be0fbc
chore: add README file
2025-06-12 08:09:34 +02:00
Lars Wirzenius
0ce659a60b
fix: allow accessing the log URL for a run
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2025-06-11 16:08:28 +02:00
Lars Wirzenius
4512b1091f
fix: make JobId (de)serializable
...
This makes it easier to embed in a struct that gets serialized.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2025-06-11 16:05:54 +02:00
Lars Wirzenius
6fef4ae530
fix: drop unused type parameter C from Jobs::get_mut
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2025-06-11 10:44:52 +03:00
Lars Wirzenius and Fintan Halpenny
524dfdb12a
docs: document Jobs::get and Jobs::get_mut
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com >
2025-06-11 08:30:25 +02:00
Fintan Halpenny
1ce12295c2
refactor: introduce JobId
...
Introduce a newtype `JobId` to differentiate it from the more general
`ObjectId`.
2025-06-11 08:29:10 +02:00
Fintan Halpenny
e917ef069e
fix: infallible action
...
The `action` method does not actually return any errors.
Change the return type to unit, and remove the unneccessary error handling.
2025-06-10 10:47:26 +02:00
Fintan Halpenny
f9d9f1f182
fix: make Transaction private
...
For the time being, it is better to hide the `Transaction` type since actions
might need to stay fine-grained.
2025-06-10 10:47:26 +02:00
Lars Wirzenius and Fintan Halpenny
24750667f0
docs: add documentation comments to all public items that lack them
...
Some public items of the crate were undocumented. These items are now better
described in detail, and the missing docs pragma is added to catch further
missing items in the future.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com >
2025-06-10 10:46:18 +02:00
Fintan Halpenny
256242f1ff
chore: radicle 0.15
...
Update the `radicle` dependency to `0.15`, fixing the required API changes.
2025-06-03 15:55:55 +02:00
Lars Wirzenius
7cd8b06c07
docs: add a doc test to library, for documetation
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2025-05-15 14:42:35 +02:00
Lars Wirzenius and Fintan Halpenny
b41229ca07
build(Cargo.toml): set minimum supported Rust version
...
Sets the MSRV for the crate. The `rust-toolchain.toml` file is dropped since
this is too retrictive when choosing choosing a toolchain for developing the
crate – uses exact semantics.
It is necessary to change the `flake.nix` to read this version from the
`Cargo.toml` so that it can select the rust toolchain to use via `rust-overlay`.
Signed-off-by: Lars Wirzenius <liw@liw.fi >
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com >
2025-05-15 14:40:10 +02:00
Lars Wirzenius
1238715ff4
ci(.radicle/ambient.yaml): add CI plan for Radicle CI with Ambient
...
Signed-off-by: Lars Wirzenius <liw@liw.fi >
2025-05-15 13:16:42 +03:00
Fintan Halpenny
8b8cb49458
chore: update to latest radicle
...
Use `refs/heads/master` to ensure the latest updates – including the
`Transaction::initial` changes. This is a stop-gap until a new version of
`radicle` is published to crates.io.
2025-05-14 14:03:12 +02:00
Fintan Halpenny
d5685cb755
radicle-job
...
The genesis of the `Job` collaborative object
2025-03-26 14:52:20 +00:00