Commit Graph

15 Commits

Author SHA1 Message Date
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