blob: 17e4e0e4095b19093b1bbd9cca8a4dcecb08c9f6 [file] [log] [blame]
Allen Webbf1ab58d2019-10-02 07:56:45 -07001// 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
7use std::path::Path;
8
Allen Webbbb662be2020-09-17 18:40:29 -05009use chromeos_dbus_bindings::{self, generate_module, BindingsType};
Allen Webbf1ab58d2019-10-02 07:56:45 -070010
11const SOURCE_DIR: &str = ".";
12
13// (<module name>, <relative path to source xml>)
Allen Webbbb662be2020-09-17 18:40:29 -050014const BINDINGS_TO_GENERATE: &[(&str, &str, BindingsType)] = &[(
15 "org_torproject_tlsdate",
16 "dbus/org.torproject.tlsdate.xml",
17 BindingsType::Client,
18)];
Allen Webbf1ab58d2019-10-02 07:56:45 -070019
20fn main() {
21 generate_module(Path::new(SOURCE_DIR), BINDINGS_TO_GENERATE).unwrap();
22}