Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ccab3ec
build(nix): shell.nix support
daniel-noland Jan 26, 2026
b478404
build(nix): phase out rust-toolchain.toml
daniel-noland Jan 26, 2026
2bbeb3b
build(nix): frr build
daniel-noland Jan 26, 2026
742efc3
fix(build): remove gc-sections and as-needed
daniel-noland Jan 26, 2026
9396034
build: rework build.rs scripts
daniel-noland Jan 26, 2026
33e86b3
build(nix): clean up dpdk build
daniel-noland Jan 26, 2026
023d3fd
fix(build): wrong bluefield2 platform
daniel-noland Jan 26, 2026
ad078c0
build(nix): fix missing prime in libunwind build
daniel-noland Jan 26, 2026
73b3588
build(nix): formatting
daniel-noland Jan 26, 2026
78d68c4
build(nix): dataplane debug contianer
daniel-noland Jan 9, 2026
1d77377
build(nix): add minimal gdb build
daniel-noland Jan 26, 2026
c154f3b
fix(build): incorrect tokio features in dev-depends
daniel-noland Jan 26, 2026
b03bd78
fix(doc): typo
daniel-noland Jan 26, 2026
5664e46
chore(docs): clean up pointless include for link
daniel-noland Jan 26, 2026
6c82dbc
roll over to new build
daniel-noland Jan 26, 2026
fb47c88
wip
daniel-noland Feb 10, 2026
1fe78ec
wip
daniel-noland Feb 11, 2026
29e0f9a
fixup! wip
daniel-noland Feb 11, 2026
5ed37a0
fixup! fixup! wip
daniel-noland Feb 11, 2026
be9154d
fixup! fixup! fixup! wip
daniel-noland Feb 11, 2026
b330fa7
fixup! fixup! fixup! fixup! wip
daniel-noland Feb 11, 2026
51eb571
wip
daniel-noland Feb 11, 2026
b194b84
wip
daniel-noland Feb 11, 2026
20102ae
wip
daniel-noland Feb 11, 2026
ed9a517
wip
daniel-noland Feb 11, 2026
b0abb79
wip
daniel-noland Feb 11, 2026
e9e19d5
wip
daniel-noland Feb 11, 2026
1acc5e7
wip
daniel-noland Feb 11, 2026
f9470ef
wip
daniel-noland Feb 11, 2026
1c8fd9c
wip
daniel-noland Feb 11, 2026
99fda1f
wip
daniel-noland Feb 11, 2026
f01b72d
wip
daniel-noland Feb 11, 2026
194c7d5
wip
daniel-noland Feb 11, 2026
a0e766b
lockfile
daniel-noland Feb 11, 2026
0c4482a
wip
daniel-noland Feb 11, 2026
34da7b2
wip
daniel-noland Feb 12, 2026
ba33d86
wip
daniel-noland Feb 12, 2026
b681052
wip
daniel-noland Feb 12, 2026
773ad78
revert
daniel-noland Feb 12, 2026
70be945
wip
daniel-noland Feb 12, 2026
4506458
wip
daniel-noland Feb 12, 2026
48b1427
wip
daniel-noland Feb 12, 2026
7700794
wip
daniel-noland Feb 12, 2026
49f2eb7
wip
daniel-noland Feb 12, 2026
d1b9c37
wip
daniel-noland Feb 12, 2026
fcdf253
wip
daniel-noland Feb 12, 2026
9732932
wip
daniel-noland Feb 12, 2026
c820ed8
wip
daniel-noland Feb 12, 2026
439d124
bump
daniel-noland Feb 12, 2026
229a2ef
wip
daniel-noland Feb 12, 2026
99889c9
wip
daniel-noland Feb 12, 2026
af43f3f
wip
daniel-noland Feb 12, 2026
e6594ea
wip
daniel-noland Feb 12, 2026
292cd40
wip
daniel-noland Feb 12, 2026
376bffe
fixup! wip
daniel-noland Feb 12, 2026
a22908a
wip
daniel-noland Feb 12, 2026
a6d888f
wip
daniel-noland Feb 12, 2026
fc0c724
fixup! wip
daniel-noland Feb 12, 2026
792815a
fixup! fixup! wip
daniel-noland Feb 12, 2026
9de254d
fixup! fixup! fixup! wip
daniel-noland Feb 12, 2026
6addf09
wip
daniel-noland Feb 13, 2026
b6ce330
wip
daniel-noland Feb 17, 2026
b143d5b
wip
daniel-noland Feb 18, 2026
224af53
wip
daniel-noland Feb 18, 2026
1c81907
wip
daniel-noland Feb 19, 2026
5e4aff3
wip
daniel-noland Feb 19, 2026
48b72d4
wip
daniel-noland Feb 19, 2026
13f16a8
temp disable test_sample_config
daniel-noland Feb 19, 2026
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
17 changes: 7 additions & 10 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
[env]
COMPILE_ENV = { value = "compile-env", relative = true, force = false }
PATH = { value = "compile-env/bin", relative = true, force = true }
LIBCLANG_PATH = { value = "compile-env/lib", relative = true, force = true }
PKG_CONFIG_PATH = { value = "compile-env/sysroot/x86_64-unknown-linux-gnu/release/lib/pkgconfig", relative = true, force = true }
DATAPLANE_SYSROOT = { value = "sysroot", relative = true, force = false }
C_INCLUDE_PATH = { value = "sysroot/include", relative = true, force = false }
LIBRARY_PATH = { value = "sysroot/lib", relative = true, force = false }
GW_CRD_PATH = { value = "devroot/src/gateway/config/crd/bases", relative = true, force = false }
PKG_CONFIG_PATH = { value = "sysroot/lib/pkgconfig", relative = true, force = false }
LIBCLANG_PATH = { value = "devroot/lib", relative = true, force = false }

[build]
target = "x86_64-unknown-linux-gnu"
rustc = "compile-env/bin/rustc"
rustflags = ["--cfg", "tokio_unstable"]

[target.x86_64-unknown-linux-gnu]
runner = ["scripts/test-runner.sh"]
rustflags = ["--cfg=tokio_unstable"]
48 changes: 2 additions & 46 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,46 +1,2 @@
export PROJECT_DIR="$(pwd)"

if [ -h "${PROJECT_DIR}/compile-env" ] || [ -d "${PROJECT_DIR}/compile-env" ]; then
export PATH="${PROJECT_DIR}/compile-env/bin:$PATH"
export LIBCLANG_PATH="${PROJECT_DIR}/compile-env/bin"
export COMPILE_ENV="${PROJECT_DIR}/compile-env"
else
>&2 echo "no compile environment found"
exit 0
fi

export NEXTEST_EXPERIMENTAL_LIBTEST_JSON=1

CRT="-C target-feature=-crt-static"
DEBUG="-C debuginfo=full -C split-debuginfo=off -C dwarf-version=5"
LINKER="-C linker=${COMPILE_ENV}/bin/clang -C link-arg=--ld-path=${COMPILE_ENV}/bin/ld.lld"
RELRO="-C relro-level=full"
TARGET_CPU="-C target-cpu=x86-64-v3"

RUSTFLAGS="${CRT} ${DEBUG} ${LINKER} ${RELRO} ${TARGET_CPU}"

OPTIMIZE="-C opt-level=3 -C linker-plugin-lto -C lto=thin -C embed-bitcode=yes -C codegen-units=1"

case ${PROFILE:-DEBUG} in
fuzz|FUZZ)
COVERAGE="-C instrument-coverage"
DEBUG_ASSERTIONS="-C debug-assertions=on"
OVERFLOW_CHECK="-C overflow-checks=on"
RUSTFLAGS="${RUSTFLAGS} ${COVERAGE} ${DEBUG_ASSERTIONS} ${OVERFLOW_CHECK}"
;;
release|RELEASE)
RUSTFLAGS="${RUSTFLAGS} ${OPTIMIZE}"
;;
debug|DEBUG)
DEBUG_ASSERTIONS="-C debug-assertions=on"
OPTIMIZE="-C opt-level=0"
OVERFLOW_CHECK="-C overflow-checks=on"
RUSTFLAGS="${RUSTFLAGS} ${OPTIMIZE} ${DEBUG_ASSERTIONS} ${OVERFLOW_CHECK}"
;;
*)
>&2 echo "unknown profile"
exit 1
;;
esac

export RUSTFLAGS
export RUSTC_BOOTSTRAP=1
export PATH=$(pwd)/devroot/bin:$PATH
Loading
Loading