Sign inSign up

karfield/rust-devcontainer

By karfield

•Updated over 2 years ago

rust devcontainer contains libclang/gcc and protobuf supported.

Image
0

207

karfield/rust-devcontainer repository overview

rust devcontainer for developing rust project with c/c++ and protobuf supports.

suggestted .devcontainer/devcontainer.json config:

// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
	"name": "Your rust project name",
	"image": "karfield/rust-devcontainer:0.1.1",
	"service": "your-rust-project-devcontainer",
	"workspaceFolder": "/workspace",
       "mounts": [
              "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached"
       ],
	"customizations": {
		"vscode": {
			"extensions": [
				"rust-lang.rust-analyzer",
				"serayuzgur.crates",
				"dustypomerleau.rust-syntax",
				"ms-vscode.makefile-tools",
				"tamasfe.even-better-toml",
				"zxh404.vscode-proto3",
				"ms-azuretools.vscode-docker"
			]
		}
	},
	// Features to add to the dev container. More info: https://containers.dev/features.
	// "features": {},
	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [],
	// Use 'postCreateCommand' to run commands after the container is created.
	"postCreateCommand": "sudo sh /opt/run/devcontainer/post-init.sh",
	// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
	"remoteUser": "vscode",
	"remote": {
		"containers": {
			// set 'false' disable copy host's .gitconfig to container
			"copyGitConfig": true
		}
	}
}

Tag summary

Content type

Image

Digest

sha256:bea0d3d6e…

Size

1004.7 MB

Last updated

over 2 years ago

docker pull karfield/rust-devcontainer:0.1.1