1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 05:10:36 +02:00

add string crate

This commit is contained in:
Nikolay Kim
2019-12-07 09:59:39 +06:00
parent cbdbc05dbd
commit 6c00ab8296
7 changed files with 173 additions and 3 deletions

View File

@ -22,8 +22,7 @@ default = ["http"]
[dependencies]
regex = "1.3.1"
serde = "1.0.80"
# string = "0.2.1"
string = { git = "https://github.com/carllerche/string.git" }
bytestring = "0.1.0"
log = "0.4.8"
http = { version="0.2.0", optional=true }

View File

@ -29,7 +29,7 @@ impl<'a> ResourcePath for &'a str {
}
}
impl<T: AsRef<[u8]>> ResourcePath for string::String<T> {
impl ResourcePath for bytesrting::ByteString {
fn path(&self) -> &str {
&*self
}