Skip to content

Async & HTQ #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/buildomat/jobs/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#: "/work/debug/*",
#: "/work/release/*",
#: ]
#: access_repos = [
#: "oxidecomputer/htq",
#: ]
#:

set -o errexit
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.sw*
out.rs
tags
!.github
36 changes: 36 additions & 0 deletions Cargo.lock

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

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ members = [
"p4",
"x4c",
"x4c_error_codes",
"codegen/common",
"codegen/rust",
"codegen/htq",
"lang/p4rs",
"lang/p4-macro",
"lang/p4-macro-test",
Expand All @@ -16,14 +18,17 @@ members = [

[workspace.dependencies]
p4-macro = { path = "lang/p4-macro" }
p4-cg = { path = "codegen/common" }
p4-rust = { path = "codegen/rust" }
p4-htq = { path = "codegen/htq" }
p4rs = { path = "lang/p4rs" }
tests = { path = "test" }

anyhow = "1"
bitvec = "1.0"
clap = { version = "4", features = ["color", "derive"] }
colored = "3"
htq = { git = "https://github.com/oxidecomputer/htq", branch = "sector-001" }
libloading = { version = "0.8" }
num = { version = "0.4", features = ["serde"] }
p4 = { path = "p4" }
Expand All @@ -37,5 +42,6 @@ serde = "1.0"
serde_tokenstream = "0.2"
syn = "2.0"
tempfile = "3.3"
thiserror = "1.0.63"
usdt = "0.5.0"
xfr = { git = "https://github.com/oxidecomputer/xfr" }
8 changes: 8 additions & 0 deletions codegen/common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "p4-cg"
version = "0.1.0"
edition = "2021"

[dependencies]
p4 = { path = "../../p4" }
thiserror = "1.0.63"
1 change: 1 addition & 0 deletions codegen/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Copyright 2024 Oxide Computer Company
9 changes: 9 additions & 0 deletions codegen/htq/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "p4-htq"
version = "0.1.0"
edition = "2021"

[dependencies]
p4.workspace = true
htq.workspace = true
thiserror.workspace = true
Loading
Loading