Bethkit can be built without Delphi or a local xEdit checkout. A normal workspace build contains no generated schema package. After Cargo has fetched the Rust dependencies once, that build does not need network access.
-
Install Rust with rustup for 64-bit Windows.
-
Install Visual Studio Build Tools and select Desktop development with C++ plus a Windows SDK.
-
Open a new PowerShell window and run:
rustup toolchain install stable --component rustfmt clippy cargo build --workspace --locked cargo test --workspace --locked cargo clippy --workspace --all-targets --locked -- -D warnings
If Cargo is installed but not visible in the current terminal, reopen the terminal or invoke it once as:
& "$env:USERPROFILE\.cargo\bin\cargo.exe" build --workspace --lockedInstall uv and Python 3.10 or newer. In the bethkit.py repository run:
uv sync --all-groups
uv run maturin develop
uv run ruff check .
uv run pyright
uv run pytestThe Python 2.0 migration uses Pydantic models. uv sync installs Ruff, Pydantic, Pyright, pytest, and the remaining declared dependencies.
xEdit exporter development and schema generation live in Modding-Forge/xDump. The definitions originate in the xEdit project. Bethkit contains neither exporter source nor a build-time xEdit invocation.
To reproduce the Skyrim-enabled release build locally, download and verify the pinned package, export its path, and enable the FFI feature explicitly:
$schema = .\scripts\Get-SkyrimSeSchema.ps1
$env:BETHKIT_SKYRIM_SE_SCHEMA = $schema
cargo build --release -p bethkit-ffi --features schema-skyrim-se,generate-headerThe resulting FFI library embeds only Skyrim Special Edition. BETHKIT_SCHEMA_BUNDLE remains available for explicit local testing with an uncommitted catalog bundle. See SCHEMA.md for provenance and the update procedure.