Open hemna opened 1 month ago
Looks like I had to run an install command. I know nothing about rust or cargo.
cd sketchybar-system-stats
╭─sketchybar-system-stats on main is 📦 v0.5.4 via 🦀 v1.81.0 ❯
└─> cargo install --path .
Installing stats_provider v0.5.4 (/Users/I530566/utils/sketchybar-system-stats)
Updating crates.io index
Locking 45 packages to latest compatible versions
Adding sysinfo v0.31.4 (latest: v0.32.0)
Adding windows v0.57.0 (latest: v0.58.0)
Adding windows-core v0.57.0 (latest: v0.58.0)
Adding windows-implement v0.57.0 (latest: v0.58.0)
Adding windows-interface v0.57.0 (latest: v0.58.0)
Adding windows-result v0.1.2 (latest: v0.2.0)
Adding windows-sys v0.52.0 (latest: v0.59.0)
Downloaded unicode-ident v1.0.13
Downloaded proc-macro2 v1.0.87
Downloaded clap v4.5.20
Downloaded clap_builder v4.5.20
Downloaded cc v1.1.30
Downloaded syn v2.0.79
Downloaded libc v0.2.159
Downloaded 7 crates (1.4 MB) in 0.38s
Compiling proc-macro2 v1.0.87
Compiling unicode-ident v1.0.13
Compiling libc v0.2.159
Compiling cc v1.1.30
Compiling clap_builder v4.5.20
Compiling sketchybar-rs v0.2.0
Compiling sysinfo v0.31.4
Compiling quote v1.0.37
Compiling syn v2.0.79
Compiling clap_derive v4.5.18
Compiling clap v4.5.20
Compiling stats_provider v0.5.4 (/Users/I530566/utils/sketchybar-system-stats)
Finished `release` profile [optimized] target(s) in 4.35s
Installing /Users/I530566/.cargo/bin/stats_provider
Installed package `stats_provider v0.5.4 (/Users/I530566/utils/sketchybar-system-stats)` (executable `stats_provider`)
Glad you were able to get it working.
I just pushed a new release that I would encourage you to upgrade to (v.0.6.0). I discovered a memory leak in one of the underlying dependencies that I fixed and plan to report. The new version fixes the memory leak and is much more minimal in terms of memory and port usage.
If you don't want to build yourself, you can download a prebuilt binary from Latest release. In the "Assets", the aarch64
is for Mac Silicon, while the x86_64
is for older Intel Macs.
Alternatively, if you would like to continue building yourself, you can do a git pull
from your sketchybar-system-stats
directory, and then do cargo build --release
. By default, the Rust compiler puts the compiled binary in the target/release
subdirectory. When you use cargo install, it installs it wherever you specify.
I followed the instructions in the README and it doesn't work.