lee-orr / rusty-dev-containers

A collection of dev container features for working with rust
MIT License
17 stars 6 forks source link

Problem With Cargo Watch #32

Open dawsonc623 opened 1 month ago

dawsonc623 commented 1 month ago

I am trying to use these features for a dev container. I have the following configuration:

{
  "name": "My Container",
  "image": "rust:bullseye",
  "features": {
    "ghcr.io/lee-orr/rusty-dev-containers/cargo-binstall:0": {},
    "ghcr.io/lee-orr/rusty-dev-containers/cargo-watch:0": {}
  }
}

The container seems to create just fine, but when I try to cargo watch I get:

error: no such command: `watch`

        Did you mean `fetch`?

        View all installed commands with `cargo --list`
        Find a package to install `watch` with `cargo search cargo-watch`

I have also tried ubuntu:latest with the ghcr.io/devcontainers/features/rust:1 feature with the same result. Is there a combination of image and features that makes this work?