lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit 4b0d109eb681a27b566e2c8d0454052c99979aa3
parent 05ee82ff49dc135783945241e77e50da7b07f22c
Author: triesap <tyson@radroots.org>
Date:   Sun, 28 Dec 2025 15:56:47 +0000

tangle-events: fix no_std alloc imports


- Import ToString for alloc-backed string conversions
- Add alloc::format usage for no_std formatting paths
- Restore alloc::vec import where vec! macro is referenced
- Normalize alloc import lists across event modules

Diffstat:
Mtangle-events/src/canonical.rs | 2+-
Mtangle-events/src/emit.rs | 2+-
Mtangle-events/src/error.rs | 2+-
Mtangle-events/src/geo.rs | 2+-
Mtangle-events/src/ingest.rs | 2+-
5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tangle-events/src/canonical.rs b/tangle-events/src/canonical.rs @@ -1,5 +1,5 @@ #[cfg(not(feature = "std"))] -use alloc::{string::String, vec::Vec}; +use alloc::{string::{String, ToString}, vec::Vec}; use serde::Serialize; use serde_json::{Map, Value}; diff --git a/tangle-events/src/emit.rs b/tangle-events/src/emit.rs @@ -1,5 +1,5 @@ #[cfg(not(feature = "std"))] -use alloc::{collections::BTreeMap, string::String, vec, vec::Vec}; +use alloc::{collections::BTreeMap, format, string::{String, ToString}, vec::Vec}; #[cfg(feature = "std")] use std::collections::BTreeMap; diff --git a/tangle-events/src/error.rs b/tangle-events/src/error.rs @@ -1,5 +1,5 @@ #[cfg(not(feature = "std"))] -use alloc::string::String; +use alloc::string::{String, ToString}; use core::fmt; diff --git a/tangle-events/src/geo.rs b/tangle-events/src/geo.rs @@ -1,5 +1,5 @@ #[cfg(not(feature = "std"))] -use alloc::{string::String, vec::Vec}; +use alloc::{string::String, vec, vec::Vec}; use radroots_events::farm::{RadrootsGeoJsonPoint, RadrootsGeoJsonPolygon}; diff --git a/tangle-events/src/ingest.rs b/tangle-events/src/ingest.rs @@ -1,5 +1,5 @@ #[cfg(not(feature = "std"))] -use alloc::{string::String, vec::Vec}; +use alloc::{format, string::{String, ToString}, vec::Vec}; #[cfg(feature = "std")] use base64::engine::general_purpose::URL_SAFE_NO_PAD;