zlgcan 0.2.1b0__tar.gz → 0.2.1b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/Cargo.lock +3 -3
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/Cargo.toml +1 -1
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/PKG-INFO +1 -1
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/src/lib.rs +2 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/.editorconfig +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/.github/workflows/CI.yml +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/.github/workflows/label-check.yml +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/.gitignore +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/CHANGELOG.md +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/LICENSE.txt +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/README.md +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/pyproject.toml +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/requirements.txt +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/src/wrappers/constants.rs +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/src/wrappers/mod.rs +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/zlgcan/__init__.py +0 -0
- {zlgcan-0.2.1b0 → zlgcan-0.2.1b1}/zlgcan/zlgcan.py +0 -0
@@ -74,9 +74,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
74
74
|
|
75
75
|
[[package]]
|
76
76
|
name = "indexmap"
|
77
|
-
version = "2.
|
77
|
+
version = "2.10.0"
|
78
78
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
79
|
-
checksum = "
|
79
|
+
checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661"
|
80
80
|
dependencies = [
|
81
81
|
"equivalent",
|
82
82
|
"hashbrown",
|
@@ -357,7 +357,7 @@ dependencies = [
|
|
357
357
|
|
358
358
|
[[package]]
|
359
359
|
name = "zlgcan-driver"
|
360
|
-
version = "0.2.1-
|
360
|
+
version = "0.2.1-beta1"
|
361
361
|
dependencies = [
|
362
362
|
"anyhow",
|
363
363
|
"pyo3",
|
@@ -25,6 +25,8 @@ fn zlgcan_init_can(
|
|
25
25
|
cfgs: Vec<ZCanChlCfgPy>,
|
26
26
|
derive_info: Option<ZDeriveInfoPy>,
|
27
27
|
) -> PyResult<ZCanDriverWrap> {
|
28
|
+
let dev_type = ZCanDeviceType::try_from(dev_type)
|
29
|
+
.map_err(|e| exceptions::PyValueError::new_err(e.to_string()))?;
|
28
30
|
let mut builder = DeviceBuilder::new();
|
29
31
|
builder
|
30
32
|
.add_other(LIBPATH, Box::new(libpath))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|