rustfmt, clippy, gh actions, justfile, Default app (#4)

* `Default` app
* add zed settings
* add justfile
* flake: update devShell, ignore tests, add `just`
* update README
* gh actions: lint, format, tests. build
This commit is contained in:
Jens K.
2024-11-29 15:49:55 +01:00
committed by GitHub
parent a9e573122d
commit 3d0d55c8d8
7 changed files with 131 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
# tim:r
## Development
## Build from source
### Requirements
@@ -13,17 +13,20 @@ If `direnv` is installed, run `direnv allow` once to install dependencies. Other
#### Non Nix user
- [`Rust`](https://www.rust-lang.org/)
- [`Rust`](https://www.rust-lang.org/learn/get-started)
- [`Clippy`](https://github.com/rust-lang/rust-clippy)
- [`rustfmt`](https://github.com/rust-lang/rustfmt)
- [`just`](https://just.systems)
#### Build/run
#### Run
```sh
cargo run
```
## Build release
#### Build
- Linux
```sh
@@ -34,3 +37,22 @@ nix build
```sh
nix build .#windows
```
#### Commands to `run`, `build` etc.
```sh
just --list
Available recipes:
build # build app
b # alias for `build`
default
format # format files
f # alias for `format`
lint # lint
l # alias for `lint`
run # run app
r # alias for `run`
test # run tests
t # alias for `test`
```