Commit graph

32 commits

Author SHA1 Message Date
927f6077b4
store printed fields in a struct
Some checks failed
Rust / build (push) Has been cancelled
Shut up, clippy.
2024-08-05 11:33:42 +03:00
Ryan
13903539b7
perf: use nix::sys::utsname::uname for less syscalls (#2)
Instead of reading multiple files to get the `sysname`, `release`, and
`machine` name, use the `nix::sys::utsname::uname` function which sends a
single uname syscall instead. This increases performance and portability.

From my observations, there are ~10 less syscalls.
2024-08-05 08:08:25 +00:00
17152f9d14
include comperative benchmarking results
Some checks are pending
Rust / build (push) Waiting to run
2024-08-05 03:57:43 +03:00
52d9a479cf
additional nix tooling 2024-08-05 03:48:51 +03:00
1ced9b4527
increment cargo version 2024-08-05 02:19:19 +03:00
7de3f27642
nix: build with llvm.stdenv; use mold linker 2024-08-05 02:04:23 +03:00
5c335d179e
isolate build profiles; optimize dev 2024-08-05 02:02:58 +03:00
7bed1f583b
use color_eyre::Result in most functions 2024-08-05 01:37:32 +03:00
0fb8fbaae6
receive uptime from nix crate 2024-08-05 01:37:13 +03:00
2ecf9303fa
update Cargo.lock
Some checks are pending
Rust / build (push) Waiting to run
How the hell did I miss this?
2024-08-05 01:04:38 +03:00
7d693ea26f
include benchmarks, add contributing section 2024-08-05 00:57:07 +03:00
72d3130aa0
clean up get_desktop_info; increment minor version 2024-08-04 22:04:23 +03:00
482ffe96cd
increment version 2024-08-04 17:21:08 +03:00
cf0a52150c
minify and optimize uptime reader 2024-08-04 17:20:34 +03:00
e3112dba1d
trim shell name to omit store path 2024-08-04 17:18:27 +03:00
fc62d72cab
add demo to README
Some checks are pending
Rust / build (push) Waiting to run
2024-08-04 16:35:16 +03:00
c2deeb38a4
increment version 2024-08-04 13:08:48 +03:00
a44db5e5f3
shell name & colors in output 2024-08-04 13:07:27 +03:00
81cdc0a281
speeding it up 2024-08-04 12:44:19 +03:00
mewoocat
ef2f6dc56e
Better logo (#1) 2024-08-04 09:42:53 +00:00
f0809ce877
nix package
Some checks are pending
Rust / build (push) Waiting to run
2024-08-04 01:14:17 +03:00
158f4810c8
bump cargo version 2024-08-04 00:42:58 +03:00
cff4332122
clippy lints 2024-08-04 00:12:07 +03:00
0e4b2d2ac1
cleanup 2024-08-04 00:05:57 +03:00
6dafa776d2
remove libc crate; optimize release profile 2024-08-03 23:09:29 +03:00
42a7f2fc77
apply clippy lints 2024-08-03 23:04:26 +03:00
aae5f71004
use nix crate instead of libc
Provides a higher level and lighter alternative.
2024-08-03 20:56:02 +03:00
29e4ccc806
modularize 2024-08-03 20:42:48 +03:00
198fd107d7
add a README 2024-08-03 20:08:47 +03:00
f5697754e5
implement color_eyre; main implements Result 2024-08-03 20:04:09 +03:00
raf
5ed144719c
CI: build with Cargo 2024-08-03 16:07:40 +00:00
6a77ad0682
initial commit 2024-08-03 19:06:29 +03:00