Cargo.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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", optional = true, default-features = false, features = ["mutex", "spin_mutex"] }
  12. [patch.crates-io]
  13. gimli = { git = "https://github.com/gimli-rs/gimli.git" }
  14. [features]
  15. alloc = []
  16. unwinder = []
  17. fde-phdr = ["libc"]
  18. fde-phdr-dl = ["fde-phdr"]
  19. fde-phdr-aux = ["fde-phdr"]
  20. fde-registry = ["alloc"]
  21. fde-static = []
  22. fde-gnu-eh-frame-hdr = []
  23. dwarf-expr = []
  24. hide-trace = []
  25. personality = []
  26. personality-dummy = []
  27. print = ["libc"]
  28. panic = ["alloc"]
  29. panic-handler = ["print", "panic"]
  30. panic-handler-dummy = []
  31. system-alloc = []
  32. default = ["unwinder", "dwarf-expr", "hide-trace", "fde-phdr-dl", "fde-registry"]
  33. [profile.dev]
  34. # Must be turned on due to Rust bug https://github.com/rust-lang/rust/issues/50007
  35. lto = true
  36. [profile.release]
  37. lto = true
  38. debug = true