-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
42 lines (36 loc) · 1.33 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
name = "hardware_report"
version = "0.1.0"
edition = "2021"
authors = ["Kenny Sheridan"]
description = "A tool for generating hardware information reports"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
sysinfo = "0.32.0" # For system information gathering
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" # For JSON output
clap = { version = "4.4", features = [
"derive",
] } # For command line argument parsing
thiserror = "1.0" # For error handling
log = "0.4" # For logging
env_logger = "0.11.5" # For logging implementation
regex = "1.11.1"
toml = "0.8.19"
libc = "0.2.161"
[dev-dependencies]
tempfile = "3.8" # For temporary file handling in tests
assert_fs = "1.0" # For filesystem assertions in tests
predicates = "3.0" # For test assertions
[profile.release]
opt-level = 3 # Maximum optimization
lto = true # Enable link-time optimization
codegen-units = 1 # Maximize performance
strip = true # Strip symbols from binary
# Hybrid configuration for library and binary
[lib]
name = "hardware_report" # Optional, defaults to the package name
path = "src/lib.rs" # Path to the library file
[[bin]]
name = "hardware_report" # Name of the binary
path = "src/bin/hardware_report.rs" # Path to the binary's main.rs