SkillAgentSearch skills...

Smallstring

SmallVec-backed stack string optimisation

Install / Use

/learn @jFransham/Smallstring
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Small String

Create strings of any length on the stack, automatically upgrading to the heap when they become larger than the buffer. Also allows converting from a String for free (i.e. without copying to the stack even if they're small enough).

Backed by smallvec.

// Default maximum size to store on the stack: 8 bytes
let stack: SmallString = "Hello!".into();

// Reuses allocation
let heap: String = "Hello!".into();
let still_heap: SmallString = heap.into();

Related Skills

View on GitHub
GitHub Stars44
CategoryDevelopment
Updated5mo ago
Forks7

Languages

Rust

Security Score

72/100

Audited on Oct 23, 2025

No findings