3 Commits

Author SHA1 Message Date
David Tolnay
33b1ae9564
Merge pull request 364 from adetaylor/make-cxx-h-available 2020-10-16 13:11:56 -07:00
Adrian Taylor
c904f8a74f Make cxx.h available to high level code generators.
At present, this file is available only from the git repository,
but higher level code generators may wish to ensure that they supply
a version of cxx.h corresponding precisely to the version of cxx
in use.

Specifically, such higher level code generators may wish to use
rust::Str and similar types in code which _they_ autogenerate,
and thus need a way to include definitions of such types. As
this code is autogenerated, it can't reasonably rummage around
the cxx git repository to find the correct cxx.h header.

To be even more specific, higher level code generators may wish
to pass rust::Str and/or rust::String types into C++, in order
to create UniquePtr<CxxString>s from Rust strings during function
calls.
2020-10-16 10:47:58 -07:00
David Tolnay
f8ed07327b
Split cxx runtime and build components 2020-04-29 18:23:14 -07:00