Thanks to visit codestin.com
Credit goes to lib.rs

#static-string #cow #u8 #alternative

no-std sting

Smaller alternatives to Cow<'static, {str,[u8]}>

3 releases

Uses new Rust 2024

0.1.2 Jul 4, 2025
0.1.1 Jul 4, 2025
0.1.0 Jul 4, 2025

#3 in #alternative

Apache-2.0

13KB
274 lines

sting

Sting: like Cow<'static, str> but smaller. Sluice: like Cow<'static, [u8]> but smaller.

Copyright (c) 2025 James Laver

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

No runtime deps

Features