Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rust-mavlink
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
MAVLink
rust-mavlink
Commits
9e9ef092
Commit
9e9ef092
authored
10 months ago
by
pv42
Committed by
Patrick José Pereira
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Feat: add cli argument documentation
parent
63b6af9f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mavlink-bindgen/src/cli.rs
+5
-0
5 additions, 0 deletions
mavlink-bindgen/src/cli.rs
with
5 additions
and
0 deletions
mavlink-bindgen/src/cli.rs
+
5
−
0
View file @
9e9ef092
...
...
@@ -4,11 +4,16 @@ use clap::Parser;
use
mavlink_bindgen
::{
emit_cargo_build_messages
,
format_generated_code
,
generate
,
BindGenError
};
#[derive(Parser)]
/// Generate Rust bindings from MAVLink message dialect XML files.
struct
Cli
{
/// Path to the directory containing the MAVLink dialect definitions.
definitions_dir
:
PathBuf
,
/// Path to the directory where the code is generated into, must already exist.
destination_dir
:
PathBuf
,
/// format code generated code
#[arg(long)]
format_generated_code
:
bool
,
/// prints cargo build messages indicating when the code has to be rebuild
#[arg(long)]
emit_cargo_build_messages
:
bool
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment