How shm11c3/adl-rs works
Project type and purpose
• This is a multi-crate Rust library (“adl-rs”) exposing bindings for the AMD Display Library (ADL) SDK.
• It consists of:
• a low-level FFI crate (adl-sys) that wraps the C headers,
• a high-level ergonomic crate (adl) built on top of adl-sys,
• and an example binary (adl-example) that demonstrates usage.
File structure
• Top-level crates in the workspace:
• adl-sys/ – raw bindings, build.rs, include/*.h.
• adl/ – safe wrapper, divided into adapter/, context/, overdrive/, performance/.
• adl-example/ – binary demonstrating the API.
• Root Cargo.toml and Cargo.lock define the workspace.
• CI workflows (.github/workflows) run build and lint checks.
• .vscode, rustfmt.toml handle local configuration.
README for additional insights
• Confirms that adl-sys is the FFI layer and adl is the ergonomic layer.
• Shows build and run commands.
Elements
• adl-example
• adl (with sub-modules)
• adl-sys
• ADL SDK (native)
• function calls (example → adl → adl-sys → SDK)
• build/link steps (build.rs → SDK)