host_identity/sources/freebsd_stubs.rs
1//! Non-FreeBSD stubs. Return `Ok(None)` so the types can appear portably.
2
3use crate::source::SourceKind;
4use crate::sources::stub_macros::{path_stub, unit_stub};
5
6path_stub!(
7 /// FreeBSD `/etc/hostid` source (no-op on non-FreeBSD targets).
8 FreeBsdHostIdFile,
9 SourceKind::FreeBsdHostId,
10 "/etc/hostid"
11);
12
13unit_stub!(
14 /// FreeBSD `kenv smbios.system.uuid` source (no-op on non-FreeBSD targets).
15 KenvSmbios,
16 SourceKind::KenvSmbios
17);