Skip to content

Commit

Permalink
refactor: define the Trippy public api (#1192)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Jun 18, 2024
1 parent e5ad7ab commit 39bbe0c
Show file tree
Hide file tree
Showing 48 changed files with 2,803 additions and 2,140 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ jobs:
run: cargo msrv verify --output-format json --manifest-path crates/trippy/Cargo.toml -- cargo check
- name: check msrv for trippy-core
run: cargo msrv verify --output-format json --manifest-path crates/trippy-core/Cargo.toml -- cargo check
- name: check msrv for trippy-packet
run: cargo msrv verify --output-format json --manifest-path crates/trippy-packet/Cargo.toml -- cargo check
- name: check msrv for trippy-dns
run: cargo msrv verify --output-format json --manifest-path crates/trippy-dns/Cargo.toml -- cargo check
- name: check msrv for trippy-privilege
Expand Down
23 changes: 21 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["crates/trippy", "crates/trippy-core", "crates/trippy-packet", "crates/trippy-privilege", "crates/trippy-dns"]
members = ["crates/trippy", "crates/trippy-core", "crates/trippy-packet", "crates/trippy-privilege", "crates/trippy-dns", "examples/*"]

[workspace.package]
version = "0.11.0-dev"
Expand All @@ -14,6 +14,10 @@ edition = "2021"
rust-version = "1.75"

[workspace.dependencies]
trippy-core = { version = "0.11.0-dev", path = "crates/trippy-core" }
trippy-privilege = { version = "0.11.0-dev", path = "crates/trippy-privilege" }
trippy-dns = { version = "0.11.0-dev", path = "crates/trippy-dns" }
trippy-packet = { version = "0.11.0-dev", path = "crates/trippy-packet" }
thiserror = "1.0.60"
anyhow = "1.0.83"
itertools = "0.13.0"
Expand Down
5 changes: 4 additions & 1 deletion crates/trippy-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ keywords = ["traceroute", "ping", "icmp"]
categories = ["network-programming"]

[dependencies]
trippy-packet = { version = "0.11.0-dev", path = "../trippy-packet" }
trippy-packet.workspace = true
trippy-privilege.workspace = true
derive_more.workspace = true
thiserror.workspace = true
tracing.workspace = true
itertools.workspace = true
parking_lot.workspace = true
indexmap = { version = "2.2.6", default-features = false, features = [ "std" ] }
arrayvec = { version = "0.7.4", default-features = false }
socket2 = { version = "0.5.7", features = [ "all" ] }
bitflags = "2.5.0"
Expand Down
Loading

0 comments on commit 39bbe0c

Please sign in to comment.