blob: 517df66b80cb6b76dd74342efb5d4d1c6c3e4f20 [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef CRUBIT_RS_BINDINGS_FROM_CC_SRC_CODE_GEN_H_
#define CRUBIT_RS_BINDINGS_FROM_CC_SRC_CODE_GEN_H_
#include <string>
#include "rs_bindings_from_cc/ir.h"
namespace rs_bindings_from_cc {
// Source code for generated bindings.
struct Bindings {
// Rust source code.
std::string rs_api;
// C++ source code.
std::string rs_api_impl;
};
// Generates bindings from the given `IR`.
Bindings GenerateBindings(const IR& ir);
} // namespace rs_bindings_from_cc
#endif // CRUBIT_RS_BINDINGS_FROM_CC_SRC_CODE_GEN_H_