mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Merge pull request 364 from adetaylor/make-cxx-h-available
This commit is contained in:
commit
33b1ae9564
@ -2,3 +2,6 @@ This directory contains CXX's C++ code generator. This code generator has two
|
||||
public frontends, one a command-line application (binary) in the *cmd* directory
|
||||
and the other a library intended to be used from a build.rs in the *build*
|
||||
directory.
|
||||
|
||||
There's also a 'lib' frontend which is intended to allow higher level code
|
||||
generators to embed cxx. This is not yet recommended for general use.
|
||||
|
@ -20,6 +20,7 @@ mod gen;
|
||||
mod syntax;
|
||||
|
||||
pub use crate::error::Error;
|
||||
pub use crate::gen::include::HEADER;
|
||||
pub use crate::gen::{GeneratedCode, Opt};
|
||||
use proc_macro2::TokenStream;
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
use crate::gen::out::OutFile;
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
/// The complete contents of the "rust/cxx.h" header.
|
||||
pub static HEADER: &str = include_str!("include/cxx.h");
|
||||
|
||||
pub(super) fn write(out: &mut OutFile, needed: bool, guard: &str) {
|
||||
|
Loading…
Reference in New Issue
Block a user