Commit Graph

22 Commits

Author SHA1 Message Date
xxlight
9908d7bdae cxx and bindgen tests
Issue: https://gitee.com/openharmony/third_party_rust_cxx/issues/I717LF
Signed-off-by: xxlight <xiaoxiaoliang2@huawei.com>
Change-Id: I46fefbe0979305aca135968cf200598ceb7b8f92
2023-05-09 12:02:10 +08:00
David Tolnay
fe16a5dea3
Raise minimum rustc to 1.60 2023-01-07 12:37:18 -08:00
David Tolnay
0b4b73f2cb
Adopt unsafe_op_in_unsafe_fn style 2021-08-27 13:01:46 -07:00
David Tolnay
970ed99049
Add an option to fail build on C++ compile warnings 2021-01-02 21:30:42 -08:00
David Tolnay
0f0162f37d
Bump namespace to 1 2020-11-17 08:30:10 -08:00
David Tolnay
bc413be957
Raise rustc checked in build script to 1.48 2020-11-11 12:13:49 -08:00
David Tolnay
1d0266aaa3
Warn on unsupported rust toolchain version 2020-11-11 12:00:32 -08:00
David Tolnay
8f16ae75f3
Bump namespace to 05 2020-10-08 19:34:50 -07:00
David Tolnay
ee907be404
Use Cargo's build script metadata feature to make reliable include dirs 2020-10-08 16:14:53 -07:00
David Tolnay
591dcb647d
Bump namespace to 04 2020-09-01 23:00:38 -07:00
David Tolnay
585a9fe8d4
Remove link-cplusplus dependency from non-Cargo builds 2020-08-30 21:03:38 -07:00
David Tolnay
de1cb777b2
Specify consistent c++ standard between cxx and cxx-test-suite 2020-08-28 17:36:33 -07:00
David Tolnay
9808ef177c
Add cargo cfgs for opt in to newer standards
Currently unused, but will be needed when integrating std::optional or
std::string_view support.

    [dependencies]
    cxx = { version = "0.3", features = ["c++17"] }
2020-05-11 20:30:44 -07:00
Philip Craig
7e14e2e6cb
avoid MSVC warning via flag_if_supported 2020-05-09 12:00:49 -07:00
David Tolnay
110df7dc21
Defer to link-cplusplus crate for linking a standard library 2020-05-08 13:09:56 -07:00
Christopher Chalmers
d24563dd24 Add cpp flag to cc
This means that clang++ will be called instead of clang.
2020-05-08 20:39:10 +01:00
David Tolnay
6960162922
Bump namespace to cxxbridge03 2020-04-29 18:49:50 -07:00
David Tolnay
8c7304998e
Bump inline namespace to match minor version 2020-03-13 01:29:23 -07:00
David Tolnay
736cbcad40
Move header include path to rust/cxx.h 2020-03-11 16:51:38 -07:00
David Tolnay
af60e239b0
Use platform's default C++ standard library 2020-01-24 15:23:20 -08:00
David Tolnay
e43b737f2c
Release 0.1.0 2020-01-08 08:57:24 -08:00
David Tolnay
7db7369797
Safe FFI between Rust and C++ 2020-01-08 08:57:24 -08:00