question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build(dev-container): add Rust toolchain (cargo, rustc, etc.)

See original GitHub issue

Description

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

  1. Dev container docker file is updated so that cargo, rustc are available
  2. It is verified that rust code is possible to be built => the Vault keychain plugin’s rust code.
  3. 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
petermetzcommented, Jul 19, 2021

@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. 😃

1reaction
petermetzcommented, Jan 13, 2022

Expediting this one because we’ll need Rust brought in as one of the default project dependencies on account of the Weaver+Cactus collaboration.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found