blob: 271a26baced104f8f368b30234fd756d0188b6fd [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
9use chromeos_dbus_bindings::{self, generate_module};
10
11const SOURCE_DIR: &str = ".";
12
13// (<module name>, <relative path to source xml>)
14const BINDINGS_TO_GENERATE: &[(&str, &str)] =
15 &[("org_torproject_tlsdate", "dbus/org.torproject.tlsdate.xml")];
16
17fn main() {
18 generate_module(Path::new(SOURCE_DIR), BINDINGS_TO_GENERATE).unwrap();
19}