7 releases (breaking)

Uses new Rust 2024

0.5.0 May 6, 2025
0.4.0 May 2, 2025
0.3.1 Apr 9, 2025
0.2.0 Apr 5, 2025
0.0.0 Apr 4, 2025

#1200 in Encoding

Download history 416/week @ 2025-04-04 46/week @ 2025-04-11 4/week @ 2025-04-18 243/week @ 2025-05-02 33/week @ 2025-05-09 9/week @ 2025-05-16

472 downloads per month

MIT/Apache

61KB
1K SLoC

conststr

conststr is a Rust crate for const-compatible, owning strings.

Feature flags

The following features are enabled by default:

  • alloc: Enables implementations for alloc facilities
  • std: Enables implementations for std facilities

The following features may additionally be enabled:

  • bytemuck: Enables implementations for bytemuck traits
  • oct: Enables implementations for Oct facilities
  • serde: Enables implementations for Serde facilities
  • zerocopy: Enables implementations for Zerocopy traits

Copyright © 2025 Gabriel Bjørnager Jensen.

conststr is distributed under either an MIT licence (see LICENCE-MIT) or version 2.0 of the Apache License (see LICENCE-APACHE), at your option.

Dependencies

~0–405KB