Use CEF in Rust.
Target | Linux | macOS | Windows |
---|---|---|---|
x86_64 | ✅ | ✅ | ✅ |
ARM64 | ✅ | ✅ | ✅ |
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.
cargo run -p export-cef-dir -- --force $HOME/.local/share/cef
cargo run -p export-cef-dir -- --force $env:USERPROFILE/.local/share/cef
export CEF_PATH=$HOME/.local/share/cef
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.local/share/cef
export CEF_PATH=$HOME/.local/share/cef
export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:$HOME/.local/share/cef
$env:CEF_PATH=$env:USERPROFILE/.local/share/cef
$env:PATH=$env:PATH;$env:USERPROFILE/.local/share/cef
cargo run --example cefsimple
./cef/examples/cefsimple/bundle_script.rs
open target/debug/examples/cefsimple.app
cp ./cef/examples/cefsimple/win/cefsimple.exe.manifest ./target/debug/examples/
cargo run --example cefsimple
Please see CONTRIBUTING.md for details.