Commit Graph

27 Commits

Author SHA1 Message Date
David Tolnay
5d08baa8ae
Link to release notes from readme 2020-04-27 18:12:08 -07:00
David Tolnay
a8df0943f5
Document pass-by-value restriction of CxxVector 2020-04-25 19:08:40 -07:00
David Tolnay
347c3d01f4
Add Vec and std::vector to builtin types list 2020-04-25 18:02:12 -07:00
David Tolnay
3deb2f9d2a
Remove checkboxes from readme in favor of filed issues 2020-04-22 19:16:38 -07:00
David Tolnay
b6a5f67b19
Remove methods from intro example code
I'd like to keep this first code snippet as focused as possible on the
most important concepts. We'll need to figure out somewhere else to put
exhaustive documentation of the full feature set.
2020-04-17 16:44:03 -07:00
Joel Galenson
f937996fc7 Update documentation 2020-04-16 16:25:04 -07:00
David Tolnay
efe81052e7
Touch up &[u8] PR 2020-04-14 16:42:06 -07:00
Adrian Taylor
f5dd552036 Adding &[u8] support.
This change adds specifically, support for &[u8] with a corresponding
rust::Slice<uint8_t> type. No other types of slice are permitted. The
rationale is that it may be common to pass binary data back and forth
across the FFI boundary, so it's more urgent to get this in place sooner.
Broader support for other slices can wait for the future.

But, both C++ and Rust-side bindings should allow the existing support
to be broadened to other Slice types in future without code changes.

A few specific notes:

* The name "rust::Slice" might be better as "rust::SliceRef" but I'm
  following the precedent of "rust::Str".
* It would be good to add constructors from std::span but as that's
  a C++20 feature, that may have to wait until C++ feature detection
  is resolved.
* Internally, this follows the pattern of &str, where the parser will
  initially recognize this as Type::Ref (of Type::Slice) but then
  will replace that with Type::SliceRefU8. Type::Slice should not
  persist through later stages. As we later come to support other
  types of slice, we would probably want to remove Type::SliceRefU8.
2020-04-14 14:13:48 -07:00
David Tolnay
31b5aad39b
Use more obvious words as the "name in C++" of Result 2020-04-10 19:35:47 -07:00
David Tolnay
e0bad9300c
Remove finished item from todo list 2020-04-02 14:16:29 -07:00
David Tolnay
addc748bbc
Add function pointers to builtin types table 2020-03-29 22:19:48 -07:00
David Tolnay
559fbb3918
Give up and use ascii arrows
None of the unicode ones look consistently good across different systems.
2020-03-17 23:32:22 -07:00
David Tolnay
06515f0ed2
Replace arrows with html entity 2020-03-17 23:28:02 -07:00
David Tolnay
cf2de24613
Add Result to builtin types table
Closes #53.
2020-03-17 23:20:57 -07:00
David Tolnay
b606ce367e
Add CI on stable 1.42 2020-03-16 01:17:58 -07:00
David Tolnay
239d05fac6
Add Arc and shared_ptr to tbd table
Closes #18.
2020-03-13 01:36:52 -07:00
David Tolnay
218e237cac
Remove blank builtin types table row 2020-03-13 01:34:05 -07:00
David Tolnay
f51dc4d0bd
Release 0.2.0 2020-03-12 00:50:40 -07:00
David Tolnay
736cbcad40
Move header include path to rust/cxx.h 2020-03-11 16:51:38 -07:00
David Tolnay
750755e557
Rename namespace to rust::inline cxxbridge01 2020-03-01 13:47:29 -08:00
David Tolnay
324437a263
Rename C++ RustBox to Box 2020-03-01 13:47:29 -08:00
David Tolnay
09dbe75a5d
Rename C++ RustStr to Str 2020-03-01 13:47:28 -08:00
David Tolnay
5608216979
Rename C++ RustString to String 2020-03-01 13:47:28 -08:00
David Tolnay
84f232ed0b
Fill in blank table cells with placeholder 2020-01-08 12:22:56 -08:00
David Tolnay
ccd3975f40
Add a brief safety explanation up top 2020-01-08 09:35:04 -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