third_party_rust_cxx/gen
Cameron Pickett 3351bc7898 Fix warning mismatching struct and class
Fix for warning when running cargo test.

```
warning: /Users/pickett/Documents/GitHub/cxx/target/debug/build/cxx-test-suite-de711daed7f2e46d/out/cxxbridge/sources/tests/ffi/lib.rs.cc:1256:10: warning: struct template 'Slice' was previously declared as a class template; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]
warning: template struct ::rust::Slice<const char>;
warning:          ^
warning: /Users/pickett/Documents/GitHub/cxx/target/debug/build/cxx-test-suite-de711daed7f2e46d/out/cxxbridge/include/rust/cxx.h:146:7: note: previous use is here
warning: class Slice final
warning:       ^
warning: /Users/pickett/Documents/GitHub/cxx/target/debug/build/cxx-test-suite-de711daed7f2e46d/out/cxxbridge/sources/tests/ffi/lib.rs.cc:1256:10: note: did you mean class here?
warning: template struct ::rust::Slice<const char>;
warning:          ^~~~~~
warning:          class
```
2021-01-02 12:21:24 +00:00
..
build Pull in syn 1.0.57 for const Punctuated::new support 2021-01-01 13:04:55 -08:00
cmd Pull in syn 1.0.57 for const Punctuated::new support 2021-01-01 13:04:55 -08:00
lib Pull in syn 1.0.57 for const Punctuated::new support 2021-01-01 13:04:55 -08:00
src Fix warning mismatching struct and class 2021-01-02 12:21:24 +00:00
README.md Merge pull request 364 from adetaylor/make-cxx-h-available 2020-10-16 13:11:56 -07:00

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.