Crates.io | libzymod-rust |
lib.rs | libzymod-rust |
version | 2.0.4 |
source | src |
created_at | 2021-12-01 07:00:43.141801 |
updated_at | 2021-12-30 10:18:47.334036 |
description | 智眼Rust SDK |
homepage | |
repository | |
max_upload_size | |
id | 490139 |
size | 14,762 |
智眼模块Rust SDK
在 Cargo.toml
依赖项内添加:
[dependencies]
libzymod-rust = "x.x.x"
SDK上传至Creates.io后,想要实时更新必须使用Creates默认源,如果想要本地实时开发/测试代码,需要做以下设置
git clone
cd libzymod-rust
Cargo.toml
文件cat >> /home/xxxx/workspace/ZhiYanModule/Cargo.toml << EOF
[workspace]
members = [
"zhiyan-mod-xxx",
]
[patch.crates-io]
libzymod-rust = { path = '/home/xxxx/ZhiYan/libzymod-rust' }
EOF
[workspace]
members = [
"zhiyan-mod-xxx",
]
[patch.crates-io]
libzymod-rust = { path = '/home/xxxx/ZhiYan/libzymod-rust' }
cargo build
在文件中添加:
extern crate zymod;