Cargo.toml 992 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. [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-registry = ["alloc"]
  19. fde-static = []
  20. fde-gnu-eh-frame-hdr = []
  21. dwarf-expr = []
  22. hide-trace = []
  23. personality = []
  24. personality-dummy = []
  25. print = ["libc"]
  26. panic = ["alloc"]
  27. panic-handler = ["print", "panic"]
  28. panic-handler-dummy = []
  29. system-alloc = []
  30. default = ["unwinder", "dwarf-expr", "hide-trace", "fde-phdr", "fde-registry"]
  31. [profile.dev]
  32. # Must be turned on due to Rust bug https://github.com/rust-lang/rust/issues/50007
  33. lto = true
  34. [profile.release]
  35. lto = true
  36. debug = true