Skip to content

Commit beb33cb

Browse files
general cleanup
1 parent 34a01a3 commit beb33cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+21035
-18623
lines changed

bench/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Benchmarks for Capsule.
1111

1212
[dev-dependencies]
1313
anyhow = "1.0"
14-
capsule = { version = "0.1", path = "../core", features = ["testils"] }
14+
capsule = { version = "0.2", path = "../core", features = ["testils"] }
1515
criterion = "0.3"
1616
proptest = "1.0"
1717

@@ -20,11 +20,6 @@ name = "packets"
2020
path = "packets.rs"
2121
harness = false
2222

23-
[[bench]]
24-
name = "combinators"
25-
path = "combinators.rs"
26-
harness = false
27-
2823
[[bench]]
2924
name = "mbuf"
3025
path = "mbuf.rs"

bench/combinators.rs

Lines changed: 0 additions & 229 deletions
This file was deleted.

bench/mbuf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
use anyhow::Result;
20-
use capsule::Mbuf;
20+
use capsule::packets::Mbuf;
2121
use criterion::{criterion_group, criterion_main, Criterion};
2222

2323
const BATCH_SIZE: usize = 100;

bench/packets.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
*/
1818

1919
use anyhow::Result;
20+
use capsule::fieldmap;
21+
use capsule::packets::ethernet::Ethernet;
2022
use capsule::packets::ip::v4::Ipv4;
2123
use capsule::packets::ip::v6::{Ipv6, SegmentRouting};
22-
use capsule::packets::{Ethernet, Packet, Udp4};
24+
use capsule::packets::udp::Udp4;
25+
use capsule::packets::{Mbuf, Packet};
2326
use capsule::testils::criterion::BencherExt;
2427
use capsule::testils::proptest::*;
2528
use capsule::testils::{PacketExt, Rvg};
26-
use capsule::{fieldmap, Mbuf};
2729
use criterion::{criterion_group, criterion_main, Criterion};
2830
use proptest::prelude::*;
2931
use std::net::Ipv6Addr;

core/Cargo.toml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "capsule"
3-
version = "0.1.5"
3+
version = "0.2.0"
44
authors = ["Capsule Developers <[email protected]>"]
55
license = "Apache-2.0"
66
edition = "2018"
@@ -23,24 +23,17 @@ doctest = false
2323
anyhow = "1.0"
2424
async-channel = "1.6"
2525
async-executor = "1.4"
26-
capsule-ffi = { version = "0.1.5", path = "../ffi" }
27-
capsule-macros = { version = "0.1.5", path = "../macros" }
26+
capsule-ffi = { version = "0.2.0", path = "../ffi" }
27+
capsule-macros = { version = "0.2.0", path = "../macros" }
2828
clap = "2.33"
2929
criterion = { version = "0.3", optional = true }
30-
futures-lite = "1.11"
31-
futures-preview = "=0.3.0-alpha.19"
30+
futures-lite = "1.12"
3231
libc = "0.2"
33-
metrics-core = { version = "0.5", optional = true }
34-
metrics-runtime = { version = "0.13", optional = true, default-features = false }
35-
once_cell = "1.7"
32+
once_cell = "1.9"
3633
proptest = { version = "1.0", optional = true }
37-
regex = "1"
34+
regex = "1.5"
3835
serde = { version = "1.0", features = ["derive"] }
3936
thiserror = "1.0"
40-
tokio = "=0.2.0-alpha.6"
41-
tokio-executor = { version = "=0.2.0-alpha.6", features = ["current-thread", "threadpool"] }
42-
tokio-net = { version = "=0.2.0-alpha.6", features = ["signal"] }
43-
tokio-timer = "=0.3.0-alpha.6"
4437
toml = "0.5"
4538
tracing = "0.1"
4639

@@ -49,10 +42,9 @@ criterion = "0.3"
4942
proptest = { version = "1.0", default-features = false, features = ["default-code-coverage"] }
5043

5144
[features]
52-
default = ["metrics"]
45+
default = []
5346
compile_failure = [] # compiler tests to check mutability rules are followed
54-
full = ["metrics", "pcap-dump", "testils"]
55-
metrics = ["metrics-core", "metrics-runtime"]
47+
full = ["pcap-dump", "testils"]
5648
pcap-dump = []
5749
testils = ["criterion", "proptest"]
5850

core/src/batch/emit.rs

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)