From 53781a24e04d191b02e11b62c23ff178680b875c Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 10 Jan 2026 10:50:46 +0100 Subject: [PATCH] Initial --- .devcontainer/Dockerfile | 8 ++++++++ .devcontainer/devcontainer.json | 19 +++++++++++++++++++ .gitignore | 21 +++++++++++++++++++++ README.md | 1 + 4 files changed, 49 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json create mode 100644 .gitignore create mode 100644 README.md diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..904fccd --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +# Základný oficiálny Rust image +FROM rust:1.92 + +# Inštalácia doplnkových nástrojov +RUN rustup component add rustfmt clippy + +# Vytvorenie pracovného adresára +WORKDIR /workspace diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c1342aa --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,19 @@ +{ + "name": "RustDev", + "build": { + "dockerfile": "Dockerfile" + }, + "remoteUser": "root", + "workspaceFolder": "/workspace", + "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind", + "customizations": { + "vscode": { + "extensions": [ + "rust-lang.rust-analyzer" + ], + "settings": { + "editor.formatOnSave": true + } + } + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad67955 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Generated by Cargo +# will have compiled files and executables +debug +target + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +# Generated by cargo mutants +# Contains mutation testing data +**/mutants.out*/ + +# RustRover +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..3883e09 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Základné dev prostredie rust \ No newline at end of file