David Tolnay
6c089108e4
Remove prefix from mangled string symbols
2020-03-02 00:23:05 -08:00
David Tolnay
4590d2af81
Delete unused get_raw member from Box
2020-03-02 00:03:25 -08:00
David Tolnay
851677c4cc
Remove insignificant parameter names from header
2020-03-01 23:49:46 -08:00
David Tolnay
2248c3064e
Write Box internals in terms of type aliases
2020-03-01 21:13:32 -08:00
David Tolnay
9f9213709d
Backport type aliases to c++11
2020-03-01 21:09:40 -08:00
David Tolnay
f6292378c7
Add rust::Box member type aliases
2020-03-01 21:09:11 -08:00
David Tolnay
d9c4ac955f
Organize string constructors
2020-03-01 20:36:21 -08:00
David Tolnay
133d9d5d9d
Merge pull request #56 from dtolnay/cast
...
Change cast operators to explicit
2020-03-01 20:36:12 -08:00
David Tolnay
baae443ae2
Change Str to Repr operator to explicit
2020-03-01 20:20:10 -08:00
David Tolnay
404d689e95
Change string cast operators to explicit
2020-03-01 20:19:41 -08:00
David Tolnay
83a5a11b9a
Merge pull request #55 from dtolnay/iosfwd
...
Use iosfwd for forward declared ostream insertion operators
2020-03-01 20:18:37 -08:00
David Tolnay
001102af71
Use iosfwd for forward declared ostream insertion operators
2020-03-01 20:05:04 -08:00
David Tolnay
9081beb1a0
Remove redundant prefix from mangled Box related symbols
2020-03-01 19:52:09 -08:00
David Tolnay
da2b904530
Merge pull request #50 from dtolnay/snake
...
Expose snake case type aliases
2020-03-01 14:42:19 -08:00
David Tolnay
92d12f3993
Revert "Demonstrate that snake case type aliases work"
...
This reverts commit c2db0e83f2
.
2020-03-01 14:13:50 -08:00
David Tolnay
c2db0e83f2
Demonstrate that snake case type aliases work
2020-03-01 14:09:19 -08:00
David Tolnay
3b0c988059
Expose snake case type aliases
2020-03-01 14:08:57 -08:00
David Tolnay
9ad1fbc478
Pass ending comment to end_block
...
Clang-format doesn't always like the same ending comment as the start of
the block. In particular it wants:
inline namespace cxxbridge01 {
...
} // namespace cxxbridge01
2020-03-01 14:05:01 -08:00
David Tolnay
69fe4c25ec
Format with clang-format
2020-03-01 14:05:01 -08:00
David Tolnay
e3bd6abf48
Merge pull request #48 from dtolnay/namespace
...
Better use of namespaces
2020-03-01 14:00:40 -08:00
David Tolnay
aa17a5acbb
Rename example's namespace to org::example
2020-03-01 13:47:29 -08:00
David Tolnay
750755e557
Rename namespace to rust::inline cxxbridge01
2020-03-01 13:47:29 -08:00
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
d944446b98
Merge pull request #47 from dtolnay/nested
...
Support nested blocks in C++ emitter
2020-03-01 13:47:19 -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
e976487440
Update third-party deps to drop rustversion
2020-03-01 12:49:21 -08:00
David Tolnay
649337e12d
Move namespace alias to top of header for visibility
2020-02-25 18:11:20 -08:00
David Tolnay
63576d458d
Move build -> tools/bazel
...
Fixes https://github.com/dtolnay/cxx/issues/45 .
2020-02-25 00:13:25 -08:00
David Tolnay
089e479b22
Run buildifier to resort after hyphen conversion
2020-02-25 00:12:50 -08:00
David Tolnay
3e7ac51fc0
Add windows msvc build
2020-02-24 23:18:12 -08:00
David Tolnay
764d5e90bb
Merge pull request #42 from dtolnay/windows
...
Enable windows CI
2020-02-24 22:39:41 -08:00
David Tolnay
b3d52389a8
Use platform's path separator when writing cxxbridge.h
2020-02-24 22:20:34 -08:00
David Tolnay
c8a2494a0a
Enable windows CI
2020-02-24 22:20:34 -08:00
David Tolnay
25221c110b
Merge pull request #41 from dtolnay/canonicalize
...
Remove reliance on fs::canonicalize on Windows
2020-02-24 22:20:17 -08:00
David Tolnay
fa1a2bdb5a
Remove reliance on fs::canonicalize on Windows
2020-02-24 21:58:17 -08:00
David Tolnay
7ce723cae0
Merge pull request #37 from dtolnay/hyphen
...
Preserve hyphens in bazel third-party crate names
2020-02-24 20:15:32 -08:00
David Tolnay
671dff87d6
Preserve hyphens in third-party crate names
2020-02-24 16:48:03 -08:00
David Tolnay
3fdda34015
Pull in io_bazel_rules_rust update to support hyphens
2020-02-24 16:47:56 -08:00
David Tolnay
44806f760f
Ignore windows build for now
2020-02-24 02:08:10 -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
bce77ba9fe
Add travis build on windows
2020-02-24 01:54:27 -08:00
David Tolnay
2fc07c11a8
Merge pull request #40 from dtolnay/box
...
Protect from ADL in Box construction and assignment
2020-02-23 01:06:28 -08:00
David Tolnay
908385887b
Protect from ADL in Box construction and assignment
2020-02-23 00:57:03 -08:00
David Tolnay
54875798ec
Merge pull request #39 from dtolnay/suite
...
Add test suite targets for buck and bazel
2020-02-23 00:46:22 -08:00
David Tolnay
9bc613e7db
Add test suite targets for buck and bazel
2020-02-23 00:36:44 -08:00
David Tolnay
e3e0a71291
Use the public cxxbridge.h include path
2020-02-23 00:18:57 -08:00
David Tolnay
d1010bdb39
Merge pull request #38 from dtolnay/suite
...
Add test suite covering various permutations of signatures
2020-02-22 23:03:10 -08:00