Thomas Klausner
Thomas Klausner
I had already filed a bug report about this upstream - please provide your suggestion there. That'll also show that more than one person is interested in this :) Thanks....
Support for `kind` and `member` would be great, even if it doesn't solve my current problem. I understand why you wouldn't want to support undocumented Apple extensions, so feel free...
A friend complained that this crate does not support NetBSD, so I took a quick look at it. Adding 'target_os = "netbsd"' to all "freebsd" cases makes it compile, but...
The general framework for system monitoring and power management on NetBSD is sysmon (https://man.netbsd.org/sysmon.4) and in particular for environmental sensors, sysmon_envsys (kernel side documented here: https://man.netbsd.org/sysmon_envsys.9, but that does not...
Here's some sample code that gives a plist: ``` use std::error::Error; use std::fs::File; use std::os::unix::io::AsRawFd; use nix::ioctl_readwrite; use std::ffi::c_void; use std::mem::MaybeUninit; use plist::Value; use std::slice::from_raw_parts; use std::io::Cursor; #[allow(non_camel_case_types)] #[repr(C)] #[derive(Debug)]...
Cargo dependencies: ``` [dependencies] nix = "*" plist = "*" ```
I put the code [here](https://github.com/0-wiz-0/rust-envsys) for easier testing. Pull requests welcome!
I've extended the example code to include basic parsing of the structure and adding some example outputs, including one from a laptop with a battery. I think this now contains...
I've updated HISTORY and CREDITS, I hope that's what you meant - not sure what I should edit in README.
Somethings up with the CIs: The linter complains about whitespace in a file I didn't touch, and the 'issues workflow run' fails because it wants to add a label, but...