gai-core: pure logic for parsing the OS name-resolution configuration and simulating the getaddrinfo() decision path.
No network I/O, no process interception. Everything here is testable against fixture files, which is the whole point of keeping it separate from gai-probe, which supplies real answers over the network/D-Bus.
Example
use ;
use ;
// A resolver that always finds an answer via DNS — in real use this
// would be gai-probe's SystemSourceResolver, doing actual I/O.
;
let config = NsswitchConfig ;
let outcome = simulate;
assert!;
assert_eq!;