Code Monkey home page Code Monkey logo

ei-sys's Introduction

ei-sys

This library contains low level bindings for ei, a library to handle the Erlang external term format and to communicate with distributed Erlang nodes.

Compiling This Crate

The library with which this crate links is not usually included in the default link path. There are two ways to configure this crate.

  • If you have a full Erlang installation, the build script will invoke the Erlang shell to find where it installed its libraries. This is the recommended way to configure this crate.
  • You can set the EI_LINK_SEARCH environment variable to the directory that contains libei.

Windows

The official Erlang binaries are compiled with MSVC 11 (Visual Studio 2012), which is not ABI compatible with binaries built with more recent MSVC versions, including those that are compatible with Rust. You will need to build you own Erlang. You can follow the official instructions, but change the PATH, LIBPATH, LIB, and INCLUDE environment for those of the version of MSVC you are using with Rust.

For example, for a x86_64 build with Visual Studio 2017, open the x64 Native Tool Command Promp for VS 2017, and then you can see the values of the variables listed above by typing

echo %PATH%
echo %LIBPATH%
echo %LIB%
echo %INCLUDE%

Note also that Erlang does not build with mingw. Thus you cannot use this crate with a {i686|x86_64}-pc-windows-gnu version of Rust, i.e. you need to use {i686|x86_64}-pc-windows-msvc.

Documentation

The official Erlang documentation on ei and ei_connect contains information on how to use this library, as well as a complete listing of the types and functions. The documentation for this crate has additional information that can be of interest to those building on top of this crate, such as the precondition to respect safely whan calling into this crate.

ei-sys's People

Contributors

in-the-mood-for-mov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.