coreyf@frewbook-pro ~/D/r/energymon-rust (master)> cargo build
Compiling libc v0.2.2
Compiling pkg-config v0.3.6
Compiling libc v0.1.12
Compiling energy-monitor v0.1.0
Compiling energymon-sys v0.1.0 (https://github.com/energymon/energymon-sys.git#92eaa056)
Compiling energymon-default-sys v0.1.0 (https://github.com/energymon/energymon-sys.git#92eaa056)
Compiling energymon v0.1.0 (file:///Users/coreyf/Development/rust/energymon-rust)
src/lib.rs:57:50: 57:82 error: mismatched types:
expected `usize`,
found `u64`
(expected usize,
found u64) [E0308]
src/lib.rs:57 mem::size_of_val(&buf) as size_t);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/lib.rs:57:50: 57:82 help: run `rustc --explain E0308` to see a detailed explanation
error: aborting due to previous error
Could not compile `energymon`.
To learn more, run the command again with --verbose.
I guess I forgot to update this project to libc 0.2 as well (see #4). This error should be fixed with that. I don't have nightly rust builds. Please post back if it's still broken there. Thanks.