diff --git a/Cargo.toml b/Cargo.toml index d30f71d..8c1d5b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,12 +12,13 @@ default-members = [ [package] name = "ort" -description = "A Rust wrapper for ONNX Runtime 1.15 - Optimize and Accelerate Machine Learning Inferencing" -version = "2.0.0" +description = "A safe Rust wrapper for ONNX Runtime 1.16 - Optimize and Accelerate Machine Learning Inferencing" +version = "2.0.0-alpha.0" edition = "2021" rust-version = "1.70" license = "MIT OR Apache-2.0" repository = "https://github.com/pykeio/ort" +documentation = "https://ort.pyke.io/" readme = "README.md" keywords = [ "machine-learning", "ai", "ml" ] categories = [ "algorithms", "mathematics", "science", "science" ] @@ -25,7 +26,7 @@ authors = [ "pyke.io ", "Nicolas Bigaouette " ] -include = [ "src/", "examples/", "tests/", "toolchains/", "LICENSE", "README.md" ] +include = [ "src/", "examples/", "tests/", "LICENSE-APACHE", "LICENSE-MIT", "README.md" ] [profile.release] opt-level = 3 @@ -68,7 +69,7 @@ qnn = [] [dependencies] ndarray = "0.15" thiserror = "1.0" -ort-sys = { path = "ort-sys" } +ort-sys = { version = "2.0.0-alpha.0", path = "ort-sys" } libloading = { version = "0.8", optional = true } smallvec = "1.11" diff --git a/LICENSE b/LICENSE-APACHE similarity index 100% rename from LICENSE rename to LICENSE-APACHE diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..1aedea6 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023 pyke.io + 2020 Nicolas Bigaouette + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index c81318d..b8f34c5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## 📖 Documentation - [Guide](https://ort.pyke.io/) -- [API reference](https://crates.io/crates/ort) +- [API reference](https://docs.rs/ort) - [Examples](https://github.com/pykeio/ort/tree/main/examples) - [Migrating from v1.x to v2.0](https://ort.pyke.io/migrating/v2) diff --git a/examples/gpt2/Cargo.toml b/examples/gpt2/Cargo.toml index afcaa31..842a320 100644 --- a/examples/gpt2/Cargo.toml +++ b/examples/gpt2/Cargo.toml @@ -1,6 +1,6 @@ [package] publish = false -name = "gpt2" +name = "example-gpt2" version = "0.0.0" edition = "2021" diff --git a/examples/yolov8/Cargo.toml b/examples/yolov8/Cargo.toml index 16f1646..2a11639 100644 --- a/examples/yolov8/Cargo.toml +++ b/examples/yolov8/Cargo.toml @@ -1,6 +1,6 @@ [package] publish = false -name = "yolov8" +name = "example-yolov8" version = "0.0.0" edition = "2021" diff --git a/ort-sys/Cargo.toml b/ort-sys/Cargo.toml index db39f8d..303f156 100644 --- a/ort-sys/Cargo.toml +++ b/ort-sys/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "ort-sys" -description = "A Rust wrapper for ONNX Runtime 1.15 - Optimize and Accelerate Machine Learning Inferencing" -version = "0.0.1" +description = "Unsafe Rust bindings for ONNX Runtime 1.16 - Optimize and Accelerate Machine Learning Inferencing" +version = "2.0.0-alpha.0" edition = "2021" rust-version = "1.70" license = "MIT OR Apache-2.0" repository = "https://github.com/pykeio/ort" +documentation = "https://ort.pyke.io/" readme = "README.md" keywords = [ "machine-learning", "ai", "ml" , "sys"] categories = [ "algorithms", "mathematics", "science" ] @@ -13,7 +14,7 @@ authors = [ "pyke.io ", "Nicolas Bigaouette " ] -include = [ "src/", "build.rs", "LICENSE" ] +include = [ "src/", "build.rs", "LICENSE-APACHE", "LICENSE-MIT" ] [features] default = [] diff --git a/ort-sys/LICENSE b/ort-sys/LICENSE-APACHE similarity index 100% rename from ort-sys/LICENSE rename to ort-sys/LICENSE-APACHE diff --git a/ort-sys/LICENSE-MIT b/ort-sys/LICENSE-MIT new file mode 100644 index 0000000..1aedea6 --- /dev/null +++ b/ort-sys/LICENSE-MIT @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023 pyke.io + 2020 Nicolas Bigaouette + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/ort-sys/wrapper.h b/ort-sys/wrapper.h deleted file mode 100644 index 5e71720..0000000 --- a/ort-sys/wrapper.h +++ /dev/null @@ -1 +0,0 @@ -#include