| Crates.io | mtl-rs |
| lib.rs | mtl-rs |
| version | 0.1.0 |
| created_at | 2026-01-23 20:25:20.99016+00 |
| updated_at | 2026-01-23 20:25:20.99016+00 |
| description | Rust bindings for Apple's Metal API |
| homepage | |
| repository | https://github.com/computer-graphics-tools/mtl-rs |
| max_upload_size | |
| id | 2065402 |
| size | 1,178,720 |
Rust bindings for Apple's Metal API, built on the modern objc2 ecosystem.
objc2 for safe and modern Objective-C interopAdd to your Cargo.toml:
[dependencies]
mtl-rs = "0.1.0"
use metal::{create_system_default_device, MTLDevice};
fn main() {
let device = create_system_default_device()
.expect("No Metal device found");
println!("Device: {:?}", device.name());
println!("Unified memory: {}", device.has_unified_memory());
println!("Max threadgroup size: {:?}", device.max_threads_per_threadgroup());
}
MIT