1
0
Fork 0

Fork assert_no_alloc for nested permit+forbid

So you can use `assert_no_alloc()` inside of `permit_alloc()`.

https://github.com/Windfisch/rust-assert-no-alloc/pull/13
This commit is contained in:
Robbert van der Helm 2023-03-03 16:10:29 +01:00
parent 2ee3b7c2fa
commit 5a74efeb26
2 changed files with 3 additions and 5 deletions

2
Cargo.lock generated
View file

@ -162,7 +162,7 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
[[package]] [[package]]
name = "assert_no_alloc" name = "assert_no_alloc"
version = "1.1.2" version = "1.1.2"
source = "git+https://github.com/robbert-vdh/rust-assert-no-alloc.git?branch=nih-plug#95120d996240a2c279a6067502e11b62d30563a6" source = "git+https://github.com/robbert-vdh/rust-assert-no-alloc.git?branch=feature/nested-permit-forbid#a6fb4f62b9624715291e320ea5f0f70e73b035cf"
dependencies = [ dependencies = [
"backtrace", "backtrace",
"log", "log",

View file

@ -92,10 +92,8 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
widestring = "1.0.0-beta.1" widestring = "1.0.0-beta.1"
# Used for the `assert_process_allocs` feature. This fork includes support for # Used for the `assert_process_allocs` feature
# the log crate and printing backtraces on allocation failure so you can trace assert_no_alloc = { git = "https://github.com/robbert-vdh/rust-assert-no-alloc.git", branch = "feature/nested-permit-forbid", features = ["backtrace", "log"], optional = true }
# the allocation back to a place in the code.
assert_no_alloc = { git = "https://github.com/robbert-vdh/rust-assert-no-alloc.git", branch = "nih-plug", features = ["backtrace", "log"], optional = true }
# Used for the `standalone` feature # Used for the `standalone` feature
# NOTE: OpenGL support is not needed here, but rust-analyzer gets confused when # NOTE: OpenGL support is not needed here, but rust-analyzer gets confused when