- If you using vscode and rust-analysis, you should be open
full
feature, like:
{
"rust-analyzer.cargo.features": [
"full"
],
}
or format on save.
{
"rust-analyzer.cargo.features": [
"full"
],
"editor.formatOnSave": true,
"editor.defaultFormatter": "rust-lang.rust-analyzer"
}
- One thing once commit
so in once pull request, it can contain multiple commits.
-
If you add new features, you should be add some test case of the features.
-
Run
cargo fmt
with your need. -
Run test case:
cargo t --lib
// lib, doc, examples, integration
cargo t --features="full"