RadServer/— version-agnostic host launcher (rad-server). Readsversions/version.toml, validates the selected package underversions/<version>/, verifies the native library's SHA-256, OS/arch, and C ABI (RAD_VERSION_ABI_VERSION), and delegates execution viarad_version_run_server.RadCore/— shared wire protocol framing, NBT, crypto/Velocity forwarding,mc777_datatables, and the genericLoadedVersionPackage/ C ABI contract (RadVersionInfo,RadServerStartOptions,VersionManifest).RadVersions/common/— shared version contracts (rad-versioncrate):VersionDescriptor,MC_26_3,WorldMechanicsProfile,check_world_compatibility,backup_world_dir, and sharedshapes/physicscore.RadAPI/— WASM plugin ABI (v1).RadVersions/v26_3/— isolated implementation of Minecraft Java 26.3 (protocol 777) (rad-version-26-3/rad_version_26_3cdylib+rlib), owning 26.3-specific world generation, gameplay handlers,Playsession loop, andverify_mc777_tables().RadProxy/,RadLimbo/— proxy and limbo server crates.
RadServer/
├── rad-server[.exe]
├── rad.properties
├── versions/
│ ├── version.toml # User selection: version = "26.3"
│ └── 26.3/
│ ├── version.json # Signed/hashed manifest (schema, protocol, DataVersion, ABI, files)
│ ├── rad_version_26_3.dll # (Linux: librad_version_26_3.so, macOS: librad_version_26_3.dylib)
│ └── data/
│ ├── items.json
│ ├── blocks.json
│ ├── entities.json
│ └── menus.json
└── world/ # User data; keep backups before changes
RadServerresolvesversions/relative to--config/--versions-dir/ executable directory.RadServer/src/version_selection.rsreadsversions/version.toml(creating a defaultversion = "26.3"only ifversions/already exists andversion.tomldoes not; rejecting symlinks, unknown fields, and unsafe/non-numeric version strings).LoadedVersionPackage::load_from_versions_dirchecks against path traversal and symlinks, verifiesmanifest.game_version == selected_version, and verifiessize_bytes+sha256for all required datasets (items,blocks,entities,menus).verify_and_resolve_library_pathverifiesabi_version == RAD_VERSION_ABI_VERSION,target_os,target_arch, library filename extension,size_bytes, andsha256without following symlinks or escaping the package directory.RadServerloads the native library and checks C ABI symbols:rad_version_abi_version() == RAD_VERSION_ABI_VERSIONrad_version_info(&mut info)matchesstruct_size,abi_version,game_version,protocol_version,world_data_version,target_os, andtarget_archfromversion.json.
rad_version_run_server(&opts)starts the version module.
- Create
RadVersions/v<major>_<minor>/as a newcdylib+rlibcrate depending on../../RadCore,../common, and../../RadAPI, and register it in rootCargo.toml. - Export
rad_version_abi_version,rad_version_info, andrad_version_run_servermatchingRadCore::version_packageC ABI v1. - Add verified versioned registry data and use the Rust
rad-tools package-versioncommand for the currently supported 26.3 package. Supporting another version requires extending the Rust packager and validating that version's protocol and data first. - Do not copy
RadVersions/v26_3/under another version number without implementing and verifying that version's protocol and data.
rad_version::check_world_compatibilitychecksradbyte_world_profile.json(profile_id,game_version,protocol_version,world_data_version,storage_schema_version) andlevel.dat(DataVersion) without mutating the world directory.- Unmarked non-empty worlds without matching
DataVersionreturnUnmarkedInsufficientDataorIncompatibleand refuse to auto-stamp. backup_world_dirrejects same-path, nested-in-source, source-in-destination, symlinks, and non-empty destinations.- Cross-version world upgrades/downgrades are refused unless an explicit, backed-up migration is implemented and verified.
Run the full verification gate:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
cargo doc --workspace --no-deps
cargo build --workspace --release --locked places executables and the native library under target/release/. It does not assemble a runtime directory or include the separately supplied version data. The Rust rad-tools package-version command creates a new versions/26.3/ package and refuses to overwrite an existing package. Keep worlds and configuration in a separate working directory and make backups before replacing files.