当前位置:网站首页>Rust language - cargo, crates io
Rust language - cargo, crates io
2022-07-01 18:17:00 【A pig】
release profile:
It's predefined
Customizable : Different configurations can be used , Have more control over code compilation
Every profile The configuration of is independent of others profile
cargo Two main profile:
—dev profile: For development cargo build
—release profile: Apply to Publishing cargo build --release
# Generally, the following settings are made
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3
Release crate To crates.io
Use cargo doc --open The order can change crate Upload to crates.io Website and open this website
///: Documentation Comments
//!: A note describing the outer entry
pub use Export easy-to-use public API
For example, if you call a deep structure parameter
use xzc::x::z::c It's troublesome for users
We can do it in lib.rs Use in
pub use self::xzc::x::z::c
In this way, we want to import c Can be directly in main.rs Use in
use xzc::c
from crates.io Install binary crate
command :cargo install ***
边栏推荐
- Happy new year | 202112 monthly summary
- Petrv2: a unified framework for 3D perception of multi camera images
- An example of data analysis of an old swatch and an old hard disk disassembly and assembly combined with the sensor of an electromagnetic press
- About selenium element positioning being overwritten
- Mujoco model learning record
- Nielseniq found that 60% of the re launched products had poor returns
- MySQL + JSON = King fried
- The latest software scheme of the intelligent information management system of the armed police force
- C language implementation of sum of two numbers [easy to understand]
- Openlayers customize bubble boxes and navigate to bubble boxes
猜你喜欢
Rotation order and universal lock of unity panel
Source code of new campus errand / campus task platform on mutual station
Gameframework eating guide
Extract the compressed package file and retrieve the password
Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"
Apache iceberg source code analysis: schema evolution
Countdownlatch blocking wait for multithreading concurrency
Replace UUID, nanoid is faster and safer!
The new server is packaged with the source code of H5 mall with an operation level value of several thousand
ACL 2022 | decomposed meta learning small sample named entity recognition
随机推荐
Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
On the language internationalization of Yongzhong Office
The difference and relationship between iteratible objects, iterators and generators
Talk about the favorite tools used by project managers
Unity3d extended toolbar
Basic usage of shell script
MySQL -- explain performance optimization
June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries
Penetration practice vulnhub range Keyring
[beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
What are the six steps of the software development process? How to draw software development flow chart?
Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
What is web application security testing technology?
Openlayers customize bubble boxes and navigate to bubble boxes
Cassette helicopter and alternating electric field magnetic manometer DPC
transform. Forward and vector3 Differences in the use of forward
js如何将带有分割符的字符串转化成一个n维数组
Leetcode problem solving series -- continuous positive sequence with sum as s (sliding window)
Happy new year | 202112 monthly summary
Is online stock account opening safe? Is it reliable?