Skip to content

Commit 2bfe91d

Browse files
authored
Update to new rust library (#161)
1 parent 0b46eee commit 2bfe91d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
run: poetry install
9191

9292
- name: Download binary
93-
run: curl -sL -o src/viam/rpc/libviam.${{ matrix.ext }} https://github.com/viamrobotics/viam-rust-sdk/releases/latest/download/libviam-${{ matrix.arch }}.${{ matrix.ext }}
93+
run: curl -sL -o src/viam/rpc/libviam_rust_utils.${{ matrix.ext }} https://github.com/viamrobotics/rust-utils/releases/latest/download/libviam_rust_utils-${{ matrix.arch }}.${{ matrix.ext }}
9494

9595
- name: Build
9696
run: poetry build -f wheel

etc/postinstall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
rm -rf src/viam/rpc/libviam.* || true
1+
rm -rf src/viam/rpc/libviam_rust_utils.* || true
22
if [ "$(uname)" == "Linux" ]; then
3-
curl -sL -o src/viam/rpc/libviam.so https://github.com/viamrobotics/viam-rust-sdk/releases/latest/download/libviam-linux_$(uname -m).so
3+
curl -sL -o src/viam/rpc/libviam_rust_utils.so https://github.com/viamrobotics/rust-utils/releases/latest/download/libviam_rust_utils-linux_$(uname -m).so
44
elif [ "$(uname)" == "Darwin" ]; then
5-
curl -sL -o src/viam/rpc/libviam.dylib https://github.com/viamrobotics/viam-rust-sdk/releases/latest/download/libviam-macosx_$(uname -m).dylib
5+
curl -sL -o src/viam/rpc/libviam_rust_utils.dylib https://github.com/viamrobotics/rust-utils/releases/latest/download/libviam_rust_utils-macosx_$(uname -m).dylib
66
fi

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88
packages = [
99
{ include = "viam", from = "src" },
1010
]
11-
include = ["LICENSE", "src/viam/rpc/libviam.*"]
11+
include = ["LICENSE", "src/viam/rpc/libviam_rust_utils.*"]
1212

1313
[tool.poetry.dependencies]
1414
python = ">=3.9,<3.11"

src/viam/rpc/dial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def __new__(cls):
165165
if not hasattr(cls, "_shared"):
166166
cls._shared = super(_Runtime, cls).__new__(cls)
167167

168-
libname = pathlib.Path(__file__).parent.absolute() / f"libviam.{'dylib' if sys.platform == 'darwin' else 'so'}"
168+
libname = pathlib.Path(__file__).parent.absolute() / f"libviam_rust_utils.{'dylib' if sys.platform == 'darwin' else 'so'}"
169169
cls._shared._lib = ctypes.CDLL(libname.__str__())
170170
cls._shared._lib.init_rust_runtime.argtypes = ()
171171
cls._shared._lib.init_rust_runtime.restype = ctypes.c_void_p

0 commit comments

Comments
 (0)