Commit Graph

813 Commits

Author SHA1 Message Date
David Tolnay
324437a263
Rename C++ RustBox to Box 2020-03-01 13:47:29 -08:00
David Tolnay
09dbe75a5d
Rename C++ RustStr to Str 2020-03-01 13:47:28 -08:00
David Tolnay
5608216979
Rename C++ RustString to String 2020-03-01 13:47:28 -08:00
David Tolnay
b92e66f4dc
Support nested blocks in C++ emitter 2020-03-01 13:37:15 -08:00
David Tolnay
7e219b8099
Use absolute qualified identifiers in generated C++
This avoids collision with the user's namespaces having the same name.

Less important in the context of the current names right now, but more
important after we move our public C++ API from cxxbridge:: to rust::.
In fact our example code already uses org::rust:: as the namespace,
inside of which a non-absolute rust:: would cause trouble.
2020-03-01 13:14:55 -08:00
David Tolnay
2a1eaac049
Accept non-\n line endings
On Windows, include_str brings in cxxbridge.h with \r\n line endings.
2020-02-24 02:02:58 -08:00
David Tolnay
7eb9c6b2a0
Touch up cxxbridge.h emit PR 2020-01-27 22:35:59 -08:00
RS
0a2d117fba Emit cxxbridge (#27)
* Working cxxbridge output.

* Add a way to emit cxxbridge.h
2020-01-27 21:47:37 -08:00
David Tolnay
4a44122b0f
Resolve Wreturn-type-c-linkage warnings 2020-01-25 16:26:54 -08:00
David Tolnay
8861bee797
Support opaque types that are not structs 2020-01-20 18:40:16 -08:00
David Tolnay
17955e2e8c
Implement special case types in extern Rust argument position 2020-01-20 18:09:41 -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