Skip to content

Commit

Permalink
Prune p4rs dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmooney authored May 22, 2024
1 parent dba7963 commit 16b9d09
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 218 deletions.
210 changes: 0 additions & 210 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions codegen/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ impl Sanitizer {
pub fn sanitize_string(s: &mut String) {
//TODO sanitize other problematic rust tokens
if s == "type" {
*s = "typ".to_owned();
"typ".clone_into(s)
}
if s == "match" {
*s = "match_".to_owned();
"match_".clone_into(s)
}
}
}
Expand Down
6 changes: 0 additions & 6 deletions lang/p4rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ edition = "2021"

[dependencies]
num = { version = "0.4", features = ["serde"] }
slog = { version = "2.7", features = ["max_level_trace"] }
slog-term = "2.9"
slog-async = "2.7"
slog-envlogger = "2.2"
bitvec = "1.0"
colored = "2.0"
usdt.workspace = true
serde = "1.0"
serde_json = "1.0"

[dev-dependencies]
pnet = "0.31"

0 comments on commit 16b9d09

Please sign in to comment.