Git Product home page Git Product logo

cef-rs's Introduction

cef-rs

Use CEF in Rust.

Supported Targets

Target Linux macOS Windows
x86_64
ARM64

Usage

Linux

Manual Install

  • Download Linux-64bit build.

  • Copy files to .local:

cp -r Resources ~/.local/share/cef
cp -r Release ~/.local/share/cef
  • Build and run the application with LD_LIBRARY_PATH (or you can also add rpath to your cargo config or build script):
LD_LIBRARY_PATH=~/.local/share/cef cargo r --example demo

Flatpak

  • Install flatpak runtime & sdk:
flatpak install flathub dev.crabnebula.Platform
flatpak install flathub dev.crabnebula.Sdk
  • Setup cargo project for flatpak. See flatpak-builder-tools for more details. Here are files you will need to have at leaset:

    • flatpak-cargo-generator.py
    • flatpak manifest file (ie. app.example.demo.yml)
  • Build the flatpak application and run:

cargo b --example demo
python3 ./flatpak-cargo-generator.py ./Cargo.lock -o cargo-sources.json
touch run.sh
flatpak-builder --user --install --force-clean target app.example.demo.yml
flatpak run app.example.demo

Contributing

Please see CONTRIBUTING.md for details.

Roadmap

Cef-rs is looking for the best approach to use CEF. On Linux, this is achived by using same local share directory or same flatpak runtime. So every application can share the same library. We are looking for the similar methods on macOS and Windows. Welcome to open feature requests if the feature you look for isn't listed below. But please understand that some requests might result into not planned.

Planned

  • Add Linux ARM64 target
  • Add macOS ARM64 target
  • Add Windows x86_64 target

Not Planned

  • Other package formats on Linux.
  • Add all possible ergonomic interfaces (ie. builder types for attributes and settings.)
  • Provide tools to bundle and distribute application.

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.