Cargo.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. [package]
  2. name = "assert_no_alloc"
  3. version = "1.1.2"
  4. authors = ["Florian Jung <flo@windfis.ch>"]
  5. edition = "2018"
  6. license = "BSD-1-Clause"
  7. description = "Custom Rust allocator allowing to temporarily disable memory (de)allocations for a thread. Aborts or prints a warning if allocating although forbidden."
  8. homepage = "https://github.com/Windfisch/rust-assert-no-alloc"
  9. repository = "https://github.com/Windfisch/rust-assert-no-alloc"
  10. readme = "README.md"
  11. keywords = ["allocator", "real-time", "debug", "audio"]
  12. categories = ["development-tools::debugging"]
  13. [features]
  14. default = ["warn_debug"]
  15. warn_debug = []
  16. warn_release = []
  17. disable_release = []
  18. # Print a backtrace before aborting the program when an allocation failure happens
  19. backtrace = ["dep:backtrace"]
  20. # Use the `log` crate instead of printing to STDERR
  21. # WARNING: If the allocation failure happens during a logger call, then
  22. # depending on the logger's implementation this may block indefinitely
  23. log = ["dep:log"]
  24. [dependencies]
  25. backtrace = { version = "0.3", optional = true }
  26. log = { version = "0.4", optional = true }
  27. [package.metadata.docs.rs]
  28. features = ["warn_debug"]