Skip to content

Is the dependency to the Rust devcontainer feature needed? #32

@andreimaxim

Description

@andreimaxim

While playing around with the devcontainers in edge Rails, I've noticed that the following extensions were added to my VSCode:

  • CodeLLDB
  • crates
  • Even Better TOML
  • rust-analyzer

After a bit of an investigation, I discovered that these extensions are installed by the Rust feature, which has been recently marked as a dependency for the Ruby feature. I could not find any arguments in favor of this approach (the PR mentions an incompatibility with a newer version of Rust), so I figured I could start a conversation on this topic.

I'd argue in favor of replacing the dependency to the Rust feature with installing the rustc package from the operating system. There are four reasons:

  • It adds unnecessary packages, like cargo, and third-party VS Code extensions that cannot be disabled
  • It increases the build time as Rust needs to be compiled
  • Following a specific version of Rust will eventually require rebuilding the container quite often, since Rust seems to be releasing a new version every month or so
  • It adds little to no benefit for the regular Rails developer and can be confusing for newcomers (to Rails or to devcontainers)

If my arguments are strong enough, I'd be more than happy to create a PR :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions