Mirror of space-wizards/cef-rs
Find a file
2025-11-09 12:29:21 -08:00
.github Merge pull request #263 from tauri-apps/dependabot/github_actions/actions/download-artifact-6.0.0 2025-10-27 08:30:00 -07:00
cef chore: release v141.6.1+141.0.11 2025-11-09 20:20:03 +00:00
download-cef chore: release 2025-09-23 03:30:46 +00:00
examples Merge branch 'dev' of https://github.com/tauri-apps/cef-rs into dev 2025-10-24 00:01:01 +09:00
export-cef-dir chore(release): update CEF version to 141.0.11 2025-10-26 00:32:18 +00:00
get-latest feat: add --mirror-url cli args 2025-09-22 20:19:36 -07:00
sys chore: update bindings 2025-10-26 00:41:18 +00:00
update-bindings fix: init_methods needs to cast to sub-class pointers 2025-11-09 11:50:48 -08:00
.gitignore chore: add Cargo.lock to .gitignore 2025-03-12 19:56:43 -07:00
Cargo.toml chore: release v141.6.1+141.0.11 2025-11-09 20:20:03 +00:00
CODE_OF_CONDUCT.md Update flatpak manifest 2023-06-01 19:31:53 +08:00
CONTRIBUTING.md Update contributing guide 2023-06-01 19:34:28 +08:00
LICENSE-APACHE Add licenses 2023-06-01 17:02:19 +08:00
LICENSE-MIT Add licenses 2023-06-01 17:02:19 +08:00
README.md Fix path for Windows PowerShell example 2025-10-22 13:26:28 +08:00
release-plz.toml chore: release-plz workflow 2025-07-12 19:54:12 -07:00
renovate.json Add renovate.json 2025-01-10 03:31:50 +00:00
SECURITY.md Create SECURITY.md 2025-01-09 19:35:27 -08:00

cef-rs

Use CEF in Rust.

Supported Targets

Target Linux macOS Windows
x86_64
ARM64

Usage

Install Shared CEF Binaries

This step is optional, but it will make all other builds of the cef crate much faster. If you don't do this, the cef-dll-sys crate build.rs script will download and extract the same files under its OUT_DIR directory. You should repeat this step each time you upgrade to a new version of the cef crate.

Linux or macOS:

cargo run -p export-cef-dir -- --force $HOME/.local/share/cef

Windows (using PowerShell)

cargo run -p export-cef-dir -- --force $env:USERPROFILE/.local/share/cef

Set Environment Variables

Linux

export CEF_PATH="$HOME/.local/share/cef"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$CEF_PATH"

macOS

export CEF_PATH="$HOME/.local/share/cef"
export DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$CEF_PATH:$CEF_PATH/Chromium Embedded Framework.framework/Libraries"

Windows (using PowerShell)

$env:CEF_PATH="$env:USERPROFILE/.local/share/cef"
$env:PATH="$env:PATH;$env:CEF_PATH"

Run the cefsimple Example

Linux

cargo run --bin cefsimple

macOS

cargo run --bin bundle_cefsimple
open target/debug/cefsimple.app

Windows (using PowerShell)

cp ./examples/cefsimple/src/win/cefsimple.exe.manifest ./target/debug/
cargo run --bin cefsimple

Contributing

Please see CONTRIBUTING.md for details.