Commit graph

114 commits

Author SHA1 Message Date
4b2694999e chore: tag 0.4.12
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I54a5f2181efdd42af2fda7cebb88484f6a6a6964
2025-11-30 17:02:19 +03:00
raf
858b2487c4
Merge pull request #25 from NotAShelf/notashelf/push-orrzkvopklqm
treewide: bump deps and update docs
2025-11-30 17:00:52 +03:00
fa8b6b9d68
ci: set up cross comp for Rust builds
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I154d2afb05088e22882985bcd4536f026a6a6964
2025-11-30 16:57:12 +03:00
16a1d5fe3f
ci: set up dependabot for GH actions
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I890272e62db5824a3d866748375d1a9f6a6a6964
2025-11-30 16:55:09 +03:00
8d97a9e8ec
ci: streamline workflows; remove tagged release workflow
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1432980533dee11b64a53d2ad2f2094d6a6a6964
2025-11-30 15:38:48 +03:00
48c3807148
docs: update hotpath usage instructions
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8a056b6814bef36e74b4aca56d4aa2686a6a6964
2025-11-30 15:16:03 +03:00
09da1c27d2
chore: bump hotpath
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1ae1d9b3d25ff220bee51660efc598b76a6a6964
2025-11-30 15:16:02 +03:00
c1a4bc24f4
docs: add note about handwritten assembly
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6920a416e6169a84469514bae0f207426a6a6964
2025-11-30 15:16:01 +03:00
c3a6d1c93c
treewide: fix commonmark formatting in Rustdoc
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie1a13221aded56f903156fdb35abe2ac6a6a6964
2025-11-30 15:16:00 +03:00
6d6ee838bf
chore: bump criterion
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5623347364c5ed71c99676029f4261026a6a6964
2025-11-30 15:15:59 +03:00
raf
5480d2d824
Merge pull request #23 from NotAShelf/notashelf/push-orrzkvopklqm
Some checks failed
hotpath-comment.yml / Merge pull request #23 from NotAShelf/notashelf/push-orrzkvopklqm (push) Failing after 0s
Rust / build (push) Has been cancelled
treewide: more speed = more good
2025-11-18 00:11:28 +03:00
353b78e688
ci: fix hotpath-comment usage
Some checks failed
hotpath-comment.yml / ci: fix hotpath-comment usage (push) Failing after 0s
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Idc163948f012efb07fc7a6a952af54b36a6a6964
2025-11-18 00:08:00 +03:00
6f8d1ffa83
nix: include benches in source filter; fix build
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id78ee5f62a5168feef09b5f8713b107c6a6a6964
2025-11-18 00:07:59 +03:00
07afedd0cc
docs: update binary size
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1a9189f90666d7efc010a7255c287bd86a6a6964
2025-11-18 00:07:55 +03:00
75132ff172
treewide: remove nix dependency, add custom syscall wrappers & UtsName
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib880f4bafe9d3bbc944af4b9125256366a6a6964
2025-11-17 21:29:15 +03:00
f8a0070986
uptime: optimize uptime calculation w/ inline assembly and custom itoa
lol, lmao even.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie22fbd2e9c2be5740b493bdc81caafb36a6a6964
2025-11-17 21:29:14 +03:00
b24e720dd8
chore: tag 0.4.11
Some checks are pending
Rust / build (push) Waiting to run
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I42b59d68cdac17ff60d52a4c25bef4686a6a6964
2025-11-17 19:19:31 +03:00
ca76a6e1bd
chore: format with rustfmt nightly
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9c9e4e010b09d37f0e0994a5407f3ce56a6a6964
2025-11-17 19:18:39 +03:00
00159d6454
docs: README makeover; update benchmarks
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic1ca95ab7e0b2ff78ed7967c604739546a6a6964
2025-11-17 19:17:56 +03:00
raf
11a726428b
Merge pull request #22 from NotAShelf/notashelf/push-uysmruuoyvnz
various: reduce allocations where available
2025-11-17 18:42:58 +03:00
789ece866b
ci: initial benchmarking workflows
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I367444097eafbd1020c02707c42351bf6a6a6964
2025-11-17 18:40:23 +03:00
f4f3385ff7
various: fix clippy warnings
- Adds proper documentation comments with `# Errors` sections for all
  functions returning `Result`
- `cast_precision_loss` on `u64` -> `f64` for disk sizes is acceptable
  since disk sizes won't exceed f64's precision limit in practice.
  Thus, we can suppress those.
- `cast_sign_loss` and `cast_possible_truncation` on the percentage
  calculation is safe since percentages are always 0-100. Once again,
  it's safe to suppress.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id4dd7ebc9674407d2be4f38ff4de24bc6a6a6964
2025-11-17 18:26:34 +03:00
2ad765ef98
various: reduce allocations where available
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I517d855b14c015569a325deb64948f3b6a6a6964
2025-11-17 18:11:45 +03:00
325ec69024
chore: tag 0.4.10
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a2158a305d5f249b52c8b21dc5aaca86a6a6964
2025-11-17 18:11:44 +03:00
2a6fe2a3f1
treewide: set up Hotpath for benchmarking individual allocations
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0351e5753996e6d0391fc9e2f329878a6a6a6964
2025-11-17 17:40:46 +03:00
9bd4c9a70a
treewide: format with nightly rustfmt rules
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib8502372dafe2e970024f606b44825af6a6a6964
2025-11-17 16:20:43 +03:00
af8031f9ec
meta: selectively enable Clippy lint-groups projectwide
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic6eedd28e1ad48a67c988607dd45d7686a6a6964
2025-11-17 16:20:42 +03:00
4c22cf5d2a
nix: use nightly rustfmt; add taplo
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie4a1b5a29166931aac006a44874374346a6a6964
2025-11-17 16:20:41 +03:00
d438800738
nix: streamline source filter; move RUSTFLAGS to env attrs
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9761b908d05efd7dc10d53c54ca80fb26a6a6964
2025-11-17 16:20:40 +03:00
1d69d3107c
microfetch: trim fetch screen by one space
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I200c72b5a8249ed3d23754aa3f01aea86a6a6964
2025-11-17 16:20:39 +03:00
dab8f556af
meta: set up formatters for Rust and TOML
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I917d66d2af199b96f84aa50071a0ccd56a6a6964
2025-11-17 16:20:38 +03:00
6150e55ba5
flake: bump nixpkgs
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6ba6412f88305b295ffb571313606bd56a6a6964
2025-11-17 16:20:37 +03:00
8800b69ef3
chore: bump dependencies
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69647ad9cfdd52eec7fa9ae4a184b9c8ea0d
2025-11-17 16:20:36 +03:00
e355ddc517
flake: bump nixpkgs
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ica041259225e45e345de08325a0cc75f6a6a6964
2025-11-17 16:20:35 +03:00
9d8905354e
expand comment strings
Some checks failed
Rust / build (push) Has been cancelled
80 chars is good.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696460754266ff5810a73f98ce9e6eb0c35b
2025-08-04 21:04:32 +03:00
14d8f9390d
chore: bump criterion
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964e55c9925511d83d6be9b2ba001613983
2025-08-04 21:04:31 +03:00
7da5fe97cc
nix: point to nixos-unstable for the nixpkgs input
Oops.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964eab43b655668d65abe532ed710538670
2025-08-04 21:04:30 +03:00
bc03fd73a0
0.4.9
Some checks failed
Rust / build (push) Has been cancelled
2025-06-22 03:11:45 +03:00
f20f1e33eb
chore: bump dependencies 2025-06-22 03:04:40 +03:00
61d4b7377f
colors: remove lazy_static dependency and use LazyLock for COLORS 2025-06-22 02:53:21 +03:00
f7d7c73073
chore: bump nix crate; 0.4.8
Some checks failed
Rust / build (push) Has been cancelled
2025-05-02 12:50:41 +03:00
raf
28e156b9a7
Merge pull request #17 from ErrorNoInternet/main
treewide: clean up a few things
2025-05-02 09:49:13 +00:00
ErrorNoInternet
b814b2bacf
refactor: return write error 2025-04-15 03:46:16 -04:00
ErrorNoInternet
0233cdc0fc
perf: use MaybeUninit for libc buffers 2025-04-15 03:46:16 -04:00
ErrorNoInternet
88c9ff5e13
perf: don't collect args into a Vec 2025-04-15 03:46:16 -04:00
ErrorNoInternet
9713138e94
perf: pre-allocate strings 2025-04-15 03:46:15 -04:00
ErrorNoInternet
c139026704
refactor: clean up a few things
I've decided to keep lazy_static for now as std::sync::LazyLock seems to
have a slightly bigger impact on binary size.
2025-04-15 03:46:15 -04:00
raf
671ce6b8e5
Merge pull request #16 from NotAShelf/no-nix
Some checks failed
Rust / build (push) Has been cancelled
uptime: get rid of nix crate
2025-04-10 05:15:11 +00:00
8df950d340
bump deps; add libc crate 2025-04-10 08:12:19 +03:00
e9aa9a2bbe
uptime: get rid of nix crate 2025-03-30 22:33:16 +03:00