David Tolnay
48b09e94ef
Release 0.2.8
2020-04-13 20:31:09 -07:00
David Tolnay
40b932fc45
Release 0.2.7
2020-04-10 12:08:11 -07:00
David Tolnay
4b97272995
Release 0.2.6
2020-04-10 00:48:18 -07:00
David Tolnay
ad26677f7b
Include type name in UniquePtr function table
2020-04-09 23:42:45 -07:00
David Tolnay
5f1cc8aa44
Release 0.2.5
2020-04-09 21:07:36 -07:00
David Tolnay
5383891622
Do not emit UniquePtr::new for opaque C types
2020-04-09 20:56:44 -07:00
David Tolnay
b1637adafc
Release 0.2.4
2020-04-08 21:29:14 -07:00
David Tolnay
86949cfdc6
Release 0.2.3
2020-04-08 20:51:19 -07:00
David Tolnay
93c51a6c05
Release 0.2.2
2020-04-08 20:21:25 -07:00
David Tolnay
e3a481508a
Store finer grained tokens of Signature
...
This is required in order for function pointers like `fn(&CxxString)` to
work, which requires the cxx bridge to emit `fn(&::cxx::CxxString)`
rather than a straight copy of the input tokens.
2020-04-08 20:01:16 -07:00
David Tolnay
d4402cae9b
Release 0.2.1
2020-03-30 19:47:58 -07:00
David Tolnay
75dca2e846
Passing function pointer from Rust to C++
2020-03-29 21:50:25 -07:00
David Tolnay
3c19e53ad1
Enable Namespace to be used in format_ident
2020-03-29 20:32:14 -07:00
Myron Ahn
8484930071
Result now works for UniquePtr and other types
2020-03-25 22:39:00 +07:00
David Tolnay
ebef4a23a2
Implement fallible C++ functions
2020-03-17 17:34:52 -07:00
David Tolnay
13af5ccb76
Select a single docs.rs build target
2020-03-17 13:29:06 -07:00
David Tolnay
cecada6d38
Fix fallible void return
2020-03-17 01:46:07 -07:00
David Tolnay
486b6ec592
Change fallible return type to Result union
2020-03-17 01:20:52 -07:00
David Tolnay
86b1723ed3
Avoid Option in ffi
...
Option seems to work fine on rustc 1.43+ but not 1.42.
2020-03-17 01:11:47 -07:00
David Tolnay
1e548174c3
Implement fallible Rust functions
2020-03-17 00:15:48 -07:00
David Tolnay
30d214cca2
Suppress some more clippy lints
2020-03-16 00:35:30 -07:00
David Tolnay
8c7304998e
Bump inline namespace to match minor version
2020-03-13 01:29:23 -07:00
David Tolnay
f51dc4d0bd
Release 0.2.0
2020-03-12 00:50:40 -07:00
David Tolnay
5e93c89e32
Link license files into subcrate packages
2020-03-07 11:18:11 -08:00
David Tolnay
33169bdd59
Safe to assume more about the Box representation
...
https://doc.rust-lang.org/std/boxed/index.html :
So long as T: Sized, a Box<T> is guaranteed to be represented as a
single pointer and is also ABI-compatible with C pointers (i.e. the C
type T*).
2020-03-06 13:10:58 -08:00
David Tolnay
cc3767f0ed
Format with rustfmt 2019-10-07
2020-03-06 10:42:02 -08:00
David Tolnay
a46a237fe7
Make passing String by value to C++ const
2020-03-06 10:28:15 -08:00
David Tolnay
a52602b8af
Use PartialEq<Atom> for some ident comparisons
2020-03-06 10:24:34 -08:00
David Tolnay
39d575fb04
Separate the two uses of expand_extern_arg
...
These are going to need to diverge shortly. Indirect args can pass from
Rust to C++ as *const T from which C++ will do an unsafe ptr::read, but
need to pass from C++ to Rust as *mut T to leave a zero value in the old
location for when the C++ destructor runs.
2020-03-03 12:47:43 -08:00
David Tolnay
40226ab58a
Implement passing ownership of string to Rust
2020-03-03 00:05:35 -08:00
David Tolnay
9081beb1a0
Remove redundant prefix from mangled Box related symbols
2020-03-01 19:52:09 -08:00
David Tolnay
61b6771334
Release 0.1.2
2020-01-20 18:53:20 -08:00
David Tolnay
199d73509b
Format with rustfmt 2019-10-07
2020-01-20 18:40:16 -08:00
David Tolnay
159a9f535c
Release 0.1.1
2020-01-20 18:13:00 -08:00
David Tolnay
17955e2e8c
Implement special case types in extern Rust argument position
2020-01-20 18:09:41 -08:00
David Tolnay
e43b737f2c
Release 0.1.0
2020-01-08 08:57:24 -08:00
David Tolnay
7db7369797
Safe FFI between Rust and C++
2020-01-08 08:57:24 -08:00