Skip to content

Commit

Permalink
fix: break the loop when an error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Want-ToBelieve committed Dec 6, 2023
1 parent f26ebf2 commit 6b6cb33
Show file tree
Hide file tree
Showing 12 changed files with 789 additions and 310 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
indent_style = space
charset = utf-8

10 changes: 10 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# shellcheck shell=sh
if ! has nix_direnv_version || ! nix_direnv_version 2.4.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.4.0/direnvrc" "sha256-XQzUAvL6pysIJnRJyR7uVpmUSZfc7LSgWQwq/4mBr1U="
fi

nix_direnv_watch_file flake.nix

if ! use flake . --accept-flake-config --impure; then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: CI

on:
pull_request:

jobs:
test:
uses: semantic-release-action/rust/.github/workflows/ci.yml@v5
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Release

on:
push:
branches:
- main
- next
- next-major
- beta
- alpha
- "[0-9]+.[0-9]+.x"
- "[0-9]+.x"

jobs:
release:
uses: semantic-release-action/rust/.github/workflows/release-binary.yml@v5
with:
targets: |
x86_64-unknown-linux-gnu
secrets:
cargo-registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/target
target

.devenv
.direnv

.pre-commit-config.yaml
50 changes: 50 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.options": {
// "overrideConfigFile": "eslint.config.js"
},
"rust-analyzer.linkedProjects": ["Cargo.toml"],
"nixEnvSelector.nixFile": "${workspaceRoot}/flake.nix",
"[rust]": {
"editor.defaultFormatter": "statiolake.vscode-rustfmt",
"editor.tabSize": 2
},
"rust-analyzer.rustfmt.extraArgs": ["--config", "tab_spaces=2"],
"typescript.preferences.importModuleSpecifier": "non-relative",
"javascript.preferences.importModuleSpecifier": "non-relative",
"[objective-c]": {
"editor.defaultFormatter": "xaver.clang-format"
},
"[typescript]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode",
"editor.formatOnSave": false
},
"[javascript]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode",
"editor.formatOnSave": false
},
"[jsonc]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode",
"editor.formatOnSave": true
},
"[json]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode"
},
"[md]": {
"editor.defaultFormatter": "numso.prettier-standard-vscode",
"editor.formatOnSave": true
}
// "runOnSave.statusMessageTimeout": 3000,
// "runOnSave.commands": [
// {
// // Match less files except names start with `_`.
// "globMatch": "**/[^_]*.*",
// "command": "treefmt ${file}",
// "runIn": "backend",
// "runningStatusMessage": "Formating ${fileBasename}",
// "finishStatusMessage": "${fileBasename} formated"
// }
// ]
}
Loading

0 comments on commit 6b6cb33

Please sign in to comment.