Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
RoboPLC
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄新宇
RoboPLC
Commits
aba27b74
提交
aba27b74
authored
4月 20, 2024
作者:
Serhij S
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
toolchain 1.66
上级
9f13ea22
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
195 行增加
和
302 行删除
+195
-302
Cargo.toml
Cargo.toml
+1
-1
Cargo.lock
roboplc-cli/Cargo.lock
+184
-291
Cargo.toml
roboplc-cli/Cargo.toml
+5
-5
Cargo.toml
roboplc-derive/Cargo.toml
+1
-1
supervisor.rs
src/supervisor.rs
+4
-4
没有找到文件。
Cargo.toml
浏览文件 @
aba27b74
...
...
@@ -27,7 +27,7 @@ oneshot = { version = "0.1.6", default-features = false, features = ["std"] }
parking_lot
=
"0.12.1"
pin-project
=
"1.1.5"
rmodbus
=
{
version
=
"0.9.4"
,
optional
=
true
}
roboplc-derive
=
{
version
=
"0.1
.9
"
}
roboplc-derive
=
{
version
=
"0.1"
}
serde
=
{
version
=
"1.0.197"
,
features
=
[
"derive"
,
"rc"
]
}
serial
=
"0.4.0"
sysinfo
=
"0.29"
...
...
roboplc-cli/Cargo.lock
浏览文件 @
aba27b74
...
...
@@ -2,6 +2,15 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "addr2line"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
dependencies = [
"gimli",
]
[[package]]
name = "adler"
version = "1.0.2"
...
...
@@ -17,54 +26,6 @@ dependencies = [
"memchr",
]
[[package]]
name = "anstream"
version = "0.6.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb"
dependencies = [
"anstyle",
"anstyle-parse",
"anstyle-query",
"anstyle-wincon",
"colorchoice",
"utf8parse",
]
[[package]]
name = "anstyle"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc"
[[package]]
name = "anstyle-parse"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c"
dependencies = [
"utf8parse",
]
[[package]]
name = "anstyle-query"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "anstyle-wincon"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
dependencies = [
"anstyle",
"windows-sys 0.52.0",
]
[[package]]
name = "array-init"
version = "2.1.0"
...
...
@@ -77,12 +38,33 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
[[package]]
name = "backtrace"
version = "0.3.71"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26b05800d2e817c8b3b4b54abd461726265fa9789ae34330622f2db9ee696f9d"
dependencies = [
"addr2line",
"cc",
"cfg-if",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
]
[[package]]
name = "base64"
version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
[[package]]
name = "base64"
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51"
[[package]]
name = "binrw"
version = "0.13.3"
...
...
@@ -121,9 +103,9 @@ checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
[[package]]
name = "bma-ts"
version = "0.1.
9
"
version = "0.1.
12
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
b5697f52df7aa38234ffc914b9c48f4a1f425483ce1a3b3a7076c7b18ea6ff6d
"
checksum = "
9cbc60d3274ed36077df4e12727c8479ca92e1238a7c1af4f8aa247b8b7fd599
"
dependencies = [
"nix",
"once_cell",
...
...
@@ -139,9 +121,9 @@ checksum = "5d6d68c57235a3a081186990eca2867354726650f42f7516ca50c28d6281fd15"
[[package]]
name = "cc"
version = "1.0.9
0
"
version = "1.0.9
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5
"
checksum = "
d32a725bc159af97c3e629873bb9f88fb8cf8a4867175f76dc987815ea07c83b
"
[[package]]
name = "cfg-if"
...
...
@@ -149,66 +131,57 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]]
name = "clap"
version = "4.
5.
4"
version = "4.
1.1
4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90
bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0
"
checksum = "90
6f7fe1da4185b7a282b2bc90172a496f9def1aca4545fe7526810741591e14
"
dependencies = [
"clap_builder",
"clap_derive",
"once_cell",
]
[[package]]
name = "clap_builder"
version = "4.
5.2
"
version = "4.
1.14
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4
"
checksum = "
351f9ad9688141ed83dfd8f5fb998a06225ef444b48ff4dc43de6d409b7fd10b
"
dependencies = [
"anstream",
"anstyle",
"bitflags 1.3.2",
"clap_lex",
"strsim 0.11.1",
"is-terminal",
"strsim",
"termcolor",
]
[[package]]
name = "clap_derive"
version = "4.
5.
4"
version = "4.
1.1
4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64
"
checksum = "
81d7dc0031c3a59a04fc2ba395c8e2dd463cba1859275f065d225f6122221b45
"
dependencies = [
"heck",
"proc-macro2",
"quote",
"syn 2.0.
58
",
"syn 2.0.
60
",
]
[[package]]
name = "clap_lex"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "colorchoice"
version = "1.0.0"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7
"
checksum = "
8a2dd5a6fe8c6e3502f568a6353e5273bbb15193ad9a89e457b9970798efbea1
"
[[package]]
name = "colored"
version = "
2.1.0
"
version = "
1.9.4
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
cbf2150cce219b664a8a70df7a1f933836724b503f8a413af9365b4dcc4d90b8
"
checksum = "
5a5f741c91823341bebf717d4c71bda820630ce065443b58bd1b7451af008355
"
dependencies = [
"is-terminal",
"lazy_static",
"win
dows-sys 0.48.0
",
"win
api
",
]
[[package]]
...
...
@@ -302,7 +275,7 @@ dependencies = [
"ident_case",
"proc-macro2",
"quote",
"strsim
0.10.0
",
"strsim",
"syn 1.0.109",
]
...
...
@@ -340,9 +313,9 @@ dependencies = [
[[package]]
name = "either"
version = "1.1
0
.0"
version = "1.1
1
.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a
"
checksum = "
a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2
"
[[package]]
name = "encode_unicode"
...
...
@@ -350,35 +323,19 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
[[package]]
name = "env_filter"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea"
dependencies = [
"log",
"regex",
]
[[package]]
name = "env_logger"
version = "0.1
1.3
"
version = "0.1
0.2
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
38b35839ba51819680ba087cd351788c9a3c476841207e0b8cee0b04722343b9
"
checksum = "
4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580
"
dependencies = [
"anstream",
"anstyle",
"env_filter",
"humantime",
"is-terminal",
"log",
"regex",
"termcolor",
]
[[package]]
name = "equivalent"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "errno"
version = "0.3.8"
...
...
@@ -386,7 +343,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245"
dependencies = [
"libc",
"windows-sys 0.52.0",
"windows-sys",
]
[[package]]
name = "failure"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86"
dependencies = [
"backtrace",
]
[[package]]
...
...
@@ -445,14 +411,14 @@ dependencies = [
"libc",
"log",
"rustversion",
"windows
0.48.0
",
"windows",
]
[[package]]
name = "getrandom"
version = "0.2.1
2
"
version = "0.2.1
4
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5
"
checksum = "
94b22e06ecb0110981051723910cbf0b5f5e09a2062dd7663334ee79a9d1286c
"
dependencies = [
"cfg-if",
"libc",
...
...
@@ -460,16 +426,16 @@ dependencies = [
]
[[package]]
name = "
hashbrown
"
version = "0.
14.3
"
name = "
gimli
"
version = "0.
28.1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604
"
checksum = "
4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253
"
[[package]]
name = "heck"
version = "0.
5.0
"
version = "0.
4.1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea
"
checksum = "
95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8
"
[[package]]
name = "hermit-abi"
...
...
@@ -477,15 +443,6 @@ version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
[[package]]
name = "home"
version = "0.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
dependencies = [
"windows-sys 0.52.0",
]
[[package]]
name = "humantime"
version = "2.1.0"
...
...
@@ -508,16 +465,6 @@ dependencies = [
"unicode-normalization",
]
[[package]]
name = "indexmap"
version = "2.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
dependencies = [
"equivalent",
"hashbrown",
]
[[package]]
name = "ioctl-rs"
version = "0.1.6"
...
...
@@ -535,7 +482,7 @@ checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b"
dependencies = [
"hermit-abi",
"libc",
"windows-sys
0.52.0
",
"windows-sys",
]
[[package]]
...
...
@@ -662,13 +609,12 @@ dependencies = [
[[package]]
name = "nix"
version = "0.2
8.0
"
version = "0.2
7.1
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4
"
checksum = "
2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053
"
dependencies = [
"bitflags 2.5.0",
"cfg-if",
"cfg_aliases",
"libc",
]
...
...
@@ -691,6 +637,15 @@ dependencies = [
"winapi",
]
[[package]]
name = "object"
version = "0.32.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441"
dependencies = [
"memchr",
]
[[package]]
name = "object-id"
version = "0.1.4"
...
...
@@ -735,7 +690,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.
58
",
"syn 2.0.
60
",
]
[[package]]
...
...
@@ -814,7 +769,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.
58
",
"syn 2.0.
60
",
]
[[package]]
...
...
@@ -857,18 +812,18 @@ dependencies = [
[[package]]
name = "proc-macro2"
version = "1.0.
79
"
version = "1.0.
81
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e835ff2298f5721608eb1a980ecaee1aef2c132bf95ecc026a11b7bf3c01c02e
"
checksum = "
3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba
"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.3
5
"
version = "1.0.3
6
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef
"
checksum = "
0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7
"
dependencies = [
"proc-macro2",
]
...
...
@@ -999,14 +954,12 @@ dependencies = [
"libc",
"spin",
"untrusted",
"windows-sys
0.52.0
",
"windows-sys",
]
[[package]]
name = "roboplc"
version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09ca5a1ad8a090b2e828a921c34a08ec4f1994dba32f82101998a13ac032d871"
version = "0.1.43"
dependencies = [
"binrw",
"bma-ts",
...
...
@@ -1057,6 +1010,12 @@ dependencies = [
"syn 1.0.109",
]
[[package]]
name = "rustc-demangle"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
[[package]]
name = "rustix"
version = "0.38.32"
...
...
@@ -1067,14 +1026,14 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
"windows-sys
0.52.0
",
"windows-sys",
]
[[package]]
name = "rustls"
version = "0.22.
3
"
version = "0.22.
4
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
99008d7ad0bbbea527ec27bddbc0e432c5b87d8175178cee68d2eec9c4a1813c
"
checksum = "
bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432
"
dependencies = [
"log",
"ring",
...
...
@@ -1099,11 +1058,11 @@ dependencies = [
[[package]]
name = "rustls-pemfile"
version = "2.1.
1
"
version = "2.1.
2
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
f48172685e6ff52a556baa527774f61fcaa884f59daf3375c62a3f1cd2549dab
"
checksum = "
29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d
"
dependencies = [
"base64",
"base64
0.22.0
",
"rustls-pki-types",
]
...
...
@@ -1126,9 +1085,9 @@ dependencies = [
[[package]]
name = "rustversion"
version = "1.0.1
4
"
version = "1.0.1
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4
"
checksum = "
80af6f9131f277a45a3fba6ce8e2258037bb0477a67e610d3c1fe046ab31de47
"
[[package]]
name = "ryu"
...
...
@@ -1142,7 +1101,7 @@ version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534"
dependencies = [
"windows-sys
0.52.0
",
"windows-sys",
]
[[package]]
...
...
@@ -1182,44 +1141,35 @@ dependencies = [
[[package]]
name = "serde"
version = "1.0.19
7
"
version = "1.0.19
8
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2
"
checksum = "
9846a40c979031340571da2545a4e5b7c4163bdae79b301d5f86d03979451fcc
"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.19
7
"
version = "1.0.19
8
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b
"
checksum = "
e88edab869b01783ba905e7d0153f9fc1a6505a96e4ad3018011eedb838566d9
"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.
58
",
"syn 2.0.
60
",
]
[[package]]
name = "serde_json"
version = "1.0.11
5
"
version = "1.0.11
6
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
12dc5c46daa8e9fdf4f5e71b6cf9a53f2487da0e86e55808e2d35539666497dd
"
checksum = "
3e17db7126d17feb94eb3fad46bf1a96b034e8aacbc2e775fe81505f8b0b2813
"
dependencies = [
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_spanned"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
dependencies = [
"serde",
]
[[package]]
name = "serial"
version = "0.4.0"
...
...
@@ -1314,12 +1264,6 @@ version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "strsim"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
[[package]]
name = "subtle"
version = "2.5.0"
...
...
@@ -1339,9 +1283,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.
58
"
version = "2.0.
60
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687
"
checksum = "
909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3
"
dependencies = [
"proc-macro2",
"quote",
...
...
@@ -1350,9 +1294,9 @@ dependencies = [
[[package]]
name = "sysinfo"
version = "0.
30.8
"
version = "0.
29.11
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
4b1a378e48fb3ce3a5cf04359c456c9c98ff689bcf1c1bc6e6a31f247686f275
"
checksum = "
cd727fc423c2060f6c92d9534cef765c65a6ed3f428a03d7def74a8c4348e666
"
dependencies = [
"cfg-if",
"core-foundation-sys",
...
...
@@ -1360,7 +1304,7 @@ dependencies = [
"ntapi",
"once_cell",
"rayon",
"win
dows 0.52.0
",
"win
api
",
]
[[package]]
...
...
@@ -1372,7 +1316,7 @@ dependencies = [
"cfg-if",
"fastrand",
"rustix",
"windows-sys
0.52.0
",
"windows-sys",
]
[[package]]
...
...
@@ -1386,6 +1330,15 @@ dependencies = [
"winapi",
]
[[package]]
name = "termcolor"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
dependencies = [
"winapi-util",
]
[[package]]
name = "termios"
version = "0.2.2"
...
...
@@ -1412,7 +1365,7 @@ checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.
58
",
"syn 2.0.
60
",
]
[[package]]
...
...
@@ -1442,38 +1395,13 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "toml"
version = "0.8.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e9dd1545e8208b4a5af1aa9bbd0b4cf7e9ea08fabc5d0a5c67fcaafa17433aa3"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit",
]
[[package]]
name = "toml_datetime"
version = "0.6.5"
version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1
"
checksum = "
f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234
"
dependencies = [
"serde",
]
[[package]]
name = "toml_edit"
version = "0.22.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e40bb779c5187258fd7aad0eb68cb8706a0a81fa712fbea808ab43c4b8374c4"
dependencies = [
"indexmap",
"serde",
"serde_spanned",
"toml_datetime",
"winnow",
]
[[package]]
name = "tracing"
version = "0.1.40"
...
...
@@ -1493,7 +1421,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.
58
",
"syn 2.0.
60
",
]
[[package]]
...
...
@@ -1583,7 +1511,7 @@ version = "2.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "11f214ce18d8b2cbe84ed3aa6486ed3f5b285cf8d8fbdbce9f3f767a724adc35"
dependencies = [
"base64",
"base64
0.21.7
",
"flate2",
"log",
"native-tls",
...
...
@@ -1621,12 +1549,6 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "utf8parse"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
[[package]]
name = "valuable"
version = "0.1.0"
...
...
@@ -1662,14 +1584,12 @@ dependencies = [
[[package]]
name = "which"
version = "
6.0
.1"
version = "
3.1
.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
8211e4f58a2b2805adfbefbc07bab82958fc91e3836339b1ab7ae32465dce0d7
"
checksum = "
d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724
"
dependencies = [
"either",
"home",
"rustix",
"winsafe",
"failure",
"libc",
]
[[package]]
...
...
@@ -1689,44 +1609,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
dependencies = [
"windows-targets 0.48.5",
]
[[package]]
name = "windows"
version = "0.52.0"
name = "winapi-util"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be
"
checksum = "
f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596
"
dependencies = [
"windows-core",
"windows-targets 0.52.4",
"winapi",
]
[[package]]
name = "win
dows-core
"
version = "0.
52
.0"
name = "win
api-x86_64-pc-windows-gnu
"
version = "0.
4
.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
dependencies = [
"windows-targets 0.52.4",
]
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "windows
-sys
"
name = "windows"
version = "0.48.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9
"
checksum = "
e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f
"
dependencies = [
"windows-targets 0.48.5",
]
...
...
@@ -1737,7 +1638,7 @@ version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
dependencies = [
"windows-targets 0.52.
4
",
"windows-targets 0.52.
5
",
]
[[package]]
...
...
@@ -1757,17 +1658,18 @@ dependencies = [
[[package]]
name = "windows-targets"
version = "0.52.
4
"
version = "0.52.
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1
b"
checksum = "
6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7e
b"
dependencies = [
"windows_aarch64_gnullvm 0.52.4",
"windows_aarch64_msvc 0.52.4",
"windows_i686_gnu 0.52.4",
"windows_i686_msvc 0.52.4",
"windows_x86_64_gnu 0.52.4",
"windows_x86_64_gnullvm 0.52.4",
"windows_x86_64_msvc 0.52.4",
"windows_aarch64_gnullvm 0.52.5",
"windows_aarch64_msvc 0.52.5",
"windows_i686_gnu 0.52.5",
"windows_i686_gnullvm",
"windows_i686_msvc 0.52.5",
"windows_x86_64_gnu 0.52.5",
"windows_x86_64_gnullvm 0.52.5",
"windows_x86_64_msvc 0.52.5",
]
[[package]]
...
...
@@ -1778,9 +1680,9 @@ checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.52.
4
"
version = "0.52.
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9
"
checksum = "
7088eed71e8b8dda258ecc8bac5fb1153c5cffaf2578fc8ff5d61e23578d3263
"
[[package]]
name = "windows_aarch64_msvc"
...
...
@@ -1790,9 +1692,9 @@ checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
name = "windows_aarch64_msvc"
version = "0.52.
4
"
version = "0.52.
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675
"
checksum = "
9985fd1504e250c615ca5f281c3f7a6da76213ebd5ccc9561496568a2752afb6
"
[[package]]
name = "windows_i686_gnu"
...
...
@@ -1802,9 +1704,15 @@ checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
name = "windows_i686_gnu"
version = "0.52.4"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88ba073cf16d5372720ec942a8ccbf61626074c6d4dd2e745299726ce8b89670"
[[package]]
name = "windows_i686_gnullvm"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3
"
checksum = "
87f4261229030a858f36b459e748ae97545d6f1ec60e5e0d6a3d32e0dc232ee9
"
[[package]]
name = "windows_i686_msvc"
...
...
@@ -1814,9 +1722,9 @@ checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
name = "windows_i686_msvc"
version = "0.52.
4
"
version = "0.52.
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02
"
checksum = "
db3c2bf3d13d5b658be73463284eaf12830ac9a26a90c717b7f771dfe97487bf
"
[[package]]
name = "windows_x86_64_gnu"
...
...
@@ -1826,9 +1734,9 @@ checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
[[package]]
name = "windows_x86_64_gnu"
version = "0.52.
4
"
version = "0.52.
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03
"
checksum = "
4e4246f76bdeff09eb48875a0fd3e2af6aada79d409d33011886d3e1581517d9
"
[[package]]
name = "windows_x86_64_gnullvm"
...
...
@@ -1838,9 +1746,9 @@ checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.52.
4
"
version = "0.52.
5
"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177
"
checksum = "
852298e482cd67c356ddd9570386e2862b5673c85bd5f88df9ab6802b334c596
"
[[package]]
name = "windows_x86_64_msvc"
...
...
@@ -1850,24 +1758,9 @@ checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
[[package]]
name = "windows_x86_64_msvc"
version = "0.52.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
[[package]]
name = "winnow"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8"
dependencies = [
"memchr",
]
[[package]]
name = "winsafe"
version = "0.0.19"
version = "0.52.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "
d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904
"
checksum = "
bec47e5bfd1bff0eeaf6d8b485cc1074891a197ab4225d504cb7a1ab88b02bf0
"
[[package]]
name = "zeroize"
...
...
roboplc-cli/Cargo.toml
浏览文件 @
aba27b74
...
...
@@ -14,17 +14,17 @@ name = "robo"
path
=
"src/main.rs"
[dependencies]
clap
=
{
version
=
"
4.5.4
"
,
features
=
[
"derive"
,
"env"
]
}
colored
=
"
2.1.0
"
clap
=
{
version
=
"
=4.1
"
,
features
=
[
"derive"
,
"env"
]
}
colored
=
"
1
"
prettytable-rs
=
"0.10.0"
roboplc
=
"0.1.27"
roboplc
=
{
path
=
".."
}
serde
=
{
version
=
"1.0.197"
,
features
=
["derive"]
}
serde_json
=
"1.0.115"
shlex
=
"1.3.0"
toml
=
"0.
8.12
"
toml
=
"0.
5
"
ureq
=
{
version
=
"2.9.6"
,
features
=
[
"json"
,
"native-certs"
,
"native-tls"
]
}
ureq_multipart
=
"1.1.1"
which
=
"
6.0.1
"
which
=
"
3
"
[profile.release]
strip
=
true
...
...
roboplc-derive/Cargo.toml
浏览文件 @
aba27b74
...
...
@@ -19,4 +19,4 @@ proc-macro2 = "1.0"
darling
=
"0.13.0"
[dev-dependencies]
roboplc
=
"0.1"
roboplc
=
{
path
=
".."
}
src/supervisor.rs
浏览文件 @
aba27b74
...
...
@@ -29,11 +29,11 @@ impl<T> Default for Supervisor<T> {
macro_rules!
vacant_entry
{
(
$self:ident
,
$builder:ident
)
=>
{{
let
Some
(
name
)
=
$builder
.name
.clone
()
else
{
return
Err
(
Error
::
SupervisorNameNotSpecified
);
};
return
Err
(
Error
::
SupervisorNameNotSpecified
);
};
let
btree_map
::
Entry
::
Vacant
(
entry
)
=
$self
.tasks
.entry
(
name
.clone
())
else
{
return
Err
(
Error
::
SupervisorDuplicateTask
(
name
));
};
return
Err
(
Error
::
SupervisorDuplicateTask
(
name
));
};
entry
}};
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论