1
Fork 0
mirror of https://github.com/RGBCube/dix synced 2025-07-29 04:37:45 +00:00
Commit graph

100 commits

Author SHA1 Message Date
Bloxx12
d8f071c887
print, main, error: cleanup, add docs 2025-05-06 23:17:07 +02:00
Bloxx12
0d47c30b54
colored diffing 2025-05-06 19:10:21 +02:00
Dragyx
353bf1a7b7 store: rename wrongly named variable 2025-05-06 16:48:49 +02:00
Dragyx
03f009d297 store: add comments to explain why Path::canonicalize is needed 2025-05-06 16:42:24 +02:00
Dragyx
63de1f090a store: make sure that nodes with no outgoing edges in the graph are in the adj list 2025-05-06 16:33:14 +02:00
Dragyx
be39c05325 store: move database url into constant 2025-05-06 16:29:16 +02:00
Dragyx
9a2a5cb4ff store: Add derivation dependency graph query 2025-05-06 14:50:36 +02:00
Dragyx
719e6eca41 shell: remove old dependency sqlx-cli 2025-05-06 14:46:35 +02:00
Bloxx12
d0e538b1fb
main: strip nix store paths
the paths we match with regex are always prefixed
with /nix/store/<...>-, which amounts to 44 chars.
Since this is always the same, we can just strip
these 44 chars before matching with regex.

This reduces both complexity of the regex and performance.
2025-05-06 14:03:05 +02:00
Bloxx12
c180c26bf5
main: remove unnecessary code, cleanup 2025-05-06 12:34:02 +02:00
Dragyx
eee8c920a7 remove bloated dependency sqlx, switch to libsqlite3-sys
sqlx is way to large for this utility and also async,
which we currently do not use
2025-05-06 01:15:58 +02:00
Bloxx12
55c969cfdf print: change coloring 2025-05-05 18:22:56 +02:00
Dragyx
aff720bbaa use new sql queries 2025-05-05 17:42:38 +02:00
Dragyx
7d893ec477 Add config.toml with db uri 2025-05-05 17:42:38 +02:00
Dragyx
783f180716 proof of concept direct query with sqlx 2025-05-05 17:42:38 +02:00
Bloxx12
63cf04b29f chore: cleanup main.rs 2025-05-05 17:39:07 +02:00
Bloxx12
1a385d0da3 main, print: move printing to new module 2025-05-05 15:24:06 +02:00
Bloxx12
f50cf38e37 chore: rename to nix-diff 2025-05-05 14:20:54 +02:00
Bloxx12
2382373007
main: clean up changed packages debug message 2025-05-05 12:32:55 +02:00
Bloxx12
684704ddd0
main: sort and split versions with commas 2025-05-05 12:32:46 +02:00
Dragyx
560b049504 main: align all packages to the same column width 2025-05-05 11:33:57 +02:00
Dragyx
7afce21ff8 main: add basic column alignment to printed output 2025-05-05 11:15:09 +02:00
NotAShelf
955a710812
error: improve error context in AppError
With nothing other than proper `From` implementations
2025-05-05 02:57:27 +03:00
NotAShelf
f52281d691
main: separate logging channels via log crate 2025-05-05 02:30:46 +03:00
NotAShelf
dde5723cee
refactor: implement thiserror for better error handling 2025-05-05 02:11:18 +03:00
NotAShelf
2c6f84e8ac
main: improve memory safety
Guys it's memory safe guys its's MEMORY SA- *shot dead*
2025-05-05 01:41:58 +03:00
Bloxx12
28871c9f52
src/main.rs: disable blinking 2025-05-05 00:35:57 +02:00
Bloxx12
c31d290cca
remove -link 2025-05-05 00:34:06 +02:00
Bloxx12
7f41877da1
src/main.rs: cleanup 2025-05-05 00:26:04 +02:00
Bloxx12
eeae6b5889
chore: add README.md 2025-05-04 23:48:50 +02:00
Bloxx12
65a8d85114
switch to yansi 2025-05-04 23:45:24 +02:00
Bloxx12
470405b189
src/main.rs: move printing to own functions 2025-05-04 23:30:48 +02:00
Bloxx12
7ac9c287ec
src/main.rs: cleanup 2025-05-04 23:30:44 +02:00
Bloxx12
9cd4befc31
src/main.rs: cleanup 2025-05-04 21:46:40 +02:00
Bloxx12
5b304cd7bb
src/main.rs: clean up thread handles 2025-05-04 21:43:37 +02:00
Bloxx12
7ff637450d
src/main.rs: cleanup, add get_dependencies 2025-05-04 21:03:03 +02:00
Dragyx
93c8f55d30 src/main.rs: support multiple versions for the same package 2025-05-04 20:13:05 +02:00
Dragyx
d5f2a5d7ba src/main.rs: small refactor for readability 2025-05-04 19:28:31 +02:00
Bloxx12
6295610028
src/main.rs: cleanup closure size function 2025-05-04 19:09:05 +02:00
Dragyx
8f0c40f9a9 src/main.rs: compute the closure size in the background 2025-05-04 18:51:56 +02:00
Bloxx12
1ea8ffaecb
src/main.rs: add closure size flag 2025-05-04 18:13:00 +02:00
Bloxx12
2893509d42
src/main.rs: add coloring 2025-05-04 18:13:00 +02:00
bloxx12
2d92e91205
add LICENSE 2025-05-04 18:13:00 +02:00
Bloxx12
0c226426de
main.rs: overabstract package HashMaps 2025-05-04 18:13:00 +02:00
Bloxx12
ed528573ee
src/main.rs: cleanup 2025-05-04 18:13:00 +02:00
Bloxx12
53179520b8
main.rs: switch to hashmaps, implement version changes 2025-05-04 18:13:00 +02:00
Bloxx12
eea426c463
main.rs: stop copying Strings needlessly 2025-05-04 18:13:00 +02:00
Bloxx12
4feb513d7e
main.rs: switch to hashsets 2025-05-04 18:13:00 +02:00
Bloxx12
289881373a
first working version 2025-05-04 18:13:00 +02:00
Bloxx12
6ed66b4351
initial commit 2025-05-04 18:12:59 +02:00