当前位置:网站首页>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 = 3Release 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 ***
边栏推荐
- Openlayers customize bubble boxes and navigate to bubble boxes
- Sword finger offer II 105 Maximum area of the island
- Key points on February 15, 2022
- JDBC: deep understanding of Preparedstatement and statement[easy to understand]
- Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
- The latest software scheme of the intelligent information management system of the armed police force
- Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
- Record 3 - the state machine realizes key control and measures the number of external pulses
- 目前炒期货在哪里开户最正规安全?怎么期货开户?
- Slider verification code identification gadget display
猜你喜欢

Debiasing word embeddings | talking about word embedding and deviation removal # yyds dry goods inventory #

Intel's open source deep learning tool library openvino will increase cooperation with local software and hardware parties and continue to open

Yuancosmos game farmersworld farmers world - core content of the second conference in China!

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

Domestic spot silver should be understood

Set the style of QT property sheet control

Mujoco's biped robot Darwin model

Data warehouse (3) star model and dimension modeling of data warehouse modeling

Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion

Quick foundation of group theory (5): generators, Kelley graphs, orbits, cyclic graphs, and "dimensions" of groups?
随机推荐
Is Huishang futures a regular futures platform? Is it safe to open an account in Huishang futures?
股票万1免5证券开户是合理安全的吗,怎么讲
Apache iceberg source code analysis: schema evolution
The difference and relationship between iteratible objects, iterators and generators
C language implementation of sum of two numbers [easy to understand]
At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
MySQL -- explain performance optimization
Function, condition, regular expression
MFC obtains local IP (used more in network communication)
Is it safe to open an ETF account online? What are the steps?
What are the legal risks of NFT brought by stars such as curry and O'Neill?
Can hero sports go public against the wind?
When the fixed frequency artifact falls in love with multithreading | ros2 fixed frequency topic release demo
Yolov5 practice: teach object detection by hand
Reflective XSS vulnerability
Slider verification code identification gadget display
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
MES production equipment manufacturing execution system software
How to learn automated testing?
Openlayers customize bubble boxes and navigate to bubble boxes