Develop rust where the environment is setup in a docker

⚓ Rust    📅 2026-04-23    👤 surdeus    👁️ 1      

surdeus

I have a rust project that is running in a docker. It is there where the emulator and all dependencies are setup so my own host pc doesnt need to install anything.
I am using vim witch Coc and coc-rust-analyser installed so I can locally create and debug my own local projects. But the ones in the docker , how can I work with that code and get correct lint errors etc? Because if I open a project from the docker, since the container has mapped the folder to a folder in my local host folder, I can open the project with vim, but I get a bunch of lint errors ofcourse since dependencies etc that is installed in the docker is not installed in my host pc. And I do not want to install these dependencies ofcourse since this is specific for this container and the projects inside it.
What susggestion do you guys have in such development situation?

2 posts - 2 participants

Read full topic

🏷️ Rust_feed