sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
# Soporte de serde

Activa la feature opcional `serde` para serializar snapshots y tipos de valor.
Sin esta feature el crate no depende de `serde`.

```toml
[dependencies]
sinf = { version = "0.1", features = ["serde"] }
serde_json = "1"
```

```rust
use sinf::system::System;

if let Ok(mut sys) = System::new_all() {
    sys.refresh_all();
    println!("{}", serde_json::to_string(&sys).unwrap());
}
```

## Contrato de serialización

- Los snapshots en vivo implementan `Serialize`: `System`, `Process`, `Cpu`,
  `Disk`, `Component`, `Gpu`, `NetworkData`, `User`, `Group`, `Motherboard` y
  sus colecciones.
- `Hardware` y los tipos del inventario hardware implementan `Serialize` y
  `Deserialize`.
- `Networks` se serializa como un objeto indexado por nombre de interfaz.
- `Pid` siempre es un número JSON. `Uid` y `Gid` siempre son strings JSON.
- Los valores no disponibles son `null`. El serializador nunca emite valores
  `Result`. En Windows, `User.group_id` es el SID del grupo o `null` si no se
  puede resolver.
- `Disk` expone `kind`, `id`, `name`, `file_system`, `mount_point`,
  `total_space`, `available_space`, `is_removable`, `is_read_only` y `usage`.
- `Process` incluye el entorno, ejecutable, directorio de trabajo y ruta raíz
  cuando están disponibles.

`Process`, `Disk`, `NetworkData`, `User`, `Component`, `Gpu` y el resto de
snapshots en vivo son solo de serialización: contienen estado opaco de la
plataforma y no implementan `Deserialize`.

## Contrato de deserialización

Estos tipos de valor implementan `Serialize` y `Deserialize`:

`MacAddr`, `IpNetwork`, `InterfaceOperationalState`, `PCI`, `DiskKind`, `Signal`,
`ProcessStatus`, `ThreadKind`, `KillError`, `DiskUsage`, `LoadAvg`,
`CGroupLimits`, `Hardware` y los tipos del inventario hardware.

## Privacidad

La serialización de `Process` incluye `environ`, `exe`, `cwd` y `root`. Estos
campos pueden exponer credenciales u otros datos sensibles del host. Redáctalos
antes de escribir snapshots en logs, telemetría o almacenamiento compartido.

## Estabilidad

Los nombres y tipos de los campos JSON anteriores forman parte de la API
pública. Cambiarlos requiere una versión incompatible.