Skip to content

Commit 3f60d3d

Browse files
committed
Setup project
0 parents  commit 3f60d3d

File tree

9 files changed

+94
-0
lines changed

9 files changed

+94
-0
lines changed

.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 4
10+
insert_final_newline = true
11+
tab_width = 4
12+
trim_trailing_whitespace = true
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[Makefile]
18+
indent_style = tab
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
22+
23+
[*.json]
24+
indent_size = 2

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/target
2+
*.log
3+
4+
5+
# Added by cargo
6+
7+
/target

.vscode/extensions.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"recommendations": [
3+
"DavidAnson.vscode-markdownlint",
4+
"EditorConfig.EditorConfig",
5+
"fill-labs.dependi",
6+
"JScearcy.rust-doc-viewer",
7+
"mhutchie.git-graph",
8+
"ms-azuretools.vscode-docker",
9+
"redhat.vscode-yaml",
10+
"rust-lang.rust-analyzer",
11+
"shardulm94.trailing-spaces",
12+
"tamasfe.even-better-toml",
13+
"usernamehw.errorlens",
14+
"yzhang.markdown-all-in-one",
15+
]
16+
}

.vscode/settings.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"window.title": "${dirty}${rootName}",
3+
"markdown.extension.toc.levels": "2..6",
4+
"editor.formatOnSave": false,
5+
"[rust]": {
6+
"editor.formatOnSave": true
7+
},
8+
"[json]": {
9+
"editor.formatOnSave": true
10+
},
11+
"rust-analyzer.check.command": "clippy",
12+
"rust-analyzer.rustfmt.extraArgs": [
13+
"+nightly"
14+
],
15+
}

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[package]
2+
name = "adventofcode"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Advent of Code
2+
3+
- [Overview](#overview)
4+
5+
## Overview
6+
7+
This repository hosts my solutions (and sometimes attempts) for
8+
[Advent of Code](https://adventofcode.com/) made with [Rust](https://www.rust-lang.org/).

rustfmt.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
group_imports = "StdExternalCrate"
2+
imports_granularity = "Module"
3+
max_width = 120
4+
comment_width = 100
5+
wrap_comments = true
6+
overflow_delimited_expr = true
7+
normalize_comments = true
8+
unstable_features = true

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)