Update build dependencies and edition
Use the 2021 Rust edition. To use current version of clap changes were adapted.
This commit is contained in:
parent
d5ef64171a
commit
1aab989000
13 changed files with 55 additions and 49 deletions
10
src/main.rs
10
src/main.rs
|
@ -1,10 +1,10 @@
|
|||
use anyhow::Result;
|
||||
use clap::{crate_authors, crate_version, AppSettings, Clap};
|
||||
use clap::{crate_authors, crate_version, AppSettings, Parser};
|
||||
|
||||
mod posix;
|
||||
mod sysv;
|
||||
|
||||
#[derive(Clap, Debug)]
|
||||
#[derive(Debug, Parser)]
|
||||
enum Backend {
|
||||
/// Handle POSIX message queues
|
||||
#[clap(subcommand)]
|
||||
|
@ -14,7 +14,7 @@ enum Backend {
|
|||
Sysv(SysvCommand),
|
||||
}
|
||||
|
||||
#[derive(Clap, Debug)]
|
||||
#[derive(Debug, Parser)]
|
||||
enum PosixCommand {
|
||||
Create(posix::Create),
|
||||
Info(posix::Info),
|
||||
|
@ -24,7 +24,7 @@ enum PosixCommand {
|
|||
Recv(posix::Recv),
|
||||
}
|
||||
|
||||
#[derive(Clap, Debug)]
|
||||
#[derive(Debug, Parser)]
|
||||
enum SysvCommand {
|
||||
Create(sysv::Create),
|
||||
Info(sysv::Info),
|
||||
|
@ -32,7 +32,7 @@ enum SysvCommand {
|
|||
Unlink(sysv::Unlink),
|
||||
}
|
||||
|
||||
#[derive(Clap, Debug)]
|
||||
#[derive(Debug, Parser)]
|
||||
#[clap(
|
||||
version = crate_version!(),
|
||||
author = crate_authors!(", "),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue