content: # Copyright (c) Microsoft Corporation.
  # Licensed under the MIT license.
  
  [package]
  name = "demikernel-dpdk-bindings"
  version = "1.1.8"
  authors = ["Microsoft Corporation"]
  edition = "2021"
  description = "Rust Bindings for Libdpdk"
  homepage = "https://aka.ms/demikernel"
  repository = "https://github.com/demikernel/demikernel"
  license-file = "LICENSE.txt"
  
  [dependencies]
  cfg-if = "1.0.0"
  
  [build-dependencies]
  anyhow = "1.0.89"
  bindgen = "0.70.1"
  cc = "1.1.21"
  
  [features]
  default = ["mlx5"]
  mlx4 = []
  mlx5 = []
  
  [profile.release]
  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.
  
  [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.
  