David Tolnay
ab3238ca8d
Release 1.0.18
2020-12-13 16:02:02 -08:00
David Tolnay
25b3c1d1e2
Add dealloc shim for Box to dealloc without running T's Drop
2020-12-12 16:29:34 -08:00
David Tolnay
c4b3422dee
Delete private Box default constructor
2020-12-12 15:24:52 -08:00
David Tolnay
faf22e8112
Release 1.0.17
2020-12-12 09:59:02 -08:00
David Tolnay
38f6fe2d37
Release 1.0.16
2020-12-11 14:13:18 -08:00
David Tolnay
dc62d713bc
Expose Vec capacity to C++
2020-12-11 13:53:17 -08:00
David Tolnay
2b3117f508
Release 1.0.15
2020-12-10 20:08:45 -08:00
David Tolnay
1cde514d94
Clean up unused mut from Unique-/SharedPtr expansion
2020-12-10 19:48:20 -08:00
David Tolnay
a7b2b30c28
Release 1.0.14
2020-12-10 12:22:18 -08:00
David Tolnay
1acc8a0ca7
Limit instantiation of Vec and Box shims to local element type
2020-12-09 22:35:29 -08:00
David Tolnay
8801e60242
Release 1.0.13
...
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEERijF2Cz/ZdaBZKeK+boUO5X/bYIFAl/OgBsACgkQ+boUO5X/
bYLIIQ//VUuTKulnHybQUDza2+uVqP/AR4YsfPsX8LUKeHK0b44bOgrL8mzxDLgh
rggkoEIyAdTo708cWUyTVa+0YWkiogUvpxyUrYDAjXJRgL+wY/bvHRc8WFZgDEJf
SjRChUvmSG+T1Xi4kSLN43enYzIXQlT+LM4nT9zde8//W6e9oZapqax9XHJs7T2L
GWU3YJikbz67Ox30aLsCnEXuUYRxZgU7VAuifDGNihATQYvCjXLv3z2p1q67rBjN
5Z+7+W6zeMZWF8pcyYkWKxw533oxU3ryI59QohAEYS172rV0L8bb6r16RgIBtsl4
TMHLQm8pYgOUsR/wsvcVf7tJNlzP8QI4eVesgXiYPOtIVkul2e+4reyzrSagtFHn
/ijS8iND1EmGSzx2IPEi2iGCxdApHjvw9fOM+LoMOIBgnZ0ukuUaxQ1z2y6bLv8p
eivNZQGiAsXsPs7CNqaO8i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 into master
2020-12-07 11:19:53 -08:00
David Tolnay
c9e14fb414
Release 1.0.13
2020-12-07 11:18:51 -08:00
David Tolnay
75ea17ce4e
Rename ResolvableName -> RustName
2020-12-06 21:08:47 -08:00
David Tolnay
f33bc24057
Respect explicit impls on Vec and Box
2020-12-04 18:35:37 -08:00
David Tolnay
56f78f3433
Release 1.0.12
2020-12-04 12:51:08 -08:00
David Tolnay
7297d74fd0
Release 1.0.11
2020-12-03 12:30:29 -08:00
David Tolnay
e58f3a0ce0
Release 1.0.10
2020-12-02 10:36:49 -08:00
David Tolnay
0b8814062b
Skip a move construction on Unique/SharedPtr::new
2020-12-01 21:40:52 -08:00
David Tolnay
23a0e9d1bc
Insert some pointer casts to hide type of ptr target from improper_ctypes
2020-12-01 21:00:02 -08:00
David Tolnay
b3b24a1fe0
Add Rust std::shared_ptr binding
2020-12-01 20:49:04 -08:00
David Tolnay
9bbbe5fa89
Release 1.0.9
2020-12-01 14:50:36 -08:00
David Tolnay
22af60d237
Fix enum PartialOrd and Ord derives
2020-12-01 14:49:47 -08:00
David Tolnay
0b933debac
Release 1.0.8
2020-11-30 00:21:02 -08:00
David Tolnay
76dfe624d0
Pull in syn 1.0.53 for negative impl support
2020-11-29 21:50:54 -08:00
David Tolnay
45e4a80875
Release 1.0.7
2020-11-29 14:57:08 -08:00
David Tolnay
1dcd53e4a7
Allow instance methods with same name on different types in same bridge
2020-11-29 14:46:55 -08:00
David Tolnay
edff9c0d50
Suppress clippy too_many_arguments lint
2020-11-27 20:54:08 -08:00
David Tolnay
16e2620fe5
Add ExternType derive for opaque Rust types
2020-11-27 19:45:21 -08:00
David Tolnay
ecce017e14
Release 1.0.6
2020-11-27 18:31:15 -08:00
David Tolnay
afdf3d7364
Use standard library's Hash derive
...
This avoids Clippy derive_hash_xor_eq warnings in generated code:
error: you are implementing `Hash` explicitly but have derived `PartialEq`
--> tests/ffi/lib.rs:28:21
|
28 | #[derive(Debug, Hash)]
| ^^^^
|
= note: `#[deny(clippy::derive_hash_xor_eq)]` on by default
note: `PartialEq` implemented here
--> tests/ffi/lib.rs:16:1
|
16 | #[cxx::bridge(namespace = "tests")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020-11-27 18:22:40 -08:00
David Tolnay
7da38209bf
Support derive(Hash)
2020-11-27 18:09:44 -08:00
David Tolnay
a05f9402db
Tweak operator symbol mangling
2020-11-27 17:44:18 -08:00
David Tolnay
a6a9e94e08
Support derive(Default) on structs
2020-11-27 17:28:55 -08:00
David Tolnay
8438935356
Wire up comparison operators
2020-11-27 17:17:52 -08:00
David Tolnay
577135e79a
Support derive(PartialOrd, Ord)
2020-11-27 17:17:51 -08:00
David Tolnay
a6f3b6f4ec
Implement operator!= using a distinct symbol from operator==
2020-11-27 17:00:20 -08:00
David Tolnay
ec9b4ba0a6
Avoid function name collision on __operator_eq
2020-11-27 16:57:06 -08:00
David Tolnay
b960ed26af
Emit operator== for structs with derive(PartialEq)
2020-11-27 15:59:03 -08:00
David Tolnay
21466dfe28
Allow derive(PartialEq, Eq) on shared types
2020-11-27 15:59:03 -08:00
David Tolnay
a3619e92f7
Prepare for PartialEq derives on structs
2020-11-27 15:59:03 -08:00
David Tolnay
b3d7bb12fb
Move PartialEq related derive logic to derive module
2020-11-27 15:59:03 -08:00
David Tolnay
982158b9e4
Suppress clippy single_match lint
2020-11-27 15:58:55 -08:00
David Tolnay
bc047bb26e
Add helper for querying derived traits
2020-11-27 14:30:18 -08:00
David Tolnay
f84c98bdb7
Implement derive(Debug) on shared structs and enums
2020-11-27 13:26:54 -08:00
David Tolnay
fbc4669989
Handle derives on shared enums
2020-11-27 13:08:45 -08:00
David Tolnay
0521373464
Refer to std derives by absolute path
...
This prevents hijacking if the caller's crate has a macro in
scope (via #[macro_use]) with the same name.
2020-11-27 12:52:12 -08:00
David Tolnay
2c24e5cb84
Refactor struct derive implementations
2020-11-27 12:47:41 -08:00
David Tolnay
d8ad970270
Extract derive implementations to module
2020-11-27 12:44:05 -08:00
David Tolnay
f3b89fb23a
Preserve span of fields in derived Clone impl
2020-11-27 12:32:30 -08:00
David Tolnay
b247df1d26
Preserve span on Derive trait impls
2020-11-27 12:20:49 -08:00