content: [alias]
  xclippy = [
    "clippy",
    "--workspace",
    "--all-targets",
    "--",
    "-Dwarnings",
    "-Wclippy::all",
    "-Aclippy::upper_case_acronyms",
    "-Aclippy::enum-variant-names",
    "-Aclippy::result-large-err",
    "-Aclippy::mutable-key-type",
  ]
  
  [build]
  rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes"]
  
  # TODO(grao): Figure out whether we should enable other cpu features, and whether we should use a different way to configure them rather than list every single one here.
  [target.x86_64-unknown-linux-gnu]
  rustflags = ["--cfg", "tokio_unstable", "-C", "link-arg=-fuse-ld=lld", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-C", "target-feature=+sse4.2"]
  
  # 64 bit MSVC
  [target.x86_64-pc-windows-msvc]
  rustflags = [
    "--cfg",
    "tokio_unstable",
    "-C",
    "force-frame-pointers=yes",
    "-C",
    "force-unwind-tables=yes",
    "-C",
    "link-arg=/STACK:8000000" # Set stack to 8 MB
  ]
  
  # [target.aarch64-apple-darwin]
  # rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes", "-C", "link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld", ]