Skip to content

Commit f4087d4

Browse files
committed
Update deps, clean up repo
1 parent ef17cd3 commit f4087d4

File tree

15 files changed

+309
-322
lines changed

15 files changed

+309
-322
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
indent_size = 4
8+
9+
[*.rs]
10+
indent_style = tab
11+
12+
[*.json]
13+
indent_style = tab
14+
15+
[*.nix]
16+
indent_style = space
17+
18+
[*.yaml]
19+
indent_style = space

.github/workflows/push.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: use nix
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Install Nix
12+
uses: cachix/install-nix-action@v31
13+
with:
14+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
15+
extra_nix_config: |
16+
keep-env-derivations = true
17+
keep-outputs = true
18+
19+
- name: Cache nix store
20+
uses: nix-community/cache-nix-action@v6
21+
with:
22+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
23+
restore-prefixes-first-match: nix-${{ runner.os }}-
24+
gc-max-store-size-linux: 1G
25+
purge: true
26+
purge-prefixes: nix-${{ runner.os }}-
27+
purge-created: 0
28+
purge-last-accessed: 0
29+
purge-primary-key: never
30+
31+
- name: Check nix flake
32+
run: |
33+
nix flake check
34+
35+
- name: Build backend with nix
36+
run: |
37+
nix build .#backend

.vscode/settings.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"rust-analyzer.check.command": "clippy",
3-
"cSpell.words": [
4-
"actix",
5-
"oneconfig",
6-
"openapi",
7-
"polyfrost",
8-
"Reqwest",
9-
"utoipa"
10-
]
11-
}
2+
"rust-analyzer.check.command": "clippy",
3+
"cSpell.words": [
4+
"actix",
5+
"oneconfig",
6+
"openapi",
7+
"polyfrost",
8+
"Reqwest",
9+
"utoipa"
10+
]
11+
}

.zed/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"lsp": {
3+
"rust-analyzer": {
4+
"initialization_options": {
5+
"check": {
6+
"command": "clippy"
7+
}
8+
}
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)