| { | ||
| "git": { | ||
| "sha1": "cbe2c692782d772f7c2fd8be0972bf9b91889a97" | ||
| "sha1": "8904072067fca9ca993f7234a2dacad1c362afa7" | ||
| }, | ||
| "path_in_vcs": "" | ||
| } |
+1
-1
@@ -7,3 +7,3 @@ # This file is automatically @generated by Cargo. | ||
| name = "bstr" | ||
| version = "1.11.3" | ||
| version = "1.12.0" | ||
| dependencies = [ | ||
@@ -10,0 +10,0 @@ "memchr", |
+19
-19
@@ -16,3 +16,3 @@ # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO | ||
| name = "bstr" | ||
| version = "1.11.3" | ||
| version = "1.12.0" | ||
| authors = ["Andrew Gallant <jamslam@gmail.com>"] | ||
@@ -56,4 +56,18 @@ build = false | ||
| [profile.release] | ||
| debug = 2 | ||
| [features] | ||
| alloc = [ | ||
| "memchr/alloc", | ||
| "serde?/alloc", | ||
| ] | ||
| default = [ | ||
| "std", | ||
| "unicode", | ||
| ] | ||
| serde = ["dep:serde"] | ||
| std = [ | ||
| "alloc", | ||
| "memchr/std", | ||
| "serde?/std", | ||
| ] | ||
| unicode = ["dep:regex-automata"] | ||
@@ -135,17 +149,3 @@ [lib] | ||
| [features] | ||
| alloc = [ | ||
| "memchr/alloc", | ||
| "serde?/alloc", | ||
| ] | ||
| default = [ | ||
| "std", | ||
| "unicode", | ||
| ] | ||
| serde = ["dep:serde"] | ||
| std = [ | ||
| "alloc", | ||
| "memchr/std", | ||
| "serde?/std", | ||
| ] | ||
| unicode = ["dep:regex-automata"] | ||
| [profile.release] | ||
| debug = 2 |
+8
-0
@@ -768,2 +768,10 @@ macro_rules! impl_partial_eq { | ||
| #[cfg(feature = "alloc")] | ||
| impl Default for Box<BStr> { | ||
| #[inline] | ||
| fn default() -> Self { | ||
| BStr::from_boxed_bytes(Box::default()) | ||
| } | ||
| } | ||
| impl<'a, const N: usize> From<&'a [u8; N]> for &'a BStr { | ||
@@ -770,0 +778,0 @@ #[inline] |
Sorry, the diff of this file is not supported yet