5 releases

0.9.4 Nov 1, 2023
0.9.3 Aug 29, 2023
0.9.2 Aug 29, 2023
0.9.1 Aug 14, 2023
0.9.0 Aug 10, 2023

#1166 in Procedural macros

27 downloads per month
Used in native_api_1c

MIT license

52KB
1K SLoC

This is a fork of medigor/example-native-api-rs that is made to be a core crate for 1C:Enterprise 8 Native API development. As of this moment, crate is tested on Linux and Windows. It should work on MacOS as well, but it is not tested.

It implements FFI for Native API components and provides a set of types and AddInWrapper trait that can be used to implement 1C:Enterprise 8 Native API components in Rust. While it can be used as a standalone crate, it is intended to be used as a dependency for native_api_1c crate.

For FFI implementation, see original repository or this issue discussion

Aside from some features (especially on Connection interface) not yet implemented, this crate should cover most important of the Native API functionality.


lib.rs:

Crate for working with 1C:Enterprise Native API. It contains low level FFI, moved from original C++ implementation, and high level interface for working with Native API from RUST. It attempts to be as close to original C++ implementation as possible, but some changes are made to make it more idiomatic in RUST.

While it is possible to use this crate to implement your Native API Component, it is intended to be used with native_api_1c crate.

Dependencies

~1.3–2MB
~36K SLoC