2025-01-15 14:30:51 +08:00
2025-01-15 14:30:51 +08:00
2025-01-15 14:30:51 +08:00
2025-01-15 14:30:51 +08:00
2025-01-01 14:33:59 -08:00
2023-06-01 19:31:53 +08:00
2023-10-20 22:19:31 +09:00
2023-06-01 19:31:53 +08:00
2023-06-01 19:34:28 +08:00
2023-06-01 13:40:36 +08:00
2023-06-01 17:02:19 +08:00
2023-06-01 17:02:19 +08:00
2025-01-14 13:38:27 +08:00
2025-01-10 03:31:50 +00:00
2023-06-01 13:40:36 +08:00
2025-01-09 19:35:27 -08:00

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

macOS

  • Download cef prebuilts with update-bindings, it should print out the extracted CEF_PATH on success.
cargo run -p update-bindings --bindgen --download
  • Build and run the cefsimple application
export CEF_PATH=<path>

./cef/examples/cefsimple/bundle_script.rs

open target/debug/examples/cefsimple.app

Contributing

Please see CONTRIBUTING.md for details.

S
Description
No description provided
Readme
39 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 98.1%
C 1%
Nix 0.9%