use edition 2021

pull/34/head
Dmitry Savintsev 3 years ago
parent c41fb5ef0d
commit aa3b2a4407

@ -1,7 +1,7 @@
[package]
name = "xtask"
version = "0.1.0"
edition = "2018"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

@ -1,7 +1,7 @@
[package]
name = "{{project-name}}-common"
version = "0.1.0"
edition = "2018"
edition = "2021"
[features]
default = []

@ -1,7 +1,7 @@
[package]
name = "{{ project-name }}-ebpf"
version = "0.1.0"
edition = "2018"
edition = "2021"
[dependencies]
aya-bpf = { git = "http://github.com/aya-rs/aya", branch = "main" }

@ -1,7 +1,7 @@
[package]
name = "{{project-name}}"
version = "0.1.0"
edition = "2018"
edition = "2021"
publish = false
[dependencies]

@ -14,7 +14,6 @@ use aya::programs::SockOps;
use aya::maps::{MapRefMut,SockHash};
use aya::programs::SkMsg;
use {{crate_name}}_common::SockKey;
use std::convert::TryFrom;
{%- when "xdp" -%}
use anyhow::Context;
use aya::programs::{Xdp, XdpFlags};
@ -31,7 +30,6 @@ use aya::{programs::BtfTracePoint, Btf};
{%- endcase %}
use log::info;
use simplelog::{ColorChoice, ConfigBuilder, LevelFilter, TermLogger, TerminalMode};
use std::convert::TryInto;
use structopt::StructOpt;
use tokio::signal;

Loading…
Cancel
Save