Skip to content

Commit

Permalink
Add new targets for Rust bindings
Browse files Browse the repository at this point in the history
- `aarch64-unknown-linux-gnu`
- `aarch64-apple-ios`
  • Loading branch information
romainthomas committed May 10, 2024
1 parent 235be8e commit 0b73a52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/rust/cargo/lief-build/src/lib.rs
Expand Up @@ -14,7 +14,9 @@ const GIT_VERSION: &str = git_version!(
const GH_URL: &str = "https://github.com/lief-project/LIEF/releases/download";
const DEFAULT_S3_URL: &str = "https://lief-rs.s3.fr-par.scw.cloud";

const SUPPORTED_TARGETS: &[&str; 4] = &[
const SUPPORTED_TARGETS: &[&str; 6] = &[
"aarch64-apple-ios",
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
Expand Down
4 changes: 4 additions & 0 deletions doc/sphinx/api/rust/index.rst
Expand Up @@ -72,10 +72,14 @@ As of now, the following targets are supported with pre-compilation:
+================================+========================================================+
| ``x86_64-unknown-linux-gnu`` | Regular Linux x86-64 (Ubuntu 20.04, Debian 11.5, ...) |
+--------------------------------+--------------------------------------------------------+
| ``aarch64-unknown-linux-gnu`` | Linux aarch64 (Debian 12+) |
+--------------------------------+--------------------------------------------------------+
| ``x86_64-apple-darwin`` | macOS 11+ x86-64 |
+--------------------------------+--------------------------------------------------------+
| ``aarch64-apple-darwin`` | macOS 11+ arm64 (Apple Silicon) |
+--------------------------------+--------------------------------------------------------+
| ``aarch64-apple-ios`` | iOS 12+ |
+--------------------------------+--------------------------------------------------------+
| ``x86_64-pc-windows-msvc[MT]`` | Regular Windows x86-64 (static UCRT runtime) |
+--------------------------------+--------------------------------------------------------+
| ``x86_64-pc-windows-msvc[MD]`` | Regular Windows x86-64 (dynamic UCRT runtime ``.dll``) |
Expand Down

0 comments on commit 0b73a52

Please sign in to comment.