Cargo.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [package]
  2. name = "unwinding"
  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. panicking = []
  29. panic = ["panicking", "alloc"]
  30. panic-handler = ["print", "panic"]
  31. panic-handler-dummy = []
  32. system-alloc = []
  33. default = ["unwinder", "dwarf-expr", "hide-trace", "fde-phdr-dl", "fde-registry"]
  34. [profile.dev]
  35. # Must be turned on for cdylib due to Rust bug https://github.com/rust-lang/rust/issues/50007
  36. lto = true
  37. [profile.release]
  38. lto = true
  39. debug = true
  40. [package.metadata.docs.rs]
  41. features = ["panic-handler"]