added alternatives for windows cputemp detection

This commit is contained in:
2025-07-31 11:28:58 +02:00
parent 36f6fb3566
commit 8a4df64d0c
2 changed files with 78 additions and 15 deletions

View File

@@ -0,0 +1,23 @@
/*
$ rustc --crate-type=lib rary.rs
$ ls lib*
library.rlib
// extern crate rary; // May be required for Rust 2015 edition or earlier
fn main() {
rary::public_function();
// Error! `private_function` is private
//rary::private_function();
rary::indirect_access();
}
# Where library.rlib is the path to the compiled library, assumed that it's
# in the same directory here:
$ rustc executable.rs --extern rary=library.rlib && ./executable
called rary's `public_function()`
called rary's `indirect_access()`, that
> called rary's `private_function()`
*/