Skip to content

Commit

Permalink
Merge pull request #4922 from travier/docs-example-ostree-rs-ext
Browse files Browse the repository at this point in the history
docs/HACKING: Add example for ostree-rs-ext crate development
  • Loading branch information
travier authored Apr 19, 2024
2 parents 0795181 + f7b2ebd commit 324f5a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,20 @@ $ make vmoverlay SKIP_INSTALL=1
Of course, you can use this pattern for not just ostree but whatever else you'd
like to install into the VM (e.g. bubblewrap, libsolv, etc...).

## Testing with a custom Rust crate (example: ostree-rs-ext)

A common case is testing changes in the `ostree-rs-ext` crate. Once you have
your changes ready in a clone of the `ostree-rs-ext` repository, you can edit
rpm-ostree's `Cargo.toml` to point to it. For example:

```
$ sed -i "s/ostree-ext = \".*\"/ostree-ext = { path = '..\/ostree-rs-ext\/lib\/' }/" Cargo.toml
```

Then build rpm-ostree with the normal commands.

See: <https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html>.

## Using GDB with the rpm-ostree daemon

If you're new to rpm-ostree, before using GDB, it may be helpful to review the
Expand Down

0 comments on commit 324f5a8

Please sign in to comment.