Commit Graph

728 Commits

Author SHA1 Message Date
David Tolnay
8cfdd7ddd6
Merge pull request #247 from adetaylor/include-guards
Writing include guards around each type.
2020-07-31 19:05:48 -07:00
David Tolnay
df4ca02003
Access namespace via OutFile 2020-07-31 18:33:44 -07:00
David Tolnay
3be1a7fc53
Merge pull request #245 from dtolnay/clap
Switch cli arg parsing from structopt to clap
2020-07-31 18:29:15 -07:00
Adrian Taylor
a1f890b468 Writing include guards around each type.
This avoids problems with duplicate definitions when the
generated .cc ends up including the generated .h via intermediate
includes.
2020-07-31 15:35:34 -07:00
David Tolnay
54702b9839
Use 'write!(out.front, ...)' to write to the front matter 2020-07-31 11:50:09 -07:00
David Tolnay
a05bb4ecd4
Merge pull request #246 from dtolnay/pragma
#pragma once needs to be above includes
2020-07-31 11:16:02 -07:00
David Tolnay
f4632ded18
#pragma once needs to be above includes 2020-07-31 10:46:55 -07:00
David Tolnay
b316d0bb1c
Remove structopt from third-party 2020-07-30 22:42:34 -07:00
David Tolnay
39fa366897
Switch cli arg parsing from structopt to clap 2020-07-30 22:41:52 -07:00
David Tolnay
bf0e48bdb0
Merge pull request #244 from dtolnay/bazel
Update bazel Rust rules repo
2020-07-30 22:41:39 -07:00
David Tolnay
dd24719b97
Update bazel Rust rules 2020-07-30 22:30:02 -07:00
David Tolnay
a96213c600
Lockfile update 2020-07-30 22:24:22 -07:00
David Tolnay
829b0707e6
Update bazel build to rust 1.44 2020-07-30 22:24:22 -07:00
David Tolnay
0d47a53576
Move C++ code generator unit tests to module 2020-07-30 19:39:04 -07:00
David Tolnay
28da250d24
Merge pull request #242 from dtolnay/str-ptr-len
Add rust::String(const char *, size_t) constructor
2020-07-29 18:41:43 -07:00
David Tolnay
894c5e45dc
Add rust::Str(const char *, size_t) constructor 2020-07-29 18:21:50 -07:00
David Tolnay
c2bbd952d2
Add rust::String(const char *, size_t) constructor 2020-07-29 18:17:19 -07:00
David Tolnay
b1dced5711
Merge pull request #231 from adetaylor/set-visibility
Allow DSO export for C Rust bindings.
2020-07-29 17:37:56 -07:00
Adrian Taylor
8205e625c1
Adding test for new annotations. 2020-07-29 17:31:16 -07:00
Adrian Taylor
21f0ff0424
Allow DSO export for C Rust bindings.
This option to the 'cxxbridge' command line tool allows
users to specify (for example)

  __attribute__((visibility("default")))
or
  __declspec(dllexport)

on C functions which may be exported from a shared object
as they may be required by Rust code in different binaries.
2020-07-29 17:31:16 -07:00
David Tolnay
4caede6876
Merge pull request #239 from dtolnay/new
Include <new> when placement new is used
2020-07-29 16:37:28 -07:00
David Tolnay
0ecd05a9bf
Include <new> when placement new is used 2020-07-29 16:32:03 -07:00
David Tolnay
2b87b16679
Merge pull request #233 from dtolnay/ui
Unbreak ui tests
2020-07-21 18:26:07 -07:00
David Tolnay
6911d6d604
Update ui tests to nightly-2020-07-15 2020-07-21 18:05:48 -07:00
David Tolnay
0067236217
Update ui tests to nightly-2020-07-07 2020-07-21 18:02:36 -07:00
David Tolnay
b3d5e600a7
Update ui tests to nightly-2020-06-27 2020-07-21 17:58:14 -07:00
David Tolnay
0c8c0f26fa
Unbreak ui test on c_take_callback warning 2020-07-21 17:57:46 -07:00
David Tolnay
bbd2620921
Update ui tests to nightly-2020-06-14 2020-06-13 19:17:21 -07:00
David Tolnay
63c55b6cc3
Merge pull request #212 from CAD97/patch-1
Small typo fix
2020-05-24 09:02:14 -07:00
Christopher Durham
b8d211d359
Small typo fix
s/when manipulation a/when manipulating a/
2020-05-24 11:56:32 -04:00
David Tolnay
caef2b9589
Remove dependency on proc-macro2/proc-macro feature 2020-05-23 14:58:20 -07:00
David Tolnay
57d3c68a23
Release 0.3.4 2020-05-22 11:13:47 -07:00
David Tolnay
2de2e17bc9
Lockfile update 2020-05-22 11:12:35 -07:00
David Tolnay
ae7143655d
Test c method calls without needing PartialEq on Exception 2020-05-22 11:12:35 -07:00
David Tolnay
eedf737d91
Revert exception change from PR 210 2020-05-22 11:08:50 -07:00
myronahn
e3b78ea409
Fix issue with indirect return for C++ member function w/no args 2020-05-22 11:08:13 -07:00
David Tolnay
ef8fd19a3b
Account for character based offsets in proc-macro2 2020-05-22 01:27:30 -07:00
David Tolnay
ecafa897c1
Merge pull request #209 from myronahn/master
Fix for when std::os::raw::c_char is u8 (armv7)
2020-05-17 00:35:49 -07:00
Myron Ahn
d963bf97b7 Fix for when std::os::raw::c_char is u8 (armv7) 2020-05-17 12:32:42 +07:00
David Tolnay
dd3af090b7
Try out new style of readme badges 2020-05-12 22:19:46 -07:00
David Tolnay
9846d08d40
Merge pull request #206 from dtolnay/include
Move all function implementations to the bottom of cxx.h
2020-05-12 20:59:17 -07:00
David Tolnay
2a2b9ad1f5
Move implementation details to the bottom of cxx.h 2020-05-12 20:43:20 -07:00
David Tolnay
e54f338188
Support multiple cxx.h header sections for the same guard 2020-05-12 20:43:20 -07:00
David Tolnay
1385ca42b2
Add missing noexcept on Vec<T>::const_iterator methods 2020-05-12 20:15:20 -07:00
David Tolnay
8c54eeca6c
Add missing noexcept on a Slice constructor 2020-05-12 20:08:20 -07:00
David Tolnay
32ee9d3676
rust::Vec has a bitcopy constructor too 2020-05-12 20:01:15 -07:00
David Tolnay
6aa34e4240
Release 0.3.3 2020-05-11 20:56:51 -07:00
David Tolnay
cf22385662
Document c++ standard support 2020-05-11 20:50:59 -07:00
David Tolnay
0e078f74be
Add release notes link to crate-level rustdoc 2020-05-11 20:50:03 -07:00
David Tolnay
2b93b55560
Merge pull request #203 from dtolnay/unique
Switch demo code to using std::make_unique
2020-05-11 20:48:12 -07:00