David Tolnay
|
a870ac7724
|
Handle extern time lifetimes followed by semicolon
|
2020-12-28 21:04:12 -08:00 |
|
David Tolnay
|
fecb988491
|
Add ui tests of extern type lifetime parsing
|
2020-12-28 21:04:12 -08:00 |
|
David Tolnay
|
e81647ffda
|
Parse lifetimes on foreign module types
|
2020-12-28 21:04:11 -08:00 |
|
David Tolnay
|
3d2ef674a4
|
Add lifetimes to ExternType and TypeAlias syntax tree
|
2020-12-28 21:04:11 -08:00 |
|
David Tolnay
|
cb9408df8b
|
Release 1.0.23
|
2020-12-28 18:38:44 -08:00 |
|
David Tolnay
|
967866804c
|
Merge pull request #609 from dtolnay/weak
Add Rust std::weak_ptr binding
|
2020-12-28 18:35:10 -08:00 |
|
David Tolnay
|
18ed79b04c
|
Add impl Debug for WeakPtr
|
2020-12-28 18:21:46 -08:00 |
|
David Tolnay
|
bc6e43c156
|
Add WeakPtr test
|
2020-12-28 18:18:55 -08:00 |
|
David Tolnay
|
7a48785a8e
|
Add upgrade conversion from WeakPtr to SharedPtr
|
2020-12-28 18:09:55 -08:00 |
|
David Tolnay
|
85b6bc4a39
|
Add downgrade conversion from SharedPtr to WeakPtr
|
2020-12-28 18:06:17 -08:00 |
|
David Tolnay
|
215e77fbec
|
Add Rust std::weak_ptr binding
|
2020-12-28 17:41:20 -08:00 |
|
David Tolnay
|
cd1430c5ef
|
Add SharedPtr<bool>
|
2020-12-28 17:25:37 -08:00 |
|
David Tolnay
|
378cd6e5ca
|
Update SharedPtr target type check
These types were implemented in #563.
|
2020-12-28 17:24:28 -08:00 |
|
David Tolnay
|
40f4b5630c
|
Fix capitalization typo in SharedPtr rustdoc
|
2020-12-28 15:04:54 -08:00 |
|
David Tolnay
|
91b22332fc
|
Add weak_ptr to planned bindings list
Tracked in #607.
|
2020-12-28 14:39:53 -08:00 |
|
David Tolnay
|
7f056cdf46
|
Release 1.0.22
|
2020-12-28 11:42:43 -08:00 |
|
David Tolnay
|
5a61bda9c1
|
Lockfile update
|
2020-12-28 11:42:02 -08:00 |
|
David Tolnay
|
78a5f8d123
|
Restyle Box::value_type deprecation to be preserved in generated code
|
2020-12-28 11:40:38 -08:00 |
|
David Tolnay
|
8729da81ae
|
Clean up guards from C++ standard library type shims
These shims are only emitted into the cc file, not any headers, so there
is no way they would end up more than once in the compiled code.
|
2020-12-27 22:34:12 -08:00 |
|
David Tolnay
|
f7af2655c7
|
Clean up some unneeded guards on Box and Vec externs
These blocks contain extern function declarations only, not definitions.
It's okay for declarations to be repeated so the guard serves no
purpose.
|
2020-12-27 22:23:45 -08:00 |
|
David Tolnay
|
c4a3ede519
|
Move let_cxx_string's $value evaluation outside of unsafe block
|
2020-12-27 21:45:41 -08:00 |
|
David Tolnay
|
fe67bf4b6a
|
Add test with qsort on a mut slice of opaque Rust types
|
2020-12-27 19:39:13 -08:00 |
|
David Tolnay
|
f62458f075
|
Define member type Slice<T>::value_type = T
|
2020-12-27 19:38:43 -08:00 |
|
David Tolnay
|
e47a4d94d0
|
Rename Box value_type to element_type
This matches the member type naming on unique_ptr.
https://en.cppreference.com/w/cpp/memory/unique_ptr#Member_types
It appears value_type is for a member type of a container or iterator
while element_type is for the target of a smart pointer.
|
2020-12-27 19:35:24 -08:00 |
|
David Tolnay
|
e0d2227b6f
|
Merge pull request #606 from dtolnay/derive
Document derive support in shared types page of website
|
2020-12-27 15:10:08 -08:00 |
|
David Tolnay
|
03d73e1410
|
Document derive support in shared types page of website
|
2020-12-27 15:03:51 -08:00 |
|
David Tolnay
|
088a37433a
|
Show source of is_const_v and random_access_iterator_tag in Slice doc
|
2020-12-27 14:32:48 -08:00 |
|
David Tolnay
|
9a552567f6
|
Merge pull request 554 from MichaelRFairhurst/slice-strides
|
2020-12-27 13:55:52 -08:00 |
|
David Tolnay
|
b592fe509f
|
Merge pull request #605 from dtolnay/iterator
Reuse Slice<T>'s iterator for Vec iteration too
|
2020-12-27 13:47:48 -08:00 |
|
David Tolnay
|
725bf505b4
|
Reuse Slice<T>'s iterator for Vec iteration too
|
2020-12-27 13:38:44 -08:00 |
|
David Tolnay
|
4094affae0
|
Merge pull request #604 from dtolnay/vecstride
Eliminate Vec stride symbol in favor of size_of
|
2020-12-27 13:38:35 -08:00 |
|
David Tolnay
|
e1df7ddba0
|
Eliminate Vec stride symbol in favor of size_of
|
2020-12-27 13:29:06 -08:00 |
|
David Tolnay
|
d5e3ef8d73
|
Merge pull request #603 from dtolnay/slice
Allow passing slice of extern Rust type across FFI
|
2020-12-27 13:28:47 -08:00 |
|
David Tolnay
|
5ce110e807
|
Update Slice implementation to respect runtime size_of
|
2020-12-27 13:19:45 -08:00 |
|
David Tolnay
|
fc935fb2b7
|
Add test of rust::Slice of opaque Rust type
|
2020-12-27 13:19:45 -08:00 |
|
David Tolnay
|
3adf3c81b6
|
Allow passing slice of extern Rust type across FFI
|
2020-12-27 13:19:45 -08:00 |
|
David Tolnay
|
b97573b4e1
|
Merge pull request #602 from dtolnay/slice
Obtain accurate alignment for empty slice of opaque Rust type
|
2020-12-27 13:19:37 -08:00 |
|
David Tolnay
|
eee622c4ac
|
Obtain accurate alignment for empty slice of opaque Rust type
|
2020-12-27 13:08:09 -08:00 |
|
David Tolnay
|
f8ea533150
|
Merge pull request #601 from dtolnay/slice
Obtain Slice iterator stride in a way that works for opaque types
|
2020-12-27 13:07:37 -08:00 |
|
David Tolnay
|
6f92baa8ff
|
Obtain Slice iterator stride in a way that works for opaque types
|
2020-12-27 12:59:47 -08:00 |
|
David Tolnay
|
fb1b6a7d0b
|
Merge pull request #600 from dtolnay/stride
Track stride as runtime value in Slice iterator
|
2020-12-27 12:59:38 -08:00 |
|
David Tolnay
|
a1ddbf846f
|
Track stride as runtime value in Slice iterator
|
2020-12-27 12:52:02 -08:00 |
|
David Tolnay
|
cc5f820b59
|
Merge pull request #599 from dtolnay/slicerandom
Expand Slice iterator to be random access iterator
|
2020-12-27 12:51:52 -08:00 |
|
David Tolnay
|
8f2180ce23
|
Add test of sorting rust::Slice
|
2020-12-27 12:43:48 -08:00 |
|
David Tolnay
|
e1ad7fab51
|
Document Slice iterator API
|
2020-12-27 12:43:48 -08:00 |
|
David Tolnay
|
c30e447134
|
Expand Slice iterator to be random access iterator
|
2020-12-27 12:43:48 -08:00 |
|
David Tolnay
|
db388c9090
|
Update Slice iterator definition to follow canonical signatures
|
2020-12-27 12:43:48 -08:00 |
|
David Tolnay
|
73beb2696b
|
Merge pull request #598 from dtolnay/indexing
Add checked and unchecked indexing to rust::Slice
|
2020-12-27 12:43:36 -08:00 |
|
David Tolnay
|
974bc9559d
|
Add Slice indexing to API on website
|
2020-12-27 12:32:22 -08:00 |
|
David Tolnay
|
b4512a4465
|
Test rust::Slice indexing
|
2020-12-27 12:32:22 -08:00 |
|