From 5a74efeb26787331190a9d2aac47521bd63508ed Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 3 Mar 2023 16:10:29 +0100 Subject: [PATCH] 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 --- Cargo.lock | 2 +- Cargo.toml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2e231d55..b2dc5cfb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,7 +162,7 @@ checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" [[package]] name = "assert_no_alloc" 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 = [ "backtrace", "log", diff --git a/Cargo.toml b/Cargo.toml index 9dbeb1d0..7d92458a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -92,10 +92,8 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" widestring = "1.0.0-beta.1" -# Used for the `assert_process_allocs` feature. This fork includes support for -# the log crate and printing backtraces on allocation failure so you can trace -# 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 `assert_process_allocs` feature +assert_no_alloc = { git = "https://github.com/robbert-vdh/rust-assert-no-alloc.git", branch = "feature/nested-permit-forbid", features = ["backtrace", "log"], optional = true } # Used for the `standalone` feature # NOTE: OpenGL support is not needed here, but rust-analyzer gets confused when