Commit graph

183 commits

Author SHA1 Message Date
2869412050
flake: make src use fileset.union instead of all files (#28)
Nix rebuilds the whole thing when some source changed, but since some of the files are not used at all first make a source folder with just the necessary files
2024-10-22 19:40:32 +02:00
github-actions[bot]
8d867cf8f2
flake: update flake.lock (#26)
Automated changes by the
[update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock)
GitHub Action.

```
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/49cdf14c561f31da8717c300466d6c952b0d3dc7?narHash=sha256-Ob7rmFhbNyEE1dEpOVlbMkjkacK%2BL7F4FAWYVQlDMqU%3D' (2024-10-21)
  → 'github:nixos/nixpkgs/838156a8655c818334acd4425b121a309d0073b0?narHash=sha256-t7r899w6fZh9SOOgDykmqUz7DwK9Xw1CwFLri6Ga0Bs%3D' (2024-10-22)
```

### Running GitHub Actions on this PR

GitHub Actions will not run workflows on pull requests which are opened
by a GitHub Action.

To run GitHub Actions workflows on this PR, run:

```sh
git branch -D update_flake_lock_action
git fetch origin
git checkout update_flake_lock_action
git commit --amend --no-edit
git push origin update_flake_lock_action --force
```

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-22 07:48:14 +02:00
2df3485ea0
flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/2853e7d9b5c52a148a9fb824bfe4f9f433f557ab?narHash=sha256-bRo4xVwUhvJ4Gz%2BOhWMREFMdBOYSw4Yi1Apj01ebbug%3D' (2024-10-19)
  → 'github:nix-community/fenix/4002a1ec3486b855f341d2b864ba06b61e73af28?narHash=sha256-d6L4bBlUWr4sHC%2BeRXo%2B4acFPEFXKmqHpM/BfQ5gQQw%3D' (2024-10-21)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/72b214fbfbe6f7b95a7877b962783bd42062cc0a?narHash=sha256-yODOuZxBkS0UfqMa6nmbqNbVfIbsu0tYLbV5vZzmsqI%3D' (2024-10-18)
  → 'github:rust-lang/rust-analyzer/9323b5385863739d1c113f02e4cf3f2777c09977?narHash=sha256-1W5B/CnLgdC03iIFG0wtawO1%2BdGDWDpc84PeOHo2ecU%3D' (2024-10-20)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/f475eae805c96e954789505bb128945c7613abe4?narHash=sha256-gpq5GiQF3psJ7UeclSA8SlOrHYkhywLf9a/Si6mxODM%3D' (2024-10-20)
  → 'github:nixos/nixpkgs/49cdf14c561f31da8717c300466d6c952b0d3dc7?narHash=sha256-Ob7rmFhbNyEE1dEpOVlbMkjkacK%2BL7F4FAWYVQlDMqU%3D' (2024-10-21)
2024-10-21 19:32:20 +02:00
c83f37a370
flake: add hydra jobs 2024-10-21 15:03:43 +02:00
9fce4171bb
workflow: add check to update 2024-10-21 09:36:06 +02:00
bad46c566d
Update update-flake.yml (#21) 2024-10-21 00:34:07 +02:00
13117b00fd
flake: update flake.lock (#23)
Automated changes by the
[update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock)
GitHub Action.

```
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0?narHash=sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c%2BcHUJwA%3D' (2024-10-18)
  → 'github:nixos/nixpkgs/f475eae805c96e954789505bb128945c7613abe4?narHash=sha256-gpq5GiQF3psJ7UeclSA8SlOrHYkhywLf9a/Si6mxODM%3D' (2024-10-20)
```

### Running GitHub Actions on this PR

GitHub Actions will not run workflows on pull requests which are opened
by a GitHub Action.

To run GitHub Actions workflows on this PR, run:

```sh
git branch -D update_flake_lock_action
git fetch origin
git checkout update_flake_lock_action
git commit --amend --no-edit
git push origin update_flake_lock_action --force
```
2024-10-21 00:30:29 +02:00
github-actions[bot]
90b4dff261 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0?narHash=sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c%2BcHUJwA%3D' (2024-10-18)
  → 'github:nixos/nixpkgs/f475eae805c96e954789505bb128945c7613abe4?narHash=sha256-gpq5GiQF3psJ7UeclSA8SlOrHYkhywLf9a/Si6mxODM%3D' (2024-10-20)
2024-10-21 00:29:08 +02:00
50299c1cf3
Update update-flake.yml 2024-10-21 00:22:54 +02:00
5e509705e6
Update build_nix.yml 2024-10-21 00:22:43 +02:00
d41b734c86
Update build_nix.yml 2024-10-21 00:21:43 +02:00
b9793e7c60
Update update-flake.yml 2024-10-21 00:21:25 +02:00
8537dc0f6f
Update update-flake.yml 2024-10-21 00:16:46 +02:00
64961d11e8
flake: use new devshell format (#20)
Use devShells.${system}.default instead of devShell, since the latter is
deprecated
2024-10-21 00:06:17 +02:00
e05ca98b5c
Update update-flake.yml 2024-10-21 00:05:15 +02:00
0cc19082f6
flake: use nixpkgs master 2024-10-20 23:56:40 +02:00
07a2ae193a
flake: remove unused parameters 2024-10-20 23:56:21 +02:00
32594baba7
flake: use new devshell format 2024-10-20 23:50:17 +02:00
d5f6316bbb
Create workflow for updating flake 2024-10-20 23:46:49 +02:00
b76280d8e8
Create nix build workflow 2024-10-20 23:46:31 +02:00
0796396d16
Make rust build accept compile warnings 2024-10-20 23:45:45 +02:00
ec623495ad
flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/d6a9ff4d1e60c347a23bc96ccdb058d37a810541?narHash=sha256-Jkqaw9O7WXTf5SHrK7xr9HpVU/mEPVg0Sp6s3AENC90%3D' (2024-10-15)
  → 'github:nix-community/fenix/2853e7d9b5c52a148a9fb824bfe4f9f433f557ab?narHash=sha256-bRo4xVwUhvJ4Gz%2BOhWMREFMdBOYSw4Yi1Apj01ebbug%3D' (2024-10-19)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/0319586ef2a2636f6d6b891690b7ebebf4337c85?narHash=sha256-BOCZ5osPOMh2BPHnkK4sVdTGj7sn47rBn1nxjrzWe5U%3D' (2024-10-14)
  → 'github:rust-lang/rust-analyzer/72b214fbfbe6f7b95a7877b962783bd42062cc0a?narHash=sha256-yODOuZxBkS0UfqMa6nmbqNbVfIbsu0tYLbV5vZzmsqI%3D' (2024-10-18)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c?narHash=sha256-nsNdSldaAyu6PE3YUA%2BYQLqUDJh%2BgRbBooMMekZJwvI%3D' (2024-10-14)
  → 'github:nixos/nixpkgs/4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0?narHash=sha256-/uilDXvCIEs3C9l73JTACm4quuHUsIHcns1c%2BcHUJwA%3D' (2024-10-18)
2024-10-20 17:00:33 +02:00
peppidesu
26a827ba14
feat: jpg buffer (#13)
Added a buffer to the FlutGrid to store encoded jpeg data of the canvas. This buffer is stored behind a RwLock to allow for arbitrary concurrent read operations.

save_image_frames has also been rewritten to make use of this buffer rather than encoding the jpeg on the fly.

An update thread has been added to regularly (currently every 20 ms) update the contents of the buffer.
2024-10-19 16:09:58 +02:00
peppidesu
0c00b7e9bf
missing import + ci fixes 2024-10-19 16:02:55 +02:00
9fde688bcc
Merge branch 'main' into jpg-buffer 2024-10-19 15:59:25 +02:00
peppidesu
a6eebc409e
added update interval to config 2024-10-19 15:53:39 +02:00
c2e8638a2e
Merge pull request #14 from itepastra/ci
Ci
2024-10-19 15:52:31 +02:00
721e3fca34
use default for textprotocol 2024-10-19 15:38:51 +02:00
peppidesu
a1f7b3ab52
Revert "added webapi sketch"
This reverts commit b3e25cd706.
2024-10-19 15:37:51 +02:00
peppidesu
0fd67e0c6e
save image frames now uses grid jpeg buffer 2024-10-19 15:34:51 +02:00
peppidesu
e486bd121a
jpeg update loop, fixed return types for handles 2024-10-19 15:34:33 +02:00
a27dcf013f
make clippy happy 2024-10-19 15:34:03 +02:00
a8bc1555c2
remove clippy pedantic 2024-10-19 15:09:15 +02:00
peppidesu
339eee14f6
undo rename for easier rebase 2024-10-19 15:08:56 +02:00
peppidesu
4bcab8ad67
jpg buffer 2024-10-19 15:08:05 +02:00
peppidesu
b3e25cd706
added webapi sketch 2024-10-19 15:06:56 +02:00
6c6e131e61
fix compile errors 2024-10-19 15:01:37 +02:00
96e9bd8f28
use nightly in devShell 2024-10-19 14:06:29 +02:00
de3248c3c6
fix memory leak in closing connections 2024-10-19 14:05:37 +02:00
b0d74880dd
add result to gitignore 2024-10-18 16:49:58 +02:00
6c817759eb
flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/b135535125e24270dddddc8cfab455533492e4ad?narHash=sha256-2YAnVU67qimQGO71rCBWcv7RrRK5gYgysXe3NVomuwQ%3D' (2024-10-10)
  → 'github:nix-community/fenix/d6a9ff4d1e60c347a23bc96ccdb058d37a810541?narHash=sha256-Jkqaw9O7WXTf5SHrK7xr9HpVU/mEPVg0Sp6s3AENC90%3D' (2024-10-15)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/0fb804acb375b02a3beeaceeb75b71969ef37b15?narHash=sha256-QFPMazeiGLo7AGy4RREmTgko0Quch/toMVKhGUjDEeo%3D' (2024-10-09)
  → 'github:rust-lang/rust-analyzer/0319586ef2a2636f6d6b891690b7ebebf4337c85?narHash=sha256-BOCZ5osPOMh2BPHnkK4sVdTGj7sn47rBn1nxjrzWe5U%3D' (2024-10-14)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7?narHash=sha256-9UTxR8eukdg%2BXZeHgxW5hQA9fIKHsKCdOIUycTryeVw%3D' (2024-10-09)
  → 'github:nixos/nixpkgs/a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c?narHash=sha256-nsNdSldaAyu6PE3YUA%2BYQLqUDJh%2BgRbBooMMekZJwvI%3D' (2024-10-14)
2024-10-18 16:49:38 +02:00
9dc681086d
refactor: split into more logical files 2024-10-18 01:56:23 +02:00
19eb943865
chore: remove unused imports 2024-10-11 16:05:41 +02:00
0502f3dacb
feat: add periodic image saving 2024-10-11 16:05:16 +02:00
6da19152ca
chore: update cargo deps 2024-10-10 22:10:32 +02:00
7efbacfaa6
flake.lock: Update
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/cdfd7bf3e3edaf9e3f6d1e397d3ee601e513613c' (2024-10-05)
  → 'github:nix-community/fenix/b135535125e24270dddddc8cfab455533492e4ad' (2024-10-10)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/5982d9c420d0dc90739171829f0d2e9c80d98979' (2024-10-04)
  → 'github:rust-lang/rust-analyzer/0fb804acb375b02a3beeaceeb75b71969ef37b15' (2024-10-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/feb2849fdeb70028c70d73b848214b00d324a497' (2024-07-09)
  → 'github:nixos/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7' (2024-10-09)
2024-10-10 22:10:01 +02:00
899c5343ae
feat: swap from u16_le to u16 2024-10-10 09:37:43 +02:00
a4c19d5f98
chore: improve styling of main 2024-10-09 16:45:51 +02:00
f0fca8182f
feat: improve get_pixel performance 2024-10-09 16:19:17 +02:00
0978664188
improve hex parser for text protocol 2024-10-06 23:11:26 +02:00