mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description This PR gets the onnxruntime Rust bindings to a foundation where they can be extended and validated as the onnxruntime progresses. Specifically, the PR does the following. - fixes some of the existing compilation issues due to missing some enums output tensor data types. - introduces a `just vendor` task that will vendor the source code from the onnxruntime to enable a common base directory within the crate directory rather than using a relative parent path. This enables `crate package` to be able to archive the onnxruntime native code, which will enable consumers of the onnxruntime-sys crate to be able to compile on their target. - introduces a GH action to lint the Rust code (rustfmt, clippy), build the library, validate through tests, and validate crate can package correctly. TODOs: - [x] This PR is based on #18200 and will need to be rebased once that PR is merged. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> This is the first step to getting new onnxruntime Rust crates published through this project, which will unblock community Rust projects which would like to take a dependency on onnxruntime Rust. Follow up work to enable publication of onnxruntime Rust crates: - change name of the crates to be published (onnxruntime-rs and onnxruntime-sys are already taken and we'll need new names) - update authors / license to reflect contributions from previous maintainer(s) and new maintainers - introduce a crate publish GH action or ADO pipeline --------- Signed-off-by: David Justice <david@devigned.com>
34 lines
772 B
TOML
34 lines
772 B
TOML
[package]
|
|
authors = ["Nicolas Bigaouette <nbigaouette@elementai.com>"]
|
|
edition = "2018"
|
|
name = "onnxruntime-sys"
|
|
version = "0.0.14"
|
|
links = "onnxruntime"
|
|
description = "Unsafe wrapper around Microsoft's ONNX Runtime"
|
|
documentation = "https://docs.rs/onnxruntime-sys"
|
|
homepage = "https://github.com/microsoft/onnxruntime"
|
|
license = "MIT OR Apache-2.0"
|
|
readme = "../README.md"
|
|
repository = "https://github.com/microsoft/onnxruntime"
|
|
categories = ["science"]
|
|
keywords = ["neuralnetworks", "onnx", "bindings"]
|
|
include = ["src", "example", "vendor", "build.rs"]
|
|
|
|
[dependencies]
|
|
libloading = "0.7"
|
|
|
|
[build-dependencies]
|
|
bindgen = "0.63"
|
|
cmake = "0.1"
|
|
anyhow = "1.0"
|
|
|
|
# Used on unix
|
|
flate2 = "1.0"
|
|
tar = "0.4"
|
|
ureq = "2.1"
|
|
|
|
# Used on Windows
|
|
zip = "0.6"
|
|
|
|
[features]
|
|
default = []
|