From 8d1678e28e409e15da526ab2bb383bc45bfcab26 Mon Sep 17 00:00:00 2001 From: kngwyu Date: Thu, 2 Apr 2020 22:16:58 +0900 Subject: [PATCH] Separate examples and tooling section in README and the guide --- README.md | 12 ++++++++---- guide/src/get_started.md | 20 +++++++++++++------- tests/test_arithmetics.rs | 0 3 files changed, 21 insertions(+), 11 deletions(-) mode change 100755 => 100644 tests/test_arithmetics.rs diff --git a/README.md b/README.md index 9e74aa3b..ccb53da9 100644 --- a/README.md +++ b/README.md @@ -128,13 +128,18 @@ fn main_(py: Python) -> PyResult<()> { Our guide has [a section](https://pyo3.rs/master/python_from_rust.html) with lots of examples about this topic. -## Examples and tooling +## Tools and libraries + * [maturin](https://github.com/PyO3/maturin) _Zero configuration build tool for Rust-made Python extensions_. + * [setuptools-rust](https://github.com/PyO3/setuptools-rust) _Setuptools plugin for Rust support_. + * [pyo3-built](https://github.com/PyO3/pyo3-built) _Simple macro to expose metadata obtained with the [`built`](https://crates.io/crates/built) crate as a [`PyDict`](https://pyo3.github.io/pyo3/pyo3/struct.PyDict.html)_ + * [rust-numpy](https://github.com/PyO3/rust-numpy) _Rust binding of NumPy C-API_ + * [dict-derive](https://github.com/gperinazzo/dict-derive) _Derive FromPyObject to automatically transform Python dicts into Rust structs_ + +## Examples * [examples/word-count](examples/word-count) _Counting the occurrences of a word in a text file_ * [hyperjson](https://github.com/mre/hyperjson) _A hyper-fast Python module for reading/writing JSON data using Rust's serde-json_ - * [rust-numpy](https://github.com/PyO3/rust-numpy) _Rust binding of NumPy C-API_ * [html-py-ever](https://github.com/PyO3/setuptools-rust/tree/master/html-py-ever) _Using [html5ever](https://github.com/servo/html5ever) through [kuchiki](https://github.com/kuchiki-rs/kuchiki) to speed up html parsing and css-selecting._ - * [pyo3-built](https://github.com/PyO3/pyo3-built) _Simple macro to expose metadata obtained with the [`built`](https://crates.io/crates/built) crate as a [`PyDict`](https://pyo3.github.io/pyo3/pyo3/struct.PyDict.html)_ * [point-process](https://github.com/ManifoldFR/point-process-rust/tree/master/pylib) _High level API for pointprocesses as a Python library_ * [autopy](https://github.com/autopilot-rs/autopy) _A simple, cross-platform GUI automation library for Python and Rust._ * Contains an example of building wheels on TravisCI and appveyor using [cibuildwheel](https://github.com/joerick/cibuildwheel) @@ -144,7 +149,6 @@ about this topic. * Contains an example of building wheels on Azure Pipelines * [fastuuid](https://github.com/thedrow/fastuuid/) _Python bindings to Rust's UUID library_ * [python-ext-wasm](https://github.com/wasmerio/python-ext-wasm) _Python library to run WebAssembly binaries_ - * [dict-derive](https://github.com/gperinazzo/dict-derive) _Derive FromPyObject to automatically transform Python dicts into Rust structs_ * [mocpy](https://github.com/cds-astro/mocpy) _Astronomical Python library offering data structures for describing any arbitrary coverage regions on the unit sphere_ * [tokenizers](https://github.com/huggingface/tokenizers/tree/master/bindings/python) _Python bindings to the Hugging Face tokenizers (NLP) written in Rust_ diff --git a/guide/src/get_started.md b/guide/src/get_started.md index fa182122..bdfff8ca 100644 --- a/guide/src/get_started.md +++ b/guide/src/get_started.md @@ -123,13 +123,18 @@ fn main_(py: Python) -> PyResult<()> { Our guide has [a section](https://pyo3.rs/master/python_from_rust.html) with lots of examples about this topic. -## Examples and tooling - - * [examples/word-count](https://github.com/PyO3/pyo3/tree/master/examples/word-count) _Counting the occurrences of a word in a text file_ - * [hyperjson](https://github.com/mre/hyperjson) _A hyper-fast Python module for reading/writing JSON data using Rust's serde-json_ - * [rust-numpy](https://github.com/PyO3/rust-numpy) _Rust binding of NumPy C-API_ - * [html-py-ever](https://github.com/PyO3/setuptools-rust/tree/master/html-py-ever) _Using [html5ever](https://github.com/servo/html5ever) through [kuchiki](https://github.com/kuchiki-rs/kuchiki) to speed up html parsing and css-selecting._ +## Tools and libraries + * [maturin](https://github.com/PyO3/maturin) _Zero configuration build tool for Rust-made Python extensions_. + * [setuptools-rust](https://github.com/PyO3/setuptools-rust) _Setuptools plugin for Rust support_. * [pyo3-built](https://github.com/PyO3/pyo3-built) _Simple macro to expose metadata obtained with the [`built`](https://crates.io/crates/built) crate as a [`PyDict`](https://pyo3.github.io/pyo3/pyo3/struct.PyDict.html)_ + * [rust-numpy](https://github.com/PyO3/rust-numpy) _Rust binding of NumPy C-API_ + * [dict-derive](https://github.com/gperinazzo/dict-derive) _Derive FromPyObject to automatically transform Python dicts into Rust structs_ + +## Examples + + * [examples/word-count](examples/word-count) _Counting the occurrences of a word in a text file_ + * [hyperjson](https://github.com/mre/hyperjson) _A hyper-fast Python module for reading/writing JSON data using Rust's serde-json_ + * [html-py-ever](https://github.com/PyO3/setuptools-rust/tree/master/html-py-ever) _Using [html5ever](https://github.com/servo/html5ever) through [kuchiki](https://github.com/kuchiki-rs/kuchiki) to speed up html parsing and css-selecting._ * [point-process](https://github.com/ManifoldFR/point-process-rust/tree/master/pylib) _High level API for pointprocesses as a Python library_ * [autopy](https://github.com/autopilot-rs/autopy) _A simple, cross-platform GUI automation library for Python and Rust._ * Contains an example of building wheels on TravisCI and appveyor using [cibuildwheel](https://github.com/joerick/cibuildwheel) @@ -139,4 +144,5 @@ about this topic. * Contains an example of building wheels on Azure Pipelines * [fastuuid](https://github.com/thedrow/fastuuid/) _Python bindings to Rust's UUID library_ * [python-ext-wasm](https://github.com/wasmerio/python-ext-wasm) _Python library to run WebAssembly binaries_ - * [dict-derive](https://github.com/gperinazzo/dict-derive) _Derive FromPyObject to automatically transform Python dicts into Rust structs_ + * [mocpy](https://github.com/cds-astro/mocpy) _Astronomical Python library offering data structures for describing any arbitrary coverage regions on the unit sphere_ + * [tokenizers](https://github.com/huggingface/tokenizers/tree/master/bindings/python) _Python bindings to the Hugging Face tokenizers (NLP) written in Rust_ diff --git a/tests/test_arithmetics.rs b/tests/test_arithmetics.rs old mode 100755 new mode 100644