mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-21 13:14:41 +01:00
chore: format a bit and add just fmt
This commit is contained in:
parent
1c3012fb32
commit
23ffbe39dc
|
@ -67,7 +67,7 @@ Otherwise, we suggest these:
|
||||||
[The Rust Programming Language book]: https://doc.rust-lang.org/book/
|
[The Rust Programming Language book]: https://doc.rust-lang.org/book/
|
||||||
[typst's excellent tutorial]: https://typst.app/docs/tutorial
|
[typst's excellent tutorial]: https://typst.app/docs/tutorial
|
||||||
|
|
||||||
[Inkscape]: https://inkscape.org/
|
[Inkscape]: https://inkscape.org/
|
||||||
[GIMP]: https://www.gimp.org/
|
[GIMP]: https://www.gimp.org/
|
||||||
[Blender]: https://www.blender.org/
|
[Blender]: https://www.blender.org/
|
||||||
[Penpot]: https://penpot.app/
|
[Penpot]: https://penpot.app/
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"crates/app",
|
"crates/executor",
|
||||||
"crates/executor",
|
|
||||||
"crates/ir",
|
"crates/ir",
|
||||||
"crates/cli",
|
"crates/cli",
|
||||||
]
|
]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ One dimensional list of 32 bit signed integers:
|
||||||
[i32]
|
[i32]
|
||||||
```
|
```
|
||||||
|
|
||||||
Due to inference, you'll also be able to use that in some mathematical operations with integers:
|
Due to inference, you'll also be able to use that in some mathematical operations with integers:
|
||||||
|
|
||||||
`[i32] + i32` is a valid operation, for example (of course, you can't add types.) But that wouldn't add the second one to the list, but rather add the single i32 to all values in the left hand side list). That would also work with more dimensional arrays and dynamic streams like videos.
|
`[i32] + i32` is a valid operation, for example (of course, you can't add types.) But that wouldn't add the second one to the list, but rather add the single i32 to all values in the left hand side list). That would also work with more dimensional arrays and dynamic streams like videos.
|
||||||
|
|
||||||
|
|
|
@ -35,9 +35,10 @@
|
||||||
clippy.enable = true;
|
clippy.enable = true;
|
||||||
rustfmt.enable = true;
|
rustfmt.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
just nushell
|
just nushell
|
||||||
|
ripgrep
|
||||||
typst typst-lsp
|
typst typst-lsp
|
||||||
mold
|
mold
|
||||||
cargo-nextest cargo-watch
|
cargo-nextest cargo-watch
|
||||||
|
|
10
justfile
10
justfile
|
@ -1,5 +1,9 @@
|
||||||
all: test docs
|
all: test docs
|
||||||
|
|
||||||
|
test:
|
||||||
|
#!/usr/bin/env nu
|
||||||
|
cargo nextest run
|
||||||
|
|
||||||
# Compile all documentation as in proposals and design documents, placing them under `docs/compiled`.
|
# Compile all documentation as in proposals and design documents, placing them under `docs/compiled`.
|
||||||
docs:
|
docs:
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
|
@ -12,6 +16,8 @@ docs:
|
||||||
mv $pdf docs/compiled
|
mv $pdf docs/compiled
|
||||||
} | ignore
|
} | ignore
|
||||||
|
|
||||||
test:
|
fmt:
|
||||||
#!/usr/bin/env nu
|
#!/usr/bin/env nu
|
||||||
cargo nextest run
|
cargo fmt
|
||||||
|
echo "Places where whitespace is at the end of a line:"
|
||||||
|
rg '\s$'
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
(
|
(
|
||||||
[
|
[
|
||||||
Read((
|
Read((
|
||||||
source: File("/home/jade/example/file.png"),
|
source: File("testfiles/juan.png"),
|
||||||
format: Png
|
format: Jpeg
|
||||||
)),
|
)),
|
||||||
Write((
|
Write((
|
||||||
target: File("/home/jade/example/out.jpg"),
|
target: File("testfiles/out.png"),
|
||||||
format: Jpeg
|
format: Png
|
||||||
))
|
))
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
[
|
[
|
||||||
Read((
|
Read((
|
||||||
source: File("testfiles/juan.jpg"),
|
source: File("testfiles/juan.jpg"),
|
||||||
format: Png
|
format: Jpeg
|
||||||
)),
|
)),
|
||||||
Filter(Invert),
|
Filter(Invert),
|
||||||
Write((
|
Write((
|
||||||
|
|
Loading…
Reference in a new issue