Cargo.toml 873 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [package]
  2. name = "unwind"
  3. version = "0.1.0"
  4. authors = ["Gary Guo <gary@garyguo.net>"]
  5. edition = "2018"
  6. [workspace]
  7. members = ["cdylib", "example"]
  8. [dependencies]
  9. gimli = { version = "0.25.0", default-features = false, features = ["read"] }
  10. libc = { version = "0.2", optional = true }
  11. spin = { version = "0.9", default-features = false, features = ["mutex", "spin_mutex"] }
  12. [features]
  13. alloc = []
  14. unwinder = []
  15. fde-phdr = ["libc"]
  16. fde-registry = ["alloc"]
  17. dwarf-expr = []
  18. hide-trace = []
  19. personality = []
  20. personality-dummy = []
  21. print = ["libc"]
  22. panic = ["alloc"]
  23. panic-handler = ["print", "panic"]
  24. panic-handler-dummy = []
  25. system-alloc = []
  26. default = ["unwinder", "dwarf-expr", "hide-trace", "fde-phdr", "fde-registry"]
  27. [profile.dev]
  28. # Must be turned on due to Rust bug https://github.com/rust-lang/rust/issues/50007
  29. lto = true
  30. [profile.release]
  31. lto = true
  32. debug = true