From 5f3fe75cd0426afd2bd0213ef8f20706fbc20e1f Mon Sep 17 00:00:00 2001 From: Philip Degarmo Date: Fri, 17 Mar 2023 20:02:56 -0700 Subject: [PATCH] Add no_std (#49) * add no_std * fix clippy lint --- examples/puffin/renderer.rs | 2 +- src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/puffin/renderer.rs b/examples/puffin/renderer.rs index 34be182..7d855b3 100644 --- a/examples/puffin/renderer.rs +++ b/examples/puffin/renderer.rs @@ -339,7 +339,7 @@ impl Renderer { ), &IMGUI_VERTEX_LAYOUT, )?; - command_buffer.cmd_bind_pipeline(&*imgui_pipeline.get_raw().pipeline)?; + command_buffer.cmd_bind_pipeline(&imgui_pipeline.get_raw().pipeline)?; descriptor_set.bind(command_buffer)?; for (draw_list_index, draw_list) in draw_data.draw_lists().enumerate() { diff --git a/src/lib.rs b/src/lib.rs index 7570340..0b5ba8d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,6 +3,10 @@ // exact same interface. Only one may be active at a time. // +// This library itself does not require std, but if any features are enabled, the upstream crate +// likely will bring in std. +#![no_std] + /// Proc macro for creating a scope around the function, using the name of the function for the /// scope's name ///