From ac6e892170d966e87801dab97bac7e622dc7ad94 Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Thu, 24 Oct 2024 16:23:03 -0700 Subject: [PATCH] update robstride package --- .github/workflows/publish.yml | 5 +---- actuator/bindings/Cargo.toml | 3 +++ actuator/bindings/pyproject.toml | 1 - actuator/robstride/Cargo.toml | 24 +++++++++++++++--------- 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86fc42d..3455bf2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,9 +43,6 @@ jobs: - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # user: __token__ - # password: ${{ secrets.PYPI_API_TOKEN }} publish-rust: timeout-minutes: 10 @@ -77,7 +74,7 @@ jobs: restore-keys: | ${{ runner.os }}-cargo-index - - name: Publish to crates.io + - name: Publish Robstride package to crates.io env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: | diff --git a/actuator/bindings/Cargo.toml b/actuator/bindings/Cargo.toml index 8288f6d..7b43db2 100644 --- a/actuator/bindings/Cargo.toml +++ b/actuator/bindings/Cargo.toml @@ -1,4 +1,5 @@ [package] + name = "bindings" version.workspace = true edition.workspace = true @@ -9,10 +10,12 @@ license.workspace = true readme.workspace = true [lib] + name = "bindings" crate-type = ["cdylib", "rlib"] [dependencies] + pyo3 = { version = ">= 0.21.0", features = ["extension-module"] } pyo3-stub-gen = ">= 0.6.0" tokio = { version = "1.28.0", features = ["full"] } diff --git a/actuator/bindings/pyproject.toml b/actuator/bindings/pyproject.toml index 949561a..4117fe1 100644 --- a/actuator/bindings/pyproject.toml +++ b/actuator/bindings/pyproject.toml @@ -6,6 +6,5 @@ build-backend = "maturin" name = "bindings" requires-python = ">=3.9" - [project.optional-dependencies] test = ["pytest", "pyright", "ruff"] diff --git a/actuator/robstride/Cargo.toml b/actuator/robstride/Cargo.toml index a6b7ac1..ccd558d 100644 --- a/actuator/robstride/Cargo.toml +++ b/actuator/robstride/Cargo.toml @@ -1,29 +1,35 @@ [package] + name = "robstride" +readme = "README.md" +version = "0.1.1" +description = "Robstride crate" + authors.workspace = true -version.workspace = true edition.workspace = true -description.workspace = true repository.workspace = true license.workspace = true -readme.workspace = "README.md" [lib] + name = "robstride" crate-type = ["cdylib", "rlib"] [dependencies] -serialport = "4.5.1" -ctrlc = "3.4.5" -lazy_static = "1.4.0" -spin_sleep = "1.2.1" -nix = "0.26.2" -log = "0.4.22" + +serialport = "^4.5.1" +ctrlc = "^3.4.5" +lazy_static = "^1.4.0" +spin_sleep = "^1.2.1" +nix = "^0.26.2" +log = "^0.4.22" [[bin]] + name = "motors" path = "src/bin/motors.rs" [dependencies.clap] + version = "4.3" features = ["derive"]