A systems level crate for the Chromium Embedded Framework. It exposes the C API only, since bindgen cannot handle the C++ API.
This is not meant to be used by applications due to its unsafe nature, a separate abstraction library should wrap this crate first.
Pre-built CEF binaries can be acquired from here: http://opensource.spotify.com/cefbuilds/index.html.
Some platform specific setup is required for the downstream users:
Valid CEF release binaries must be present in your system's library search path. On Windows, there are a couple places you can put the binaries to accomplish this:
- Your working directory
- A folder in the
LIB
path.
The second option should be easiest to manage, since it doesn't involve cluttering up the source tree with binary files. Extract the files in the Release
folder of the CEF distribution to whichever folder you choose.
The CEF distribution comes with a icudtl.dat
file. Extract that file to whichever folder holds the CEF libraries.
CEF release binaries must be present in the library search path and resources must be present where the application can find them. The simplest way to achieve this is:
-
Copy
Chromium Embedded Framework.framework
to/Library/Frameworks
so that it can be found by rustc in compile time and the dynamic linker in runtime -
Copy the
libEGL.dylib
andlibGLESv2.dylib
inChromium Embedded Framework.framework/Libraries
to/usr/lib
or/usr/local/lib
so that they can be found by the dynamic linker in runtime -
Copy the
Chromium Embedded Framework.framework/Resources
directory to a directory specified incef_settings_t.resources_dir_path
This project is licensed under the BSD license, see LICENSE.txt. This is the same as the Chromium Embedded Framework itself.