printer_service/lib.rs
1
2mod windows;
3
4pub fn get_printers() -> String {
5 if cfg!(windows) {
6 return windows::get_printers();
7 }
8
9 panic!("Unsupported OS");
10}
11
12pub fn get_printers_by_name(name: String) -> String {
13 if cfg!(windows) {
14 return windows::get_printers_by_name(name);
15 }
16
17 panic!("Unsupported OS");
18}