当前位置:网站首页>Rust Getting Started Guide (crite Management)
Rust Getting Started Guide (crite Management)
2022-07-28 15:56:00 【InfoQ】
- Search for crates
- Used in projects crates
- To configure crate
- install / Use cargo-watch
Crates
$ cargo search sql
Use Crates
$ cargo new {project_name}[package]
name = "hello_world"
version = "0.1.0"
edition = "2022"# See more keys and their definitions athttps://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]
[package]
name = "hello_world"
version = "0.1.0"
edition = "2018"# See more keys and their definitions athttps://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]
sql = "0.4.3" <-- Add dependency here
Crates、Git and Feature toggles
[dependencies]
bracket-lib = “~0.8.1”
[dependencies]
bracket-lib ={ git = "https://github.com/thebracket/bracket-lib" }
[dependencies]
bracket-lib = {
git = "https://github.com/thebracket/bracket-lib",
default-features = false,
features = [ "amethyst_engine_vulkan" ]
}
Source (Source) And binary Crates
$ cargo buildCompiling sql v0.4.3
Compiling hello_world v0.1.0 (/Users/gian/hello_world)
Finished dev [unoptimized + debuginfo] target(s) in 0.99s
$ cargo install {crate_name}cargo installCargo-watch
cargo searchcargo installcargo installUpdating crates.io index
Ignored package `cargo-watch v7.8.1` is already installed, use --force to override
$ cargo install cargo-watch$ cargo-watch -x buildcargo build$ cargo-watch -x fmt -x testsummary
边栏推荐
- 占空比开关量输出高速脉冲计数器RTUModbus模块IBF63
- 玩死原型链
- PyQt5快速开发与实战 5.2 容器:装载更多的控件
- One channel encoder, two channels Di speed measurement, RS485 serial port connected to one channel do alarm module ibf151
- 振弦采集模块测量振弦传感器的流程步骤?
- How to turn on and off flight mode through ADB
- Love programming
- A failed cracking experience
- Voice social system -- improve the audio system industry chain
- 远距离串口服务器( 适配器)UART/I2C/1-Wire/SPI PS304常见问题及注意事项
猜你喜欢

2路DI高速脉冲计数器1路编码器转Modbus TCP有线无线模块IBF161

振弦采集模块测量振弦传感器的流程步骤?

多功能混合信号AI采集/开关量DI/DO采集转RS485/232/MODBUS模块

Have you seen the management area decoupling architecture? Can help customers solve big problems

低成本/小体积模块RS485/232转模拟信号的原理以及应用IBF33

如何快速接入统一的认证鉴权体系

FTP file transfer protocol

高精度绝对角度传感器应用高速度角度监测

Ethernet to RS485 serial port counter WiFi module LED light controller ibf165

A tour of grp:05 - GRP server streaming service end stream
随机推荐
js 优先级队列
NTC,PT100热电阻转4-20mA温度信号转换器
12V脉冲转速测量转24V电平信号转换变送器
js 栈
Solve the problem that the right-click menu "edit with idle" of the 『 py 』 file is invalid or missing
High speed counter to rs485modbus RTU module ibf150
激光测距仪非接触式地表裂缝监测仪
Learn about the native application management platform of rainbow cloud
电压频率的变换原理
Virturalbox solves the problem of kernel driver
玩死原型链
PyQt5快速开发与实战 5.1 表格与树
Has won Huawei's 8.5 billion yuan screen order? Vicino responded: the customer asked for confidentiality and could not reply!
Remember the common JS methods of projects
Principle and application of low cost / small volume module rs485/232 to analog signal ibf33
两种特殊函数(箭头函数和方法)
2路DI高速脉冲计数器1路编码器转Modbus TCP有线无线模块IBF161
Docker容器实现MySQL主从复制
兆骑科创创业大赛平台,活动路演,投融资对接
使用systemd管理服务