1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2026 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import!
/// Public function which multiplies two integers.
///
/// Used as as smoke test of the infrastructure for generating C++ bindings to
/// public Rust APIs.
/// Public function that returns a Rust `char`.
///
/// Used to test `crubit/support/...` libraries. In particular, support for
/// `char` depends on `crubit/support/rs_std/char.h`.
/// Public function which returns a `Multiplier` object.
///
/// Used to test bindings which depend on types defined in other crates.
/// (It also showcases Crubit's ability to pass Rust objects **by value**
/// over the FFI boundary.)
/// Public function which returns an `std::time::Duration` object.
///
/// Used to test bindings which depend on types defined in Rust standard
/// library.