Skip to content

Zacaria/adventOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

50 Code challenges

A way to explore how to use Rust with code challenges

https://adventofcode.com

Rust install macOS

brew install rustup rustup-init rustc --version cargo --version

VS Code config to Run rust as scripts :

Install extensions

  • Rust-lang : ext install rust-lang.rust
  • CodeLLDB
  • Better TOML

Add local vscode config

.vscode/launch.json :

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "lldb",
      "request": "launch",
      "name": "Run current file",
      "program": "${workspaceFolder}/target/debug/${fileBasenameNoExtension}",
      "args": [],
      "cwd": "${workspaceFolder}",
      "preLaunchTask": "cargo",
      "sourceLanguages": ["rust"]
    }
  ]
}

.vscode/tasks.json :

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "cargo",
      "type": "shell",
      "command": "cargo build",
      "args": [],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

About

50 code challenges

Topics

Resources

License

Stars

Watchers

Forks

Languages