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 | |
Allen Webb | bb662be | 2020-09-17 18:40:29 -0500 | [diff] [blame] | 9 | use chromeos_dbus_bindings::{self, generate_module, BindingsType}; |
Allen Webb | f1ab58d | 2019-10-02 07:56:45 -0700 | [diff] [blame] | 10 | |
| 11 | const SOURCE_DIR: &str = "."; |
| 12 | |
| 13 | // (<module name>, <relative path to source xml>) |
Allen Webb | bb662be | 2020-09-17 18:40:29 -0500 | [diff] [blame] | 14 | const BINDINGS_TO_GENERATE: &[(&str, &str, BindingsType)] = &[( |
| 15 | "org_torproject_tlsdate", |
| 16 | "dbus/org.torproject.tlsdate.xml", |
| 17 | BindingsType::Client, |
| 18 | )]; |
Allen Webb | f1ab58d | 2019-10-02 07:56:45 -0700 | [diff] [blame] | 19 | |
| 20 | fn main() { |
| 21 | generate_module(Path::new(SOURCE_DIR), BINDINGS_TO_GENERATE).unwrap(); |
| 22 | } |