From 25e015dc62ca9071fb974bd147200137623c41de Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 14 Apr 2022 00:59:33 +0100 Subject: [PATCH] Added optional feature `copy`: Make `StackString` a `Copy` type. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for stack-str's current commit: Future curse − 末凶 --- Cargo.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4447373..beaf587 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,4 +5,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[features] + +# Make `StackString` a `Copy` type +# +# This can be useful for small values of `SIZE`, but it will cause a lot of unneeded and redundant copying of large values of `SIZE`. +# Therefore, it is avdised to only be enabled if using only small `StackString`s. +copy = [] + [dependencies]