mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
f16ef7dafd
Summary: Introduce `edenapithin` crate, which offers C bindings to EdenAPI Client. There are two top-level `owned` types, `EdenApiClient` and `TreeEntryFetch`, which represent `Box`ed results from calls to EdenAPI's blocking client. The C / C++ code is responsible for calling the associated `free` functions for these types, as well as `OwnedString`, which is used to represent error variants of a `Result` as a string. Most functionality is provided through functions which operate on and return references into these top-level owned types, providing access into Rust `Result`s and `Vec`s (manually-monomorphized), and EdenApi's `TreeEntry` and `TreeChildEntry`. Additional non-pointer types are defined in the `types` module, which do not require manual memory management. C++ bindings are not included currently, but will be introduced soon. Reviewed By: fanzeyi Differential Revision: D24866065 fbshipit-source-id: bb15127b84cdbc6487b2d0e1798f37ef62e5b32d |
||
---|---|---|
.. | ||
cbindgen.sh |