comparison tests/systemd.rs @ 13:f740dadd2948

Added enable_systemd feature This feature makes systemd support optional, on by default. While it may seem strange that this feature exists, it makes sense for authors of applications who want to make systemd optional. Thanks to this feature the interface stays the same, it just fails to parse `systemd://` addresses with a helpful error message.
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Thu, 03 Dec 2020 16:34:09 +0100
parents 9731ff589d9c
children bc76507dd878
comparison
equal deleted inserted replaced
12:4479770c2275 13:f740dadd2948
21 .spawn() 21 .spawn()
22 } 22 }
23 } 23 }
24 24
25 #[test] 25 #[test]
26 #[cfg_attr(not(linux), should_panic)] 26 #[cfg_attr(not(all(linux, feature = "enable_systemd")), should_panic)]
27 fn main() { 27 fn main() {
28 comm::main::<Test>(); 28 comm::main::<Test>();
29 } 29 }