zlgcan 0.1.16__tar.gz → 0.1.17__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.
@@ -129,9 +129,9 @@ dependencies = [
129
129
 
130
130
  [[package]]
131
131
  name = "once_cell"
132
- version = "1.21.2"
132
+ version = "1.21.3"
133
133
  source = "registry+https://github.com/rust-lang/crates.io-index"
134
- checksum = "c2806eaa3524762875e21c3dcd057bc4b7bfa01ce4da8d46be1cd43649e1cc6b"
134
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
135
135
 
136
136
  [[package]]
137
137
  name = "portable-atomic"
@@ -150,9 +150,9 @@ dependencies = [
150
150
 
151
151
  [[package]]
152
152
  name = "pyo3"
153
- version = "0.24.0"
153
+ version = "0.24.1"
154
154
  source = "registry+https://github.com/rust-lang/crates.io-index"
155
- checksum = "7f1c6c3591120564d64db2261bec5f910ae454f01def849b9c22835a84695e86"
155
+ checksum = "17da310086b068fbdcefbba30aeb3721d5bb9af8db4987d6735b2183ca567229"
156
156
  dependencies = [
157
157
  "cfg-if",
158
158
  "indoc",
@@ -168,9 +168,9 @@ dependencies = [
168
168
 
169
169
  [[package]]
170
170
  name = "pyo3-build-config"
171
- version = "0.24.0"
171
+ version = "0.24.1"
172
172
  source = "registry+https://github.com/rust-lang/crates.io-index"
173
- checksum = "e9b6c2b34cf71427ea37c7001aefbaeb85886a074795e35f161f5aecc7620a7a"
173
+ checksum = "e27165889bd793000a098bb966adc4300c312497ea25cf7a690a9f0ac5aa5fc1"
174
174
  dependencies = [
175
175
  "once_cell",
176
176
  "target-lexicon",
@@ -178,9 +178,9 @@ dependencies = [
178
178
 
179
179
  [[package]]
180
180
  name = "pyo3-ffi"
181
- version = "0.24.0"
181
+ version = "0.24.1"
182
182
  source = "registry+https://github.com/rust-lang/crates.io-index"
183
- checksum = "5507651906a46432cdda02cd02dd0319f6064f1374c9147c45b978621d2c3a9c"
183
+ checksum = "05280526e1dbf6b420062f3ef228b78c0c54ba94e157f5cb724a609d0f2faabc"
184
184
  dependencies = [
185
185
  "libc",
186
186
  "pyo3-build-config",
@@ -188,9 +188,9 @@ dependencies = [
188
188
 
189
189
  [[package]]
190
190
  name = "pyo3-macros"
191
- version = "0.24.0"
191
+ version = "0.24.1"
192
192
  source = "registry+https://github.com/rust-lang/crates.io-index"
193
- checksum = "b0d394b5b4fd8d97d48336bb0dd2aebabad39f1d294edd6bcd2cccf2eefe6f42"
193
+ checksum = "5c3ce5686aa4d3f63359a5100c62a127c9f15e8398e5fdeb5deef1fed5cd5f44"
194
194
  dependencies = [
195
195
  "proc-macro2",
196
196
  "pyo3-macros-backend",
@@ -200,9 +200,9 @@ dependencies = [
200
200
 
201
201
  [[package]]
202
202
  name = "pyo3-macros-backend"
203
- version = "0.24.0"
203
+ version = "0.24.1"
204
204
  source = "registry+https://github.com/rust-lang/crates.io-index"
205
- checksum = "fd72da09cfa943b1080f621f024d2ef7e2773df7badd51aa30a2be1f8caa7c8e"
205
+ checksum = "f4cf6faa0cbfb0ed08e89beb8103ae9724eb4750e3a78084ba4017cbe94f3855"
206
206
  dependencies = [
207
207
  "heck",
208
208
  "proc-macro2",
@@ -222,9 +222,9 @@ dependencies = [
222
222
 
223
223
  [[package]]
224
224
  name = "rs-can"
225
- version = "0.2.0-alpha4"
225
+ version = "0.2.0"
226
226
  source = "registry+https://github.com/rust-lang/crates.io-index"
227
- checksum = "4c9de5671167e683a9291bbd9ac845a4c7a5927995d652ef3a08fc97e9ee9ebd"
227
+ checksum = "4416620ec3f2141f73b5d0936481c9caf3aa27ba140e2a97f178b80b7f110f68"
228
228
  dependencies = [
229
229
  "bitflags",
230
230
  "derive-getters",
@@ -351,9 +351,9 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
351
351
 
352
352
  [[package]]
353
353
  name = "zlgcan"
354
- version = "0.2.0-alpha4"
354
+ version = "0.2.0"
355
355
  source = "registry+https://github.com/rust-lang/crates.io-index"
356
- checksum = "8437f061e968eda7a624612108df9cb3c72f6ce16820216962f4fdf8ed27acc5"
356
+ checksum = "ad37441e238647c26ae9521b03bfb3abf3dbd37c74ac4f47219a624781b71f7a"
357
357
  dependencies = [
358
358
  "dlopen2",
359
359
  "dotenvy",
@@ -365,7 +365,7 @@ dependencies = [
365
365
 
366
366
  [[package]]
367
367
  name = "zlgcan-driver"
368
- version = "0.1.16"
368
+ version = "0.1.17"
369
369
  dependencies = [
370
370
  "anyhow",
371
371
  "pyo3",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "zlgcan-driver"
3
- version = "0.1.16"
3
+ version = "0.1.17"
4
4
  edition = "2021"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -13,8 +13,8 @@ pyo3 = "0.24"
13
13
  #iso15765-2 = { version = "0.1.0-alpha0" }
14
14
  #iso14229-1 = { version = "0.1.0-alpha0" }
15
15
  #docan = { version = "0.1.0-alpha0" }
16
- rs-can = { version = "0.2.0-alpha4" }
17
- zlgcan = { version = "0.2.0-alpha4" }
16
+ rs-can = { version = "0.2.0" }
17
+ zlgcan = { version = "0.2.0" }
18
18
 
19
19
  [dev-dependencies]
20
20
  anyhow = "1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zlgcan
3
- Version: 0.1.16
3
+ Version: 0.1.17
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -14,6 +14,9 @@ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
14
  Project-URL: homepage, https://github.com/zhuyu4839/zlgcan-driver
15
15
  Project-URL: repository, https://github.com/zhuyu4839/zlgcan-driver
16
16
 
17
+ ![PyPI Downloads](https://static.pepy.tech/badge/zlgcan)
18
+ ![PyPI Downloads](https://static.pepy.tech/badge/zlgcan/month)
19
+
17
20
  # ZLGCAN驱动及集成到python-can(因内存模型不同,目前Windows下32位python会报内存非法访问的错误)
18
21
 
19
22
  1. 准备
@@ -1,3 +1,6 @@
1
+ ![PyPI Downloads](https://static.pepy.tech/badge/zlgcan)
2
+ ![PyPI Downloads](https://static.pepy.tech/badge/zlgcan/month)
3
+
1
4
  # ZLGCAN驱动及集成到python-can(因内存模型不同,目前Windows下32位python会报内存非法访问的错误)
2
5
 
3
6
  1. 准备
@@ -2,7 +2,7 @@ pub(crate) mod wrappers;
2
2
 
3
3
  use std::sync::{Arc, Mutex};
4
4
  use pyo3::{exceptions, prelude::*};
5
- use rs_can::{CanError, CanFrame, CanType, ChannelConfig, DeviceBuilder, interfaces::ZLGCAN};
5
+ use rs_can::{CanError, CanFrame, CanType, ChannelConfig, DeviceBuilder};
6
6
  use zlgcan_rs::{
7
7
  can::{CanMessage, ZCanFrameType},
8
8
  device::DeriveInfo,
@@ -29,7 +29,7 @@ fn zlgcan_init_can(
29
29
  cfgs: Vec<ZCanChlCfgPy>,
30
30
  derive_info: Option<ZDeriveInfoPy>,
31
31
  ) -> PyResult<ZCanDriverWrap> {
32
- let mut builder = DeviceBuilder::new(ZLGCAN);
32
+ let mut builder = DeviceBuilder::new();
33
33
  builder.add_other(DEVICE_TYPE, Box::new(dev_type))
34
34
  .add_other(DEVICE_INDEX, Box::new(dev_idx));
35
35
  derive_info.map(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes