Cargo.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [package]
  2. name = "victory-shader"
  3. description = "Xbox shader containers (DXBC/DXIL + precompiled GFX10) to host shaders."
  4. version.workspace = true
  5. edition.workspace = true
  6. rust-version.workspace = true
  7. license.workspace = true
  8. publish.workspace = true
  9. [dependencies]
  10. thiserror.workspace = true
  11. zlib-rs.workspace = true
  12. [features]
  13. # Host D3D12 pipeline checks (`emit::host`).
  14. host = ["dep:windows"]
  15. # Debugging switches (emitted-module dumps and the like).
  16. diagnostics = []
  17. [[bench]]
  18. name = "guard_runs"
  19. harness = false
  20. [target.'cfg(windows)'.dependencies]
  21. windows-sys = { workspace = true, features = ["Win32_System_LibraryLoader"] }
  22. windows = { workspace = true, optional = true, features = [
  23. "Win32_Foundation",
  24. "Win32_Graphics_Direct3D",
  25. "Win32_Graphics_Direct3D12",
  26. "Win32_Graphics_Dxgi",
  27. "Win32_Graphics_Dxgi_Common",
  28. ] }
  29. [target.'cfg(windows)'.dev-dependencies]
  30. windows = { workspace = true, features = [
  31. "Win32_Foundation",
  32. "Win32_Graphics_Direct3D",
  33. "Win32_Graphics_Direct3D12",
  34. "Win32_Graphics_Dxgi",
  35. "Win32_Graphics_Dxgi_Common",
  36. ] }
  37. [lints]
  38. workspace = true