stack_strings

Library for guaranteed zero heap allocation strings

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 1.1.4
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:26

Authors

  • termer

Installation

nimble install stack_strings
choosenim install stack_strings
git clone https://github.com/termermc/nim-stack-strings/

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
stack_strings - - - - - - -

Dependencies

Package Version Optional
nim >= 1.6.14 No

Source

Repository https://github.com/termermc/nim-stack-strings/
Homepage https://github.com/termermc/nim-stack-strings/
Registry Source nimble_official

README

Nim stack_strings Module

The stack_strings module provides a string implementation that works with 100% stack memory.

This module is primarily meant for programs that want to avoid any and all heap allocation, such as code for embedded targets. If you use --mm:arc and -d:useMalloc in tandem with this module, your program will be able to do string operations without allocating any memory at runtime.

Current Status

This library is functionally complete, but open to new features if they are relevant.

The project is actively maintained, so if you find that there are problems on a version equal to or greater than the minimum supported version, please open an issue.

Documentation

You can view the latest documentation online here.

To generate documentation, clone this repository and then run nimble docgen. The generated HTML docs will be available in the docs directory in the project root.

Nim Version Support

Only Nim 1.6.14+ (including 2.0.0+) is supported as there are bugs with static int in prior versions.