build(dev-container): add Rust toolchain (cargo, rustc, etc.)
See original GitHub issueDescription
Note: This is a good first issue, but on the estimated expertise level of 300
.
As a contributor working on different programming languages I want to be able to get a cozy experience via the dev container the same way Typescript users have it so that I’m more productive and it’s easier to get started with my contributions in general.
Example: If someone wants to write a plugin in Rust, it’s technically possible, but as it is today, they’d need to manually install and set up their Rust workflow within the container which gets especially annoying when you need to rebuild the container and your changes are lost.
Acceptance Criteria
- Dev container docker file is updated so that cargo, rustc are available
- It is verified that rust code is possible to be built => the Vault keychain plugin’s rust code.
- Base image is not changed, we need Ubuntu 2004 and we need docker in docker.
cc: @ty-lazar @Jeff-Ushry @twiggins120 @awadhana @Leeyoungone
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Cross Compiling Rust Code for Multiple Architectures - Docker
Our command instructs Cargo, the Rust build system, to build our Rust code to the designated target architecture.
Read more >Rust with Visual Studio Code
Cargo. When you install Rust with rustup, the toolset includes the rustc compiler, the rustfmt source code formatter, and the clippy Rust ......
Read more >How to Build and Run the Compiler - Rustc Dev Guide
The compiler is built using a tool called x.py . You will need to have Python installed to run it. For instructions on...
Read more >Rust linting. 10 Apache-2. tokio. . Every builtin plugin can be ...
Clippy For helpful linting rools, install Clippy with rustup: rustup component add clippy Run it with cargo: cargo clippy --fix Configure the rust-analyzer ......
Read more >Rust incremental build not working in vscode devcontainer
Add .cargo/config.toml inside project folder or root folder. [build] target-dir = "/tmp/target".
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@RafaelAPB Not yet. My plan: if nobody does it 'til early next week then I’ll take it upon myself, but it’s up for grabs until then so if you’d like to go for it I’m happy to oblige. 😃
Expediting this one because we’ll need Rust brought in as one of the default project dependencies on account of the Weaver+Cactus collaboration.