mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 15:19:44 +00:00
3351bc7898
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 ``` |
||
---|---|---|
.. | ||
build | ||
cmd | ||
lib | ||
src | ||
README.md |
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.