Allen Webb | f1ab58d | 2019-10-02 07:56:45 -0700 | [diff] [blame] | 1 | // Copyright 2019 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Generates the Rust D-Bus bindings for tlsdate. |
| 6 | |
| 7 | use std::path::Path; |
| 8 | |
| 9 | use chromeos_dbus_bindings::{self, generate_module}; |
| 10 | |
| 11 | const SOURCE_DIR: &str = "."; |
| 12 | |
| 13 | // (<module name>, <relative path to source xml>) |
| 14 | const BINDINGS_TO_GENERATE: &[(&str, &str)] = |
| 15 | &[("org_torproject_tlsdate", "dbus/org.torproject.tlsdate.xml")]; |
| 16 | |
| 17 | fn main() { |
| 18 | generate_module(Path::new(SOURCE_DIR), BINDINGS_TO_GENERATE).unwrap(); |
| 19 | } |