David Tolnay
7614e77068
Switch to short form url links in rustdoc
2020-11-10 22:55:40 -08:00
David Tolnay
fb6b73c777
Add rust::Vec push_back and emplace_back
2020-11-10 20:08:14 -08:00
David Tolnay
5c830f0d16
Release 0.5.8
0.5.8
2020-11-10 19:11:15 -08:00
David Tolnay
ea6f86c89b
Fill in <utility> header needed by Box<T>::Box(T&&)
2020-11-10 19:10:27 -08:00
David Tolnay
a5a1301058
Provide rust::Fn call operator in generated header
...
Even though the generated code does not use them, this avoids a
situation where the user's code includes a generated header (but not
rust/cxx.h) and thus gets the class definition of rust::Fn, but with the
function call operators undefined. Previously they'd have gotten missing
template errors unless they also included rust/cxx.h.
2020-11-10 19:03:52 -08:00
David Tolnay
7feb264281
Parse namespace attribute on foreign mods
2020-11-10 18:51:42 -08:00
David Tolnay
302b1753c8
Consistently use &Namespace in parser function signatures
2020-11-10 18:45:14 -08:00
David Tolnay
07c5141446
Release 0.5.7
0.5.7
2020-11-10 08:57:44 -08:00
David Tolnay
9d840365cc
Fix placement of commas in C++ member functions that call Rust methods
2020-11-10 08:50:40 -08:00
David Tolnay
74608d79bf
Add test of indirect return on member function
...
cxxbridge/sources/tests/ffi/lib.rs.cc: In member function ‘rust::cxxbridge05::String tests::Shared::r_method_on_shared() const’:
cxxbridge/sources/tests/ffi/lib.rs.cc:1583:52: error: no match for ‘operator&’ (operand types are ‘const tests::Shared’ and ‘rust::cxxbridge05::String’)
1583 | tests$cxxbridge05$Shared$r_method_on_shared(*this&return$.value);
| ~~~~~^~~~~~~~~~~~~~
| | |
| | rust::cxxbridge05::String
| const tests::Shared
2020-11-10 08:49:23 -08:00
David Tolnay
22f5ff7563
Release 0.5.6
0.5.6
2020-11-08 19:24:15 -08:00
David Tolnay
7b3605583d
Lockfile update
2020-11-08 19:23:10 -08:00
David Tolnay
7f0f60f9a6
Merge pull request #437 from dtolnay/methods
...
Support methods/member functions on shared structs
2020-11-08 19:20:58 -08:00
David Tolnay
464aeeb515
Rust-defined methods on shared structs
2020-11-08 19:14:06 -08:00
David Tolnay
102c7eaf68
C++-defined methods on shared structs
2020-11-08 19:08:31 -08:00
David Tolnay
2e159920da
Merge pull request #433 from dtolnay/clippy
...
Run clippy on test suite in CI
2020-11-06 10:24:09 -08:00
David Tolnay
7a0b134d9c
Run clippy on test suite in CI
2020-11-06 10:14:43 -08:00
David Tolnay
df67e21241
Resolve len_zero lint in cxx-gen test suite
2020-11-06 10:13:14 -08:00
David Tolnay
a972eb7d93
Ignore field_reassign_with_default
2020-11-06 10:12:21 -08:00
David Tolnay
c90b666eec
Ignore some clippy lints in test suite
...
Closes #430 .
2020-11-06 10:11:14 -08:00
David Tolnay
7c5ce689a3
Release 0.5.5
0.5.5
2020-11-06 09:54:11 -08:00
David Tolnay
20668560bb
Merge pull request #429 from dtolnay/cname
...
Upgrade to mdbook 0.4.4 for CNAME file support
2020-11-05 22:20:17 -08:00
David Tolnay
db0d0fd880
Upgrade to mdbook 0.4.4 for CNAME file support
2020-11-05 22:14:13 -08:00
David Tolnay
b1141069e5
Quote the unrecognized element in "unused element" errors
2020-11-05 20:26:11 -08:00
David Tolnay
5346b21d2f
Include exported headers in Cfg's Debug impl
2020-11-05 20:06:44 -08:00
David Tolnay
0b1a6b3353
Link Cfg fields to their explanation in CFG
2020-11-05 20:06:44 -08:00
David Tolnay
cac5a839ff
Display field types in CFG documentation
2020-11-05 20:06:43 -08:00
David Tolnay
e4633a9310
Merge pull request #428 from dtolnay/doc
...
Document CFG's exported header support
2020-11-05 20:06:28 -08:00
David Tolnay
8249c83dc2
Document CFG's exported header support
2020-11-05 20:01:19 -08:00
David Tolnay
b419eed039
Merge pull request #427 from dtolnay/unused
...
Validate that all exported_header_prefixes/_links are used
2020-11-05 17:32:58 -08:00
David Tolnay
9883086988
Validate that all exported_header_prefixes/_links are used
2020-11-05 17:23:47 -08:00
David Tolnay
8cb82377f8
Merge pull request #426 from dtolnay/validate
...
Validate that `links` attribute is set if exporting headers
2020-11-05 17:11:38 -08:00
David Tolnay
f27369608c
Validate that links
attribute is set if exporting headers
2020-11-05 17:02:21 -08:00
David Tolnay
ec4fda08a8
Store Cargo links attribute with Project
2020-11-05 16:55:27 -08:00
David Tolnay
6b064c4cb5
Merge pull request #425 from dtolnay/dirs
...
Deduplicate dirs reachable via multiple transitive dependencies
2020-11-05 16:19:18 -08:00
David Tolnay
6fb0d22357
Deduplicate dirs reachable via multiple transitive dependencies
2020-11-05 15:49:49 -08:00
David Tolnay
2558c740b7
Ensure error messages remain in sync with CFG
2020-11-05 14:52:41 -08:00
David Tolnay
225ea21a23
Validate cfg
2020-11-05 14:49:10 -08:00
David Tolnay
40b79a03b3
Merge pull request #424 from dtolnay/prefixes
...
Implement CFG.exported_header_prefixes
2020-11-05 14:46:22 -08:00
David Tolnay
4697ed0e55
Implement CFG.exported_header_prefixes
2020-11-05 14:38:53 -08:00
David Tolnay
d5bd218813
Arrange exported_header_links handling to make room for exported_header_prefixes
2020-11-05 14:37:47 -08:00
David Tolnay
8af4914f6b
Merge pull request #423 from dtolnay/links
...
Implement CFG.exported_header_links
2020-11-05 14:32:01 -08:00
David Tolnay
53ea91c98f
Factor out this_crate initialization
2020-11-05 14:21:36 -08:00
David Tolnay
887d4d05a0
Implement CFG.exported_header_links
2020-11-05 14:21:36 -08:00
David Tolnay
9554c82cef
Merge pull request #422 from dtolnay/exported
...
Track visibility of exported headers
2020-11-05 14:21:25 -08:00
David Tolnay
9b02aa09d8
Distinguish exported vs private header dirs in logging
2020-11-05 14:01:11 -08:00
David Tolnay
737502e4bd
Track visibility of exported headers
2020-11-05 14:00:46 -08:00
David Tolnay
b31e8edd65
Merge pull request #421 from dtolnay/dirs
...
Implement CFG.exported_header_dirs
2020-11-05 13:52:10 -08:00
David Tolnay
82294ccbd5
Detect non-absolute exported header dirs
2020-11-05 13:41:55 -08:00
David Tolnay
93fbc099cc
Implement CFG.exported_header_dirs
2020-11-05 13:40:36 -08:00