[build] Bug Fix: Missing Build Profiles
@@ -84,13 +84,26 @@ mlx5 = [ "dpdk-rs/mlx5" ]
profiler = [ ]
+# Build profile used for releases.
[profile.release]
-lto = "fat"
-codegen-units = 1
-panic = "abort"
-opt-level = 3
-debug = false
-debug-assertions = false
-overflow-checks = false
-incremental = false
-rpath = false
+opt-level = 3 # Enable all compiler optimizations.
+debug = false # Do not include any debug info in the binary.
+debug-assertions = false # Do not include any debug assertions in the binary.
+overflow-checks = false # Do not check for overflows at runtime.
+lto = "fat" # Perform link time optimizations across all dependencies (overridden).
+panic = "abort" # Terminate the process upon panic (overridden).
+incremental = false # Disable incremental compilation.
+codegen-units = 1 # Produce a single code generation unit (overridden).
+rpath = false # Disable runtime search path.
+
+# Build profile used for development and debugging.
+[profile.dev]
+opt-level = 0 # Disable all compiler optimizations.
+debug = true # Output full debug info in the binary.
+debug-assertions = true # Include debug assertions in the binary.
+overflow-checks = true # Check for overflows at runtime.
+lto = "off" # Disable link time optimization (overridden).
+panic = 'unwind' # Unwind the stack upon panic.
+incremental = true # Incremental build.
+codegen-units = 256 # Produce multiple code generation units.
+rpath = false # Disable runtime search path.
