From 46a6cfe93fa5a12f852d43dfaf20b4ab30f72358 Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sun, 14 Dec 2025 23:38:52 -0800 Subject: [PATCH] Support `no-std` (#506) - **Support `no-std`** - **Update categories** --- Cargo.toml | 1 + src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 73a0016..90650d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ edition = "2024" description = "impl GlobalAlloc for bdwgc" repository = "https://github.com/raviqqe/bdwgc-alloc" license = "MIT" +categories = ["api-bindings", "memory-management", "no-std", "no-std::no-alloc"] [dependencies] libc = "0.2.178" diff --git a/src/lib.rs b/src/lib.rs index 7dbe79a..c767328 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,5 @@ #![doc = include_str!("../README.md")] - -extern crate alloc; +#![no_std] mod error;