diff --git a/Cargo.toml b/Cargo.toml index 0bfe9544..80e34957 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,13 @@ categories = ["science"] license = "MIT OR Apache-2.0" readme = "README.md" +[package.metadata.docs.rs] +targets = [ + "aarch64-apple-darwin", + "aarch64-apple-ios", + "aarch64-apple-ios-sim", +] + [dependencies] mlx-sys = { version = "0.0.8", path = "mlx-sys" } mlx-macros = { version = "0.1.0", path = "mlx-macros" } diff --git a/mlx-sys/Cargo.toml b/mlx-sys/Cargo.toml index 80b94f95..bd51fc94 100644 --- a/mlx-sys/Cargo.toml +++ b/mlx-sys/Cargo.toml @@ -11,6 +11,13 @@ categories = ["science"] license = "MIT OR Apache-2.0" readme = "README.md" +[package.metadata.docs.rs] +targets = [ + "aarch64-apple-darwin", + "aarch64-apple-ios", + "aarch64-apple-ios-sim", +] + [features] default = ["accelerate", "metal"]