[package]
edition = "2024"
rust-version = "1.88"
name = "joularcore"
version = "0.2.0"
authors = ["Adel Noureddine"]
build = false
exclude = [
"joularcore.png",
"/.github",
"/.idea",
"/.vscode",
"/.zed",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Joular Core is a platform to measure power and energy across all systems, OSes and devices"
homepage = "https://www.noureddine.org/research/joular/joularcore"
documentation = "https://docs.rs/joularcore"
readme = "README.md"
keywords = [
"energy",
"power",
"monitoring",
"library",
"system",
]
categories = [
"hardware-support",
"os",
"development-tools::profiling",
"science",
]
license = "LGPL-3.0-only"
repository = "https://github.com/joular/joularcore"
[package.metadata.docs.rs]
all-features = true
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["vm"]
sbc = [
"dep:serde",
"dep:serde_json",
]
vm = []
[lib]
name = "joularcore"
path = "src/lib.rs"
[dependencies.log]
version = "0.4.33"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0.151"
optional = true
[dependencies.sysinfo]
version = "0.39.6"
features = ["system"]
default-features = false
[dependencies.thiserror]
version = "2.0.20"
[dev-dependencies.tempfile]
version = "3.27.0"
[target.'cfg(target_os = "macos")'.dependencies.mach2]
version = "0.6.0"
[target."cfg(unix)".dependencies.libc]
version = "0.2.188"
[target."cfg(unix)".dependencies.memmap2]
version = "0.9.11"
[target."cfg(windows)".dependencies.windows]
version = "0.62.2"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_Security",
"Win32_System_Threading",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Memory",
]