├── .gitignore ├── src ├── util.rs ├── constants.rs ├── fdb.rs ├── main.rs ├── defs.rs ├── lib.rs ├── http.rs └── couch.rs ├── README.md ├── Cargo.toml ├── tests └── errors.rs ├── LICENSE └── Cargo.lock /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /src/util.rs: -------------------------------------------------------------------------------- 1 | use byteorder::{LittleEndian, ReadBytesExt}; 2 | 3 | pub fn bin_to_int(mut bin: &[u8]) -> u64 { 4 | match bin.read_u64::() { 5 | Ok(num) => num, 6 | Err(_) => 0, 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Mini-CouchDB 2 | 3 | An implementation of CouchDB using Rust and FoundationDB for Cloudant's hackweek 25 May 2020 - 4 June 2020. 4 | The aim was to be able to read `/{db}/_all_docs`. 5 | 6 | [Here](https://www.garrensmith.com/blogs/mini-couch-hack-week) is a blog post on this. 7 | 8 | ## Building 9 | 10 | ``` 11 | $ cargo build 12 | ``` 13 | 14 | ## Running 15 | 16 | ``` 17 | $ cargo run 18 | ``` 19 | -------------------------------------------------------------------------------- /src/constants.rs: -------------------------------------------------------------------------------- 1 | use foundationdb::tuple::Element; 2 | 3 | pub const COUCHDB_PREFIX: &[u8; 14] = b"\xfe\x01\xfe\x00\x14\x02couchdb\x00"; 4 | // pub const DB_CHANGES: &[u8; 3] = b"\x15\x133"; 5 | pub const ALL_DBS: Element = Element::Int(1); 6 | pub const DB_STATS: Element = Element::Int(17); 7 | pub const DB_ALL_DOCS: Element = Element::Int(18); 8 | pub const DB_CHANGES: Element = Element::Int(19); 9 | pub const VS_STAMP: Element = Element::Int(51); 10 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "couch_hack_week" 3 | version = "0.1.0" 4 | authors = ["Garren Smith "] 5 | edition = "2018" 6 | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 8 | 9 | [dependencies] 10 | foundationdb = { git = "https://github.com/Clikengo/foundationdb-rs.git" } 11 | futures = "0.3" 12 | tokio = { version = "0.2", features = ["full"] } 13 | hex = "0.4.2" 14 | warp = "0.2" 15 | serde = {version = "1.0", features = ["derive"] } 16 | serde_derive = "1.0" 17 | serde_json = "1.0" 18 | byteorder = "1.3.4" 19 | -------------------------------------------------------------------------------- /tests/errors.rs: -------------------------------------------------------------------------------- 1 | use couch_hack_week::couch::{get_db, get_directory}; 2 | use foundationdb::Database as FdbDatabase; 3 | use tokio::runtime::Runtime; 4 | 5 | #[test] 6 | fn test_missing_database() { 7 | foundationdb::boot(|| { 8 | let mut rt = Runtime::new().unwrap(); 9 | rt.block_on(test_missing_database_async()) 10 | }); 11 | 12 | assert!(true); 13 | } 14 | 15 | async fn test_missing_database_async() { 16 | let fdb = FdbDatabase::default().unwrap(); 17 | let trx = fdb.create_trx().unwrap(); 18 | let directory = get_directory(&trx).await.unwrap(); 19 | let db_name = "this-should-not-exist-123".to_string(); 20 | 21 | let res = get_db(&trx, directory.as_slice(), db_name.as_str()).await; 22 | 23 | assert!(res.is_err()); 24 | } 25 | -------------------------------------------------------------------------------- /src/fdb.rs: -------------------------------------------------------------------------------- 1 | use foundationdb::tuple::{PackResult, TuplePack, TupleUnpack}; 2 | use foundationdb::{tuple, KeySelector}; 3 | 4 | pub fn pack_with_prefix(v: &T, prefix: &[u8]) -> Vec { 5 | let packed = tuple::pack(v); 6 | [prefix, packed.as_ref()].concat() 7 | } 8 | 9 | pub fn pack_around(v: &T, prefix: &[u8], suffix: &[u8]) -> Vec { 10 | let packed = tuple::pack(v); 11 | [prefix, packed.as_ref(), suffix].concat() 12 | } 13 | 14 | pub fn pack_range(v: &T, prefix: &[u8]) -> (Vec, Vec) { 15 | let packed = tuple::pack(v); 16 | let start = [prefix, packed.as_ref()].concat(); 17 | let end = [prefix, packed.as_ref(), b"\xFF"].concat(); 18 | (start, end) 19 | } 20 | 21 | pub fn pack_key_range<'a, T: TuplePack>( 22 | v: &'a T, 23 | prefix: &[u8], 24 | ) -> (KeySelector<'a>, KeySelector<'a>) { 25 | let (start, end) = pack_range(v, prefix); 26 | 27 | let start_key = KeySelector::first_greater_or_equal(start); 28 | let end_key = KeySelector::first_greater_than(end); 29 | (start_key, end_key) 30 | } 31 | 32 | pub fn unpack_with_prefix<'de, T: TupleUnpack<'de>>( 33 | input: &'de [u8], 34 | prefix: &[u8], 35 | ) -> PackResult { 36 | let input1 = &input[prefix.len()..]; 37 | tuple::unpack(input1) 38 | } 39 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use couch_hack_week::constants::*; 2 | use couch_hack_week::couch::{all_dbs, get_db}; 3 | use couch_hack_week::http; 4 | use foundationdb::Database as FdbDatabase; 5 | use std::*; 6 | use tokio::runtime::Runtime; 7 | 8 | async fn async_main() -> Result<(), Box> { 9 | let fdb = FdbDatabase::default().unwrap(); 10 | 11 | let routes = http::routes().await; 12 | println!("Server running on port: 3030"); 13 | warp::serve(routes).run(([127, 0, 0, 1], 3030)).await; 14 | 15 | // write a value 16 | let trx = fdb.create_trx().unwrap(); 17 | trx.set(b"hello", b"world"); // errors will be returned in the future result 18 | trx.commit().await.unwrap(); 19 | 20 | // read a value 21 | let trx = fdb.create_trx().unwrap(); 22 | let maybe_value = trx.get(b"hello", false).await.unwrap(); 23 | 24 | let value = maybe_value.unwrap(); // unwrap the option 25 | 26 | let couch_directory = trx.get(COUCHDB_PREFIX, false).await.unwrap().unwrap(); 27 | let s = String::from_utf8_lossy(&couch_directory.as_ref()); 28 | println!("dd {:?}", s); 29 | 30 | let dbs = all_dbs(&trx).await.unwrap(); 31 | 32 | dbs.iter().for_each(|db| println!("db: {:?}", db.name)); 33 | let db = get_db( 34 | &trx, 35 | &couch_directory.as_ref(), 36 | String::from("all-docs-db").as_str(), 37 | ) 38 | .await 39 | .unwrap(); 40 | println!("woo db {:?}", db.name); 41 | 42 | // all_docs(&trx, &dbs[0]).await?; 43 | 44 | assert_eq!(b"world", &value.as_ref()); 45 | Ok(()) 46 | } 47 | 48 | fn main() { 49 | foundationdb::boot(|| { 50 | let mut rt = Runtime::new().unwrap(); 51 | rt.block_on(async { 52 | async_main().await.unwrap(); 53 | }); 54 | }); 55 | } 56 | -------------------------------------------------------------------------------- /src/defs.rs: -------------------------------------------------------------------------------- 1 | use foundationdb::tuple::{Bytes, Versionstamp}; 2 | use serde::Serialize; 3 | 4 | pub struct DbInfo { 5 | pub doc_count: u64, 6 | pub size_views: u64, 7 | pub size_external: u64, 8 | pub doc_del_count: u64, 9 | } 10 | 11 | impl DbInfo { 12 | pub fn default() -> Self { 13 | Self { 14 | doc_count: 0, 15 | size_views: 0, 16 | size_external: 0, 17 | doc_del_count: 0, 18 | } 19 | } 20 | } 21 | 22 | #[derive(Clone, Serialize)] 23 | pub struct Database { 24 | pub name: String, 25 | #[serde(skip_serializing)] 26 | pub(crate) db_prefix: Vec, 27 | } 28 | 29 | impl Database { 30 | pub fn new(name: Bytes, db_prefix: &[u8]) -> Database { 31 | Database { 32 | name: String::from_utf8_lossy(name.as_ref()).into(), 33 | db_prefix: db_prefix.to_vec(), 34 | } 35 | } 36 | } 37 | 38 | #[derive(Serialize)] 39 | pub struct Rev(String); 40 | 41 | impl From<(i16, Bytes<'_>)> for Rev { 42 | fn from((num, str): (i16, Bytes)) -> Self { 43 | Rev(format!("{}-{}", num, hex::encode(str.as_ref()))) 44 | } 45 | } 46 | 47 | impl Into for Rev { 48 | fn into(self) -> String { 49 | self.0 50 | } 51 | } 52 | 53 | #[derive(Serialize, Clone)] 54 | pub struct Id(String); 55 | 56 | impl From<&[u8]> for Id { 57 | fn from(bin: &[u8]) -> Self { 58 | Id(String::from_utf8_lossy(bin).into()) 59 | } 60 | } 61 | 62 | impl Into for Id { 63 | fn into(self) -> String { 64 | self.0 65 | } 66 | } 67 | 68 | #[derive(Serialize)] 69 | pub struct Seq(String); 70 | 71 | impl From for Seq { 72 | fn from(vs: Versionstamp) -> Self { 73 | Seq(hex::encode(vs.as_bytes())) 74 | } 75 | } 76 | 77 | #[derive(Clone, Serialize)] 78 | pub struct Row { 79 | id: Id, 80 | key: String, 81 | value: String, 82 | } 83 | 84 | impl Row { 85 | pub fn new(raw: S, value: T) -> Self 86 | where 87 | S: Into + Clone, 88 | T: Into, 89 | { 90 | let id = raw.into(); 91 | Row { 92 | key: id.clone().into(), 93 | id, 94 | value: value.into(), 95 | } 96 | } 97 | } 98 | 99 | #[derive(Serialize)] 100 | pub struct ChangeRow { 101 | pub seq: Seq, 102 | pub id: Id, 103 | pub rev: Rev, 104 | pub deleted: bool, 105 | } 106 | 107 | impl ChangeRow { 108 | pub fn new(id: Id, rev: Rev, seq: Seq, deleted: bool) -> Self { 109 | ChangeRow { 110 | seq, 111 | id, 112 | rev, 113 | deleted, 114 | } 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | use foundationdb::tuple::PackError; 2 | use foundationdb::FdbError; 3 | use serde::Serialize; 4 | use std::convert::Infallible; 5 | use std::fmt::Display; 6 | use std::{error, fmt}; 7 | use warp::{http::StatusCode, reject, Rejection, Reply}; 8 | 9 | pub mod constants; 10 | pub mod couch; 11 | mod defs; 12 | pub mod fdb; 13 | pub mod http; 14 | mod util; 15 | 16 | #[derive(Clone, PartialEq, Debug)] 17 | pub struct CouchFdbError { 18 | code: i32, 19 | message: String, 20 | } 21 | 22 | impl Display for CouchFdbError { 23 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 24 | write!( 25 | f, 26 | "FDB Error code: {:?} message: {:?}", 27 | self.code, self.message 28 | ) 29 | } 30 | } 31 | 32 | #[derive(Debug)] 33 | pub enum CouchError { 34 | Missing(String), 35 | FDB(CouchFdbError), 36 | FDBPack(PackError), 37 | } 38 | 39 | impl error::Error for CouchError {} 40 | 41 | impl From for CouchError { 42 | fn from(err: FdbError) -> Self { 43 | let couch_fdb_err = CouchFdbError { 44 | code: err.code(), 45 | message: err.message().to_string(), 46 | }; 47 | CouchError::FDB(couch_fdb_err) 48 | } 49 | } 50 | 51 | impl From for CouchError { 52 | fn from(err: PackError) -> Self { 53 | CouchError::FDBPack(err) 54 | } 55 | } 56 | 57 | impl Display for CouchError { 58 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { 59 | match self { 60 | CouchError::Missing(s) => write!(f, "{:?} is missing or doesn't exist", s), 61 | CouchError::FDB(err) => write!(f, "{:?}", err), 62 | CouchError::FDBPack(err) => err.fmt(f), 63 | } 64 | } 65 | } 66 | 67 | impl warp::reject::Reject for CouchError {} 68 | 69 | impl From for Rejection { 70 | fn from(err: CouchError) -> Self { 71 | reject::custom(err) 72 | } 73 | } 74 | 75 | /// An API error serializable to JSON. 76 | #[derive(Serialize)] 77 | struct ErrorMessage { 78 | error: String, 79 | message: String, 80 | } 81 | 82 | // This function receives a `Rejection` and tries to return a custom 83 | // value, otherwise simply passes the rejection along. 84 | pub async fn handle_rejection(err: Rejection) -> Result { 85 | let code; 86 | let mut error = "unknown".to_string(); 87 | let message; 88 | 89 | if err.is_not_found() { 90 | code = StatusCode::NOT_FOUND; 91 | message = "NOT_FOUND"; 92 | } else if let Some(CouchError::Missing(missing)) = err.find() { 93 | code = StatusCode::NOT_FOUND; 94 | message = missing; 95 | error = "not_found".to_string(); 96 | } else if let Some(CouchError::FDB(err)) = err.find() { 97 | code = StatusCode::NOT_FOUND; 98 | message = err.message.as_ref(); 99 | error = format!("code: {}", err.code); 100 | } else if err.find::().is_some() { 101 | // We can handle a specific error, here METHOD_NOT_ALLOWED, 102 | // and render it however we want 103 | code = StatusCode::METHOD_NOT_ALLOWED; 104 | message = "METHOD_NOT_ALLOWED"; 105 | } else { 106 | // We should have expected this... Just log and say its a 500 107 | eprintln!("unhandled rejection: {:?}", err); 108 | code = StatusCode::INTERNAL_SERVER_ERROR; 109 | message = "UNHANDLED_REJECTION"; 110 | } 111 | 112 | let json = warp::reply::json(&ErrorMessage { 113 | error, 114 | message: message.into(), 115 | }); 116 | 117 | Ok(warp::reply::with_status(json, code)) 118 | } 119 | -------------------------------------------------------------------------------- /src/http.rs: -------------------------------------------------------------------------------- 1 | use crate::couch::*; 2 | use crate::{handle_rejection, CouchError}; 3 | use foundationdb::{Database as FdbDatabase, Transaction}; 4 | use serde_json::json; 5 | use std::convert::Infallible; 6 | use std::sync::Arc; 7 | use warp::{Filter, Reply}; 8 | 9 | type Result = std::result::Result; 10 | 11 | fn with_fdb( 12 | fdb: Arc, 13 | ) -> impl Filter,), Error = Infallible> + Clone { 14 | warp::any().map(move || fdb.clone()) 15 | } 16 | 17 | fn with_couch_directory( 18 | couch_directory: Vec, 19 | ) -> impl Filter,), Error = Infallible> + Clone { 20 | warp::any().map(move || couch_directory.clone()) 21 | } 22 | 23 | pub async fn routes() -> impl Filter + Clone { 24 | let fdb = Arc::new(FdbDatabase::default().unwrap()); 25 | 26 | let trx = fdb.create_trx().unwrap(); 27 | let couch_directory = get_directory(&trx).await.unwrap(); 28 | 29 | let all_dbs_route = warp::get() 30 | .and(warp::path("_all_dbs")) 31 | .and(with_fdb(fdb.clone())) 32 | .and_then(all_dbs_req); 33 | 34 | let db_info_route = warp::get() 35 | .and(warp::path!(String)) 36 | .and(warp::path::end()) 37 | .and(with_fdb(fdb.clone())) 38 | .and(with_couch_directory(couch_directory.clone())) 39 | .and_then(db_info_req); 40 | 41 | let all_docs_route = warp::path!(String / "_all_docs") 42 | .and(warp::get()) 43 | .and(with_fdb(fdb.clone())) 44 | .and(with_couch_directory(couch_directory.clone())) 45 | .and_then(all_docs_req); 46 | 47 | let changes_route = warp::path!(String / "_changes") 48 | .and(warp::get()) 49 | .and(warp::path::end()) 50 | .and(with_fdb(fdb.clone())) 51 | .and(with_couch_directory(couch_directory)) 52 | .and_then(changes_req); 53 | 54 | let default_route = warp::get().and_then(home_req).and(warp::path::end()); 55 | 56 | default_route 57 | .or(all_dbs_route) 58 | .or(all_docs_route) 59 | .or(db_info_route) 60 | .or(changes_route) 61 | .recover(handle_rejection) 62 | } 63 | 64 | pub async fn home_req() -> Result { 65 | let welcome = json!({ 66 | "couchdb": "Welcome", 67 | "version": "4.x", 68 | "vendor": { 69 | "name": "Hack-week", 70 | "version": "0.1" 71 | }, 72 | "features": [ 73 | "fdb" 74 | ], 75 | "features_flags": [] 76 | }); 77 | 78 | Ok(warp::reply::json(&welcome)) 79 | } 80 | 81 | pub async fn all_dbs_req(fdb: Arc) -> Result { 82 | let trx = create_trx(fdb)?; 83 | let dbs: Vec = all_dbs(&trx) 84 | .await 85 | .unwrap() 86 | .iter() 87 | .map(|db| db.name.clone()) 88 | .collect(); 89 | Ok(warp::reply::json(&dbs)) 90 | } 91 | 92 | pub async fn db_info_req( 93 | name: String, 94 | fdb: Arc, 95 | couch_directory: Vec, 96 | ) -> Result { 97 | // let db_info = DatabaseInfo::new(fdb, couch_directory.as_slice(), name).await; 98 | let trx = create_trx(fdb)?; 99 | let db = get_db(&trx, couch_directory.as_slice(), name.as_str()).await?; 100 | 101 | let info = db_info(&trx, &db).await.unwrap(); 102 | 103 | let resp = json!({ 104 | "cluster": { 105 | "n": 0, 106 | "q": 0, 107 | "r": 0, 108 | "w": 0 109 | }, 110 | "compact_running": false, 111 | "data_size": 0, 112 | "db_name": name, 113 | "disk_format_version": 0, 114 | "disk_size": 0, 115 | "instance_start_time": "0", 116 | "purge_seq": 0, 117 | "update_seq": "000004b4764f07a400000000", 118 | "doc_del_count": info.doc_del_count, 119 | "doc_count": info.doc_count, 120 | "sizes": { 121 | "external": info.size_external, 122 | "views": info.size_views 123 | } 124 | }); 125 | 126 | Ok(warp::reply::json(&resp)) 127 | } 128 | 129 | pub async fn all_docs_req( 130 | name: String, 131 | fdb: Arc, 132 | couch_directory: Vec, 133 | ) -> Result { 134 | let trx = create_trx(fdb)?; 135 | let db = get_db(&trx, couch_directory.as_slice(), name.as_str()).await?; 136 | let docs = all_docs(&trx, &db).await?; 137 | 138 | let resp = json!({ 139 | "total_rows": docs.len(), 140 | "off_set": "null", 141 | "rows": docs 142 | }); 143 | 144 | Ok(warp::reply::json(&resp)) 145 | } 146 | 147 | pub async fn changes_req( 148 | name: String, 149 | fdb: Arc, 150 | couch_directory: Vec, 151 | ) -> Result { 152 | let trx = create_trx(fdb)?; 153 | let db = get_db(&trx, couch_directory.as_slice(), name.as_str()).await?; 154 | let results = changes(&trx, &db).await?; 155 | 156 | let last_seq = &results.last().unwrap().seq; 157 | 158 | let resp = json!({ 159 | "results": results, 160 | "last_seq": last_seq, 161 | "pending": "null" 162 | }); 163 | 164 | Ok(warp::reply::json(&resp)) 165 | } 166 | 167 | // A wrapper around creating a transaction so that we return a CouchError instead of a FdbError 168 | fn create_trx(fdb: Arc) -> std::result::Result { 169 | match fdb.create_trx() { 170 | Ok(trx) => Ok(trx), 171 | Err(error) => Err(CouchError::from(error)), 172 | } 173 | } 174 | -------------------------------------------------------------------------------- /src/couch.rs: -------------------------------------------------------------------------------- 1 | use crate::constants::{ALL_DBS, COUCHDB_PREFIX, DB_ALL_DOCS, DB_CHANGES, DB_STATS}; 2 | use crate::fdb; 3 | use crate::fdb::unpack_with_prefix; 4 | use crate::CouchError; 5 | 6 | use crate::defs::{ChangeRow, Database, DbInfo, Id, Rev, Row}; 7 | use crate::util::bin_to_int; 8 | use foundationdb::tuple::{unpack, Bytes, Element, Versionstamp}; 9 | use foundationdb::{RangeOption, Transaction}; 10 | 11 | pub type CouchResult = Result; 12 | 13 | pub async fn get_directory(trx: &Transaction) -> CouchResult> { 14 | let res = trx.get(COUCHDB_PREFIX, false).await?; 15 | 16 | match res { 17 | Some(val) => Ok(val.to_vec()), 18 | None => Err(CouchError::Missing("couch_directory".to_string())), 19 | } 20 | } 21 | 22 | pub async fn all_dbs(trx: &Transaction) -> CouchResult> { 23 | let couch_directory = get_directory(&trx).await?; 24 | 25 | let (start_key, end_key) = fdb::pack_key_range(&ALL_DBS, couch_directory.as_slice()); 26 | 27 | let opts = RangeOption { 28 | mode: foundationdb::options::StreamingMode::WantAll, 29 | ..RangeOption::from((start_key, end_key)) 30 | }; 31 | let iteration: usize = 1; 32 | let range = trx.get_range(&opts, iteration, false).await?; 33 | 34 | let dbs = range 35 | .iter() 36 | .map(|kv| { 37 | let (_, _, db_bytes): (Element, Element, Bytes) = unpack(kv.key())?; 38 | Ok(Database::new(db_bytes, kv.value())) 39 | }) 40 | .collect::>>()?; 41 | 42 | Ok(dbs) 43 | } 44 | 45 | pub async fn get_db( 46 | trx: &Transaction, 47 | couch_directory: &[u8], 48 | name: &str, 49 | ) -> CouchResult { 50 | let key = fdb::pack_with_prefix(&(ALL_DBS, Bytes::from(name)), couch_directory); 51 | let result = trx.get(key.as_slice(), false).await?; 52 | 53 | let value = result.ok_or_else(|| CouchError::Missing(name.to_string()))?; 54 | 55 | let db = Database::new(Bytes::from(name), value.as_ref()); 56 | Ok(db) 57 | } 58 | 59 | pub async fn db_info(trx: &Transaction, db: &Database) -> CouchResult { 60 | let (start_key, end_key) = fdb::pack_key_range(&DB_STATS, db.db_prefix.as_slice()); 61 | let opts = RangeOption { 62 | mode: foundationdb::options::StreamingMode::WantAll, 63 | ..RangeOption::from((start_key, end_key)) 64 | }; 65 | 66 | let iteration: usize = 1; 67 | let range = trx.get_range(&opts, iteration, false).await?; 68 | range.iter().try_fold(DbInfo::default(), |db_info, kv| { 69 | let tup: Vec = unpack_with_prefix(&kv.key(), db.db_prefix.as_slice())?; 70 | let stat = tup[1].as_bytes().unwrap().as_ref(); 71 | 72 | let size_stat = if tup.len() == 3 { 73 | tup[2].as_bytes().unwrap().as_ref() 74 | } else { 75 | b"none" 76 | }; 77 | 78 | // should maybe implement a from trait here instead 79 | let val = bin_to_int(kv.value()); 80 | 81 | let acc = match (stat, size_stat) { 82 | (b"doc_count", _) => DbInfo { 83 | doc_count: val, 84 | ..db_info 85 | }, 86 | (b"doc_del_count", _) => DbInfo { 87 | doc_del_count: val, 88 | ..db_info 89 | }, 90 | (b"sizes", b"external") => DbInfo { 91 | size_external: val, 92 | ..db_info 93 | }, 94 | (b"sizes", b"views") => DbInfo { 95 | size_views: val, 96 | ..db_info 97 | }, 98 | _ => { 99 | println!("unknown reached"); 100 | db_info 101 | } 102 | }; 103 | Ok(acc) 104 | }) 105 | } 106 | 107 | type EncodedRev<'a> = (i16, Bytes<'a>); 108 | type EncodedChangeValue<'a> = (Bytes<'a>, bool, EncodedRev<'a>); 109 | 110 | pub async fn all_docs(trx: &Transaction, db: &Database) -> CouchResult> { 111 | let (start_key, end_key) = fdb::pack_key_range(&DB_ALL_DOCS, db.db_prefix.as_slice()); 112 | let opts = RangeOption { 113 | mode: foundationdb::options::StreamingMode::WantAll, 114 | ..RangeOption::from((start_key, end_key)) 115 | }; 116 | 117 | let iter: usize = 1; 118 | let range = trx.get_range(&opts, iter, false).await?; 119 | range 120 | .iter() 121 | .map(|kv| { 122 | let (_, id_bytes): (i64, Vec) = 123 | unpack_with_prefix(&kv.key(), db.db_prefix.as_slice())?; 124 | 125 | let id: Id = id_bytes.as_slice().into(); 126 | 127 | let rev_tuple: EncodedRev = unpack(kv.value())?; 128 | let rev: Rev = rev_tuple.into(); 129 | 130 | Ok(Row::new(id, rev)) 131 | }) 132 | .collect::>>() 133 | } 134 | 135 | pub async fn changes(trx: &Transaction, db: &Database) -> CouchResult> { 136 | let (start_key, end_key) = fdb::pack_key_range(&DB_CHANGES, db.db_prefix.as_slice()); 137 | 138 | let opts = RangeOption { 139 | mode: foundationdb::options::StreamingMode::WantAll, 140 | limit: Some(3), 141 | ..RangeOption::from((start_key, end_key)) 142 | }; 143 | 144 | let iteration: usize = 1; 145 | let range = trx.get_range(&opts, iteration, false).await?; 146 | range 147 | .iter() 148 | .map(|kv| { 149 | let (_, vs): (Element, Versionstamp) = 150 | unpack_with_prefix(&kv.key(), db.db_prefix.as_slice())?; 151 | let (id_bytes, deleted, encoded_rev): EncodedChangeValue = unpack(kv.value())?; 152 | 153 | let doc_id: Id = id_bytes.as_ref().into(); 154 | let rev: Rev = encoded_rev.into(); 155 | 156 | Ok(ChangeRow::new(doc_id, rev, vs.into(), deleted)) 157 | }) 158 | .collect::>>() 159 | } 160 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "addr2line" 5 | version = "0.12.1" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | checksum = "a49806b9dadc843c61e7c97e72490ad7f7220ae249012fbda9ad0609457c0543" 8 | dependencies = [ 9 | "gimli", 10 | ] 11 | 12 | [[package]] 13 | name = "aho-corasick" 14 | version = "0.7.10" 15 | source = "registry+https://github.com/rust-lang/crates.io-index" 16 | checksum = "8716408b8bc624ed7f65d223ddb9ac2d044c0547b6fa4b0d554f3a9540496ada" 17 | dependencies = [ 18 | "memchr", 19 | ] 20 | 21 | [[package]] 22 | name = "ansi_term" 23 | version = "0.11.0" 24 | source = "registry+https://github.com/rust-lang/crates.io-index" 25 | checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" 26 | dependencies = [ 27 | "winapi 0.3.8", 28 | ] 29 | 30 | [[package]] 31 | name = "arc-swap" 32 | version = "0.4.6" 33 | source = "registry+https://github.com/rust-lang/crates.io-index" 34 | checksum = "b585a98a234c46fc563103e9278c9391fde1f4e6850334da895d27edb9580f62" 35 | 36 | [[package]] 37 | name = "atty" 38 | version = "0.2.14" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 41 | dependencies = [ 42 | "hermit-abi", 43 | "libc", 44 | "winapi 0.3.8", 45 | ] 46 | 47 | [[package]] 48 | name = "autocfg" 49 | version = "0.1.7" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | checksum = "1d49d90015b3c36167a20fe2810c5cd875ad504b39cff3d4eae7977e6b7c1cb2" 52 | 53 | [[package]] 54 | name = "autocfg" 55 | version = "1.0.0" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | checksum = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" 58 | 59 | [[package]] 60 | name = "backtrace" 61 | version = "0.3.48" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "0df2f85c8a2abbe3b7d7e748052fdd9b76a0458fdeb16ad4223f5eca78c7c130" 64 | dependencies = [ 65 | "addr2line", 66 | "cfg-if", 67 | "libc", 68 | "object", 69 | "rustc-demangle", 70 | ] 71 | 72 | [[package]] 73 | name = "base64" 74 | version = "0.11.0" 75 | source = "registry+https://github.com/rust-lang/crates.io-index" 76 | checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" 77 | 78 | [[package]] 79 | name = "base64" 80 | version = "0.12.1" 81 | source = "registry+https://github.com/rust-lang/crates.io-index" 82 | checksum = "53d1ccbaf7d9ec9537465a97bf19edc1a4e158ecb49fc16178202238c569cc42" 83 | 84 | [[package]] 85 | name = "bindgen" 86 | version = "0.53.3" 87 | source = "registry+https://github.com/rust-lang/crates.io-index" 88 | checksum = "c72a978d268b1d70b0e963217e60fdabd9523a941457a6c42a7315d15c7e89e5" 89 | dependencies = [ 90 | "bitflags", 91 | "cexpr", 92 | "cfg-if", 93 | "clang-sys", 94 | "clap", 95 | "env_logger", 96 | "lazy_static", 97 | "lazycell", 98 | "log 0.4.8", 99 | "peeking_take_while", 100 | "proc-macro2", 101 | "quote", 102 | "regex", 103 | "rustc-hash", 104 | "shlex", 105 | "which", 106 | ] 107 | 108 | [[package]] 109 | name = "bitflags" 110 | version = "1.2.1" 111 | source = "registry+https://github.com/rust-lang/crates.io-index" 112 | checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 113 | 114 | [[package]] 115 | name = "block-buffer" 116 | version = "0.7.3" 117 | source = "registry+https://github.com/rust-lang/crates.io-index" 118 | checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b" 119 | dependencies = [ 120 | "block-padding", 121 | "byte-tools", 122 | "byteorder", 123 | "generic-array", 124 | ] 125 | 126 | [[package]] 127 | name = "block-padding" 128 | version = "0.1.5" 129 | source = "registry+https://github.com/rust-lang/crates.io-index" 130 | checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5" 131 | dependencies = [ 132 | "byte-tools", 133 | ] 134 | 135 | [[package]] 136 | name = "buf_redux" 137 | version = "0.8.4" 138 | source = "registry+https://github.com/rust-lang/crates.io-index" 139 | checksum = "b953a6887648bb07a535631f2bc00fbdb2a2216f135552cb3f534ed136b9c07f" 140 | dependencies = [ 141 | "memchr", 142 | "safemem", 143 | ] 144 | 145 | [[package]] 146 | name = "byte-tools" 147 | version = "0.3.1" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7" 150 | 151 | [[package]] 152 | name = "byteorder" 153 | version = "1.3.4" 154 | source = "registry+https://github.com/rust-lang/crates.io-index" 155 | checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" 156 | 157 | [[package]] 158 | name = "bytes" 159 | version = "0.5.4" 160 | source = "registry+https://github.com/rust-lang/crates.io-index" 161 | checksum = "130aac562c0dd69c56b3b1cc8ffd2e17be31d0b6c25b61c96b76231aa23e39e1" 162 | 163 | [[package]] 164 | name = "cc" 165 | version = "1.0.54" 166 | source = "registry+https://github.com/rust-lang/crates.io-index" 167 | checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311" 168 | 169 | [[package]] 170 | name = "cexpr" 171 | version = "0.4.0" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "f4aedb84272dbe89af497cf81375129abda4fc0a9e7c5d317498c15cc30c0d27" 174 | dependencies = [ 175 | "nom", 176 | ] 177 | 178 | [[package]] 179 | name = "cfg-if" 180 | version = "0.1.10" 181 | source = "registry+https://github.com/rust-lang/crates.io-index" 182 | checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 183 | 184 | [[package]] 185 | name = "clang-sys" 186 | version = "0.29.3" 187 | source = "registry+https://github.com/rust-lang/crates.io-index" 188 | checksum = "fe6837df1d5cba2397b835c8530f51723267e16abbf83892e9e5af4f0e5dd10a" 189 | dependencies = [ 190 | "glob", 191 | "libc", 192 | "libloading", 193 | ] 194 | 195 | [[package]] 196 | name = "clap" 197 | version = "2.33.1" 198 | source = "registry+https://github.com/rust-lang/crates.io-index" 199 | checksum = "bdfa80d47f954d53a35a64987ca1422f495b8d6483c0fe9f7117b36c2a792129" 200 | dependencies = [ 201 | "ansi_term", 202 | "atty", 203 | "bitflags", 204 | "strsim", 205 | "textwrap", 206 | "unicode-width", 207 | "vec_map", 208 | ] 209 | 210 | [[package]] 211 | name = "cloudabi" 212 | version = "0.0.3" 213 | source = "registry+https://github.com/rust-lang/crates.io-index" 214 | checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" 215 | dependencies = [ 216 | "bitflags", 217 | ] 218 | 219 | [[package]] 220 | name = "couch_hack_week" 221 | version = "0.1.0" 222 | dependencies = [ 223 | "byteorder", 224 | "foundationdb", 225 | "futures", 226 | "hex", 227 | "serde", 228 | "serde_derive", 229 | "serde_json", 230 | "tokio", 231 | "warp", 232 | ] 233 | 234 | [[package]] 235 | name = "digest" 236 | version = "0.8.1" 237 | source = "registry+https://github.com/rust-lang/crates.io-index" 238 | checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5" 239 | dependencies = [ 240 | "generic-array", 241 | ] 242 | 243 | [[package]] 244 | name = "dtoa" 245 | version = "0.4.5" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | checksum = "4358a9e11b9a09cf52383b451b49a169e8d797b68aa02301ff586d70d9661ea3" 248 | 249 | [[package]] 250 | name = "env_logger" 251 | version = "0.7.1" 252 | source = "registry+https://github.com/rust-lang/crates.io-index" 253 | checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" 254 | dependencies = [ 255 | "atty", 256 | "humantime", 257 | "log 0.4.8", 258 | "regex", 259 | "termcolor", 260 | ] 261 | 262 | [[package]] 263 | name = "failure" 264 | version = "0.1.8" 265 | source = "registry+https://github.com/rust-lang/crates.io-index" 266 | checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" 267 | dependencies = [ 268 | "backtrace", 269 | "failure_derive", 270 | ] 271 | 272 | [[package]] 273 | name = "failure_derive" 274 | version = "0.1.8" 275 | source = "registry+https://github.com/rust-lang/crates.io-index" 276 | checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" 277 | dependencies = [ 278 | "proc-macro2", 279 | "quote", 280 | "syn", 281 | "synstructure", 282 | ] 283 | 284 | [[package]] 285 | name = "fake-simd" 286 | version = "0.1.2" 287 | source = "registry+https://github.com/rust-lang/crates.io-index" 288 | checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed" 289 | 290 | [[package]] 291 | name = "fnv" 292 | version = "1.0.7" 293 | source = "registry+https://github.com/rust-lang/crates.io-index" 294 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 295 | 296 | [[package]] 297 | name = "foundationdb" 298 | version = "0.5.0" 299 | source = "git+https://github.com/Clikengo/foundationdb-rs.git#a9237b06f6ad3020b1c7fcd539bb56b8e7ecf810" 300 | dependencies = [ 301 | "foundationdb-gen", 302 | "foundationdb-sys", 303 | "futures", 304 | "memchr", 305 | "rand 0.7.3", 306 | "static_assertions", 307 | "uuid", 308 | ] 309 | 310 | [[package]] 311 | name = "foundationdb-gen" 312 | version = "0.5.0" 313 | source = "git+https://github.com/Clikengo/foundationdb-rs.git#a9237b06f6ad3020b1c7fcd539bb56b8e7ecf810" 314 | dependencies = [ 315 | "failure", 316 | "xml-rs", 317 | ] 318 | 319 | [[package]] 320 | name = "foundationdb-sys" 321 | version = "0.5.0" 322 | source = "git+https://github.com/Clikengo/foundationdb-rs.git#a9237b06f6ad3020b1c7fcd539bb56b8e7ecf810" 323 | dependencies = [ 324 | "bindgen", 325 | ] 326 | 327 | [[package]] 328 | name = "fuchsia-cprng" 329 | version = "0.1.1" 330 | source = "registry+https://github.com/rust-lang/crates.io-index" 331 | checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" 332 | 333 | [[package]] 334 | name = "fuchsia-zircon" 335 | version = "0.3.3" 336 | source = "registry+https://github.com/rust-lang/crates.io-index" 337 | checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 338 | dependencies = [ 339 | "bitflags", 340 | "fuchsia-zircon-sys", 341 | ] 342 | 343 | [[package]] 344 | name = "fuchsia-zircon-sys" 345 | version = "0.3.3" 346 | source = "registry+https://github.com/rust-lang/crates.io-index" 347 | checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 348 | 349 | [[package]] 350 | name = "futures" 351 | version = "0.3.5" 352 | source = "registry+https://github.com/rust-lang/crates.io-index" 353 | checksum = "1e05b85ec287aac0dc34db7d4a569323df697f9c55b99b15d6b4ef8cde49f613" 354 | dependencies = [ 355 | "futures-channel", 356 | "futures-core", 357 | "futures-executor", 358 | "futures-io", 359 | "futures-sink", 360 | "futures-task", 361 | "futures-util", 362 | ] 363 | 364 | [[package]] 365 | name = "futures-channel" 366 | version = "0.3.5" 367 | source = "registry+https://github.com/rust-lang/crates.io-index" 368 | checksum = "f366ad74c28cca6ba456d95e6422883cfb4b252a83bed929c83abfdbbf2967d5" 369 | dependencies = [ 370 | "futures-core", 371 | "futures-sink", 372 | ] 373 | 374 | [[package]] 375 | name = "futures-core" 376 | version = "0.3.5" 377 | source = "registry+https://github.com/rust-lang/crates.io-index" 378 | checksum = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399" 379 | 380 | [[package]] 381 | name = "futures-executor" 382 | version = "0.3.5" 383 | source = "registry+https://github.com/rust-lang/crates.io-index" 384 | checksum = "10d6bb888be1153d3abeb9006b11b02cf5e9b209fda28693c31ae1e4e012e314" 385 | dependencies = [ 386 | "futures-core", 387 | "futures-task", 388 | "futures-util", 389 | ] 390 | 391 | [[package]] 392 | name = "futures-io" 393 | version = "0.3.5" 394 | source = "registry+https://github.com/rust-lang/crates.io-index" 395 | checksum = "de27142b013a8e869c14957e6d2edeef89e97c289e69d042ee3a49acd8b51789" 396 | 397 | [[package]] 398 | name = "futures-macro" 399 | version = "0.3.5" 400 | source = "registry+https://github.com/rust-lang/crates.io-index" 401 | checksum = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39" 402 | dependencies = [ 403 | "proc-macro-hack", 404 | "proc-macro2", 405 | "quote", 406 | "syn", 407 | ] 408 | 409 | [[package]] 410 | name = "futures-sink" 411 | version = "0.3.5" 412 | source = "registry+https://github.com/rust-lang/crates.io-index" 413 | checksum = "3f2032893cb734c7a05d85ce0cc8b8c4075278e93b24b66f9de99d6eb0fa8acc" 414 | 415 | [[package]] 416 | name = "futures-task" 417 | version = "0.3.5" 418 | source = "registry+https://github.com/rust-lang/crates.io-index" 419 | checksum = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626" 420 | dependencies = [ 421 | "once_cell", 422 | ] 423 | 424 | [[package]] 425 | name = "futures-util" 426 | version = "0.3.5" 427 | source = "registry+https://github.com/rust-lang/crates.io-index" 428 | checksum = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6" 429 | dependencies = [ 430 | "futures-channel", 431 | "futures-core", 432 | "futures-io", 433 | "futures-macro", 434 | "futures-sink", 435 | "futures-task", 436 | "memchr", 437 | "pin-project", 438 | "pin-utils", 439 | "proc-macro-hack", 440 | "proc-macro-nested", 441 | "slab", 442 | ] 443 | 444 | [[package]] 445 | name = "generic-array" 446 | version = "0.12.3" 447 | source = "registry+https://github.com/rust-lang/crates.io-index" 448 | checksum = "c68f0274ae0e023facc3c97b2e00f076be70e254bc851d972503b328db79b2ec" 449 | dependencies = [ 450 | "typenum", 451 | ] 452 | 453 | [[package]] 454 | name = "getrandom" 455 | version = "0.1.14" 456 | source = "registry+https://github.com/rust-lang/crates.io-index" 457 | checksum = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb" 458 | dependencies = [ 459 | "cfg-if", 460 | "libc", 461 | "wasi", 462 | ] 463 | 464 | [[package]] 465 | name = "gimli" 466 | version = "0.21.0" 467 | source = "registry+https://github.com/rust-lang/crates.io-index" 468 | checksum = "bcc8e0c9bce37868955864dbecd2b1ab2bdf967e6f28066d65aaac620444b65c" 469 | 470 | [[package]] 471 | name = "glob" 472 | version = "0.3.0" 473 | source = "registry+https://github.com/rust-lang/crates.io-index" 474 | checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" 475 | 476 | [[package]] 477 | name = "h2" 478 | version = "0.2.5" 479 | source = "registry+https://github.com/rust-lang/crates.io-index" 480 | checksum = "79b7246d7e4b979c03fa093da39cfb3617a96bbeee6310af63991668d7e843ff" 481 | dependencies = [ 482 | "bytes", 483 | "fnv", 484 | "futures-core", 485 | "futures-sink", 486 | "futures-util", 487 | "http", 488 | "indexmap", 489 | "log 0.4.8", 490 | "slab", 491 | "tokio", 492 | "tokio-util", 493 | ] 494 | 495 | [[package]] 496 | name = "headers" 497 | version = "0.3.2" 498 | source = "registry+https://github.com/rust-lang/crates.io-index" 499 | checksum = "ed18eb2459bf1a09ad2d6b1547840c3e5e62882fa09b9a6a20b1de8e3228848f" 500 | dependencies = [ 501 | "base64 0.12.1", 502 | "bitflags", 503 | "bytes", 504 | "headers-core", 505 | "http", 506 | "mime 0.3.16", 507 | "sha-1", 508 | "time", 509 | ] 510 | 511 | [[package]] 512 | name = "headers-core" 513 | version = "0.2.0" 514 | source = "registry+https://github.com/rust-lang/crates.io-index" 515 | checksum = "e7f66481bfee273957b1f20485a4ff3362987f85b2c236580d81b4eb7a326429" 516 | dependencies = [ 517 | "http", 518 | ] 519 | 520 | [[package]] 521 | name = "hermit-abi" 522 | version = "0.1.13" 523 | source = "registry+https://github.com/rust-lang/crates.io-index" 524 | checksum = "91780f809e750b0a89f5544be56617ff6b1227ee485bcb06ebe10cdf89bd3b71" 525 | dependencies = [ 526 | "libc", 527 | ] 528 | 529 | [[package]] 530 | name = "hex" 531 | version = "0.4.2" 532 | source = "registry+https://github.com/rust-lang/crates.io-index" 533 | checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35" 534 | 535 | [[package]] 536 | name = "http" 537 | version = "0.2.1" 538 | source = "registry+https://github.com/rust-lang/crates.io-index" 539 | checksum = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9" 540 | dependencies = [ 541 | "bytes", 542 | "fnv", 543 | "itoa", 544 | ] 545 | 546 | [[package]] 547 | name = "http-body" 548 | version = "0.3.1" 549 | source = "registry+https://github.com/rust-lang/crates.io-index" 550 | checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" 551 | dependencies = [ 552 | "bytes", 553 | "http", 554 | ] 555 | 556 | [[package]] 557 | name = "httparse" 558 | version = "1.3.4" 559 | source = "registry+https://github.com/rust-lang/crates.io-index" 560 | checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 561 | 562 | [[package]] 563 | name = "humantime" 564 | version = "1.3.0" 565 | source = "registry+https://github.com/rust-lang/crates.io-index" 566 | checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 567 | dependencies = [ 568 | "quick-error", 569 | ] 570 | 571 | [[package]] 572 | name = "hyper" 573 | version = "0.13.5" 574 | source = "registry+https://github.com/rust-lang/crates.io-index" 575 | checksum = "96816e1d921eca64d208a85aab4f7798455a8e34229ee5a88c935bdee1b78b14" 576 | dependencies = [ 577 | "bytes", 578 | "futures-channel", 579 | "futures-core", 580 | "futures-util", 581 | "h2", 582 | "http", 583 | "http-body", 584 | "httparse", 585 | "itoa", 586 | "log 0.4.8", 587 | "net2", 588 | "pin-project", 589 | "time", 590 | "tokio", 591 | "tower-service", 592 | "want", 593 | ] 594 | 595 | [[package]] 596 | name = "idna" 597 | version = "0.2.0" 598 | source = "registry+https://github.com/rust-lang/crates.io-index" 599 | checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9" 600 | dependencies = [ 601 | "matches", 602 | "unicode-bidi", 603 | "unicode-normalization", 604 | ] 605 | 606 | [[package]] 607 | name = "indexmap" 608 | version = "1.3.2" 609 | source = "registry+https://github.com/rust-lang/crates.io-index" 610 | checksum = "076f042c5b7b98f31d205f1249267e12a6518c1481e9dae9764af19b707d2292" 611 | dependencies = [ 612 | "autocfg 1.0.0", 613 | ] 614 | 615 | [[package]] 616 | name = "input_buffer" 617 | version = "0.3.1" 618 | source = "registry+https://github.com/rust-lang/crates.io-index" 619 | checksum = "19a8a95243d5a0398cae618ec29477c6e3cb631152be5c19481f80bc71559754" 620 | dependencies = [ 621 | "bytes", 622 | ] 623 | 624 | [[package]] 625 | name = "iovec" 626 | version = "0.1.4" 627 | source = "registry+https://github.com/rust-lang/crates.io-index" 628 | checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" 629 | dependencies = [ 630 | "libc", 631 | ] 632 | 633 | [[package]] 634 | name = "itoa" 635 | version = "0.4.5" 636 | source = "registry+https://github.com/rust-lang/crates.io-index" 637 | checksum = "b8b7a7c0c47db5545ed3fef7468ee7bb5b74691498139e4b3f6a20685dc6dd8e" 638 | 639 | [[package]] 640 | name = "kernel32-sys" 641 | version = "0.2.2" 642 | source = "registry+https://github.com/rust-lang/crates.io-index" 643 | checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 644 | dependencies = [ 645 | "winapi 0.2.8", 646 | "winapi-build", 647 | ] 648 | 649 | [[package]] 650 | name = "lazy_static" 651 | version = "1.4.0" 652 | source = "registry+https://github.com/rust-lang/crates.io-index" 653 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 654 | 655 | [[package]] 656 | name = "lazycell" 657 | version = "1.2.1" 658 | source = "registry+https://github.com/rust-lang/crates.io-index" 659 | checksum = "b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f" 660 | 661 | [[package]] 662 | name = "libc" 663 | version = "0.2.70" 664 | source = "registry+https://github.com/rust-lang/crates.io-index" 665 | checksum = "3baa92041a6fec78c687fa0cc2b3fae8884f743d672cf551bed1d6dac6988d0f" 666 | 667 | [[package]] 668 | name = "libloading" 669 | version = "0.5.2" 670 | source = "registry+https://github.com/rust-lang/crates.io-index" 671 | checksum = "f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753" 672 | dependencies = [ 673 | "cc", 674 | "winapi 0.3.8", 675 | ] 676 | 677 | [[package]] 678 | name = "log" 679 | version = "0.3.9" 680 | source = "registry+https://github.com/rust-lang/crates.io-index" 681 | checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" 682 | dependencies = [ 683 | "log 0.4.8", 684 | ] 685 | 686 | [[package]] 687 | name = "log" 688 | version = "0.4.8" 689 | source = "registry+https://github.com/rust-lang/crates.io-index" 690 | checksum = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 691 | dependencies = [ 692 | "cfg-if", 693 | ] 694 | 695 | [[package]] 696 | name = "matches" 697 | version = "0.1.8" 698 | source = "registry+https://github.com/rust-lang/crates.io-index" 699 | checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" 700 | 701 | [[package]] 702 | name = "memchr" 703 | version = "2.3.3" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" 706 | 707 | [[package]] 708 | name = "mime" 709 | version = "0.2.6" 710 | source = "registry+https://github.com/rust-lang/crates.io-index" 711 | checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0" 712 | dependencies = [ 713 | "log 0.3.9", 714 | ] 715 | 716 | [[package]] 717 | name = "mime" 718 | version = "0.3.16" 719 | source = "registry+https://github.com/rust-lang/crates.io-index" 720 | checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 721 | 722 | [[package]] 723 | name = "mime_guess" 724 | version = "1.8.8" 725 | source = "registry+https://github.com/rust-lang/crates.io-index" 726 | checksum = "216929a5ee4dd316b1702eedf5e74548c123d370f47841ceaac38ca154690ca3" 727 | dependencies = [ 728 | "mime 0.2.6", 729 | "phf", 730 | "phf_codegen", 731 | "unicase 1.4.2", 732 | ] 733 | 734 | [[package]] 735 | name = "mime_guess" 736 | version = "2.0.3" 737 | source = "registry+https://github.com/rust-lang/crates.io-index" 738 | checksum = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212" 739 | dependencies = [ 740 | "mime 0.3.16", 741 | "unicase 2.6.0", 742 | ] 743 | 744 | [[package]] 745 | name = "mio" 746 | version = "0.6.22" 747 | source = "registry+https://github.com/rust-lang/crates.io-index" 748 | checksum = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430" 749 | dependencies = [ 750 | "cfg-if", 751 | "fuchsia-zircon", 752 | "fuchsia-zircon-sys", 753 | "iovec", 754 | "kernel32-sys", 755 | "libc", 756 | "log 0.4.8", 757 | "miow 0.2.1", 758 | "net2", 759 | "slab", 760 | "winapi 0.2.8", 761 | ] 762 | 763 | [[package]] 764 | name = "mio-named-pipes" 765 | version = "0.1.6" 766 | source = "registry+https://github.com/rust-lang/crates.io-index" 767 | checksum = "f5e374eff525ce1c5b7687c4cef63943e7686524a387933ad27ca7ec43779cb3" 768 | dependencies = [ 769 | "log 0.4.8", 770 | "mio", 771 | "miow 0.3.4", 772 | "winapi 0.3.8", 773 | ] 774 | 775 | [[package]] 776 | name = "mio-uds" 777 | version = "0.6.8" 778 | source = "registry+https://github.com/rust-lang/crates.io-index" 779 | checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" 780 | dependencies = [ 781 | "iovec", 782 | "libc", 783 | "mio", 784 | ] 785 | 786 | [[package]] 787 | name = "miow" 788 | version = "0.2.1" 789 | source = "registry+https://github.com/rust-lang/crates.io-index" 790 | checksum = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 791 | dependencies = [ 792 | "kernel32-sys", 793 | "net2", 794 | "winapi 0.2.8", 795 | "ws2_32-sys", 796 | ] 797 | 798 | [[package]] 799 | name = "miow" 800 | version = "0.3.4" 801 | source = "registry+https://github.com/rust-lang/crates.io-index" 802 | checksum = "22dfdd1d51b2639a5abd17ed07005c3af05fb7a2a3b1a1d0d7af1000a520c1c7" 803 | dependencies = [ 804 | "socket2", 805 | "winapi 0.3.8", 806 | ] 807 | 808 | [[package]] 809 | name = "multipart" 810 | version = "0.16.1" 811 | source = "registry+https://github.com/rust-lang/crates.io-index" 812 | checksum = "136eed74cadb9edd2651ffba732b19a450316b680e4f48d6c79e905799e19d01" 813 | dependencies = [ 814 | "buf_redux", 815 | "httparse", 816 | "log 0.4.8", 817 | "mime 0.2.6", 818 | "mime_guess 1.8.8", 819 | "quick-error", 820 | "rand 0.6.5", 821 | "safemem", 822 | "tempfile", 823 | "twoway", 824 | ] 825 | 826 | [[package]] 827 | name = "net2" 828 | version = "0.2.34" 829 | source = "registry+https://github.com/rust-lang/crates.io-index" 830 | checksum = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7" 831 | dependencies = [ 832 | "cfg-if", 833 | "libc", 834 | "winapi 0.3.8", 835 | ] 836 | 837 | [[package]] 838 | name = "nom" 839 | version = "5.1.1" 840 | source = "registry+https://github.com/rust-lang/crates.io-index" 841 | checksum = "0b471253da97532da4b61552249c521e01e736071f71c1a4f7ebbfbf0a06aad6" 842 | dependencies = [ 843 | "memchr", 844 | "version_check 0.9.2", 845 | ] 846 | 847 | [[package]] 848 | name = "num_cpus" 849 | version = "1.13.0" 850 | source = "registry+https://github.com/rust-lang/crates.io-index" 851 | checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" 852 | dependencies = [ 853 | "hermit-abi", 854 | "libc", 855 | ] 856 | 857 | [[package]] 858 | name = "object" 859 | version = "0.19.0" 860 | source = "registry+https://github.com/rust-lang/crates.io-index" 861 | checksum = "9cbca9424c482ee628fa549d9c812e2cd22f1180b9222c9200fdfa6eb31aecb2" 862 | 863 | [[package]] 864 | name = "once_cell" 865 | version = "1.4.0" 866 | source = "registry+https://github.com/rust-lang/crates.io-index" 867 | checksum = "0b631f7e854af39a1739f401cf34a8a013dfe09eac4fa4dba91e9768bd28168d" 868 | 869 | [[package]] 870 | name = "opaque-debug" 871 | version = "0.2.3" 872 | source = "registry+https://github.com/rust-lang/crates.io-index" 873 | checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c" 874 | 875 | [[package]] 876 | name = "peeking_take_while" 877 | version = "0.1.2" 878 | source = "registry+https://github.com/rust-lang/crates.io-index" 879 | checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" 880 | 881 | [[package]] 882 | name = "percent-encoding" 883 | version = "2.1.0" 884 | source = "registry+https://github.com/rust-lang/crates.io-index" 885 | checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" 886 | 887 | [[package]] 888 | name = "phf" 889 | version = "0.7.24" 890 | source = "registry+https://github.com/rust-lang/crates.io-index" 891 | checksum = "b3da44b85f8e8dfaec21adae67f95d93244b2ecf6ad2a692320598dcc8e6dd18" 892 | dependencies = [ 893 | "phf_shared", 894 | ] 895 | 896 | [[package]] 897 | name = "phf_codegen" 898 | version = "0.7.24" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | checksum = "b03e85129e324ad4166b06b2c7491ae27fe3ec353af72e72cd1654c7225d517e" 901 | dependencies = [ 902 | "phf_generator", 903 | "phf_shared", 904 | ] 905 | 906 | [[package]] 907 | name = "phf_generator" 908 | version = "0.7.24" 909 | source = "registry+https://github.com/rust-lang/crates.io-index" 910 | checksum = "09364cc93c159b8b06b1f4dd8a4398984503483891b0c26b867cf431fb132662" 911 | dependencies = [ 912 | "phf_shared", 913 | "rand 0.6.5", 914 | ] 915 | 916 | [[package]] 917 | name = "phf_shared" 918 | version = "0.7.24" 919 | source = "registry+https://github.com/rust-lang/crates.io-index" 920 | checksum = "234f71a15de2288bcb7e3b6515828d22af7ec8598ee6d24c3b526fa0a80b67a0" 921 | dependencies = [ 922 | "siphasher", 923 | "unicase 1.4.2", 924 | ] 925 | 926 | [[package]] 927 | name = "pin-project" 928 | version = "0.4.17" 929 | source = "registry+https://github.com/rust-lang/crates.io-index" 930 | checksum = "edc93aeee735e60ecb40cf740eb319ff23eab1c5748abfdb5c180e4ce49f7791" 931 | dependencies = [ 932 | "pin-project-internal", 933 | ] 934 | 935 | [[package]] 936 | name = "pin-project-internal" 937 | version = "0.4.17" 938 | source = "registry+https://github.com/rust-lang/crates.io-index" 939 | checksum = "e58db2081ba5b4c93bd6be09c40fd36cb9193a8336c384f3b40012e531aa7e40" 940 | dependencies = [ 941 | "proc-macro2", 942 | "quote", 943 | "syn", 944 | ] 945 | 946 | [[package]] 947 | name = "pin-project-lite" 948 | version = "0.1.5" 949 | source = "registry+https://github.com/rust-lang/crates.io-index" 950 | checksum = "f7505eeebd78492e0f6108f7171c4948dbb120ee8119d9d77d0afa5469bef67f" 951 | 952 | [[package]] 953 | name = "pin-utils" 954 | version = "0.1.0" 955 | source = "registry+https://github.com/rust-lang/crates.io-index" 956 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 957 | 958 | [[package]] 959 | name = "ppv-lite86" 960 | version = "0.2.8" 961 | source = "registry+https://github.com/rust-lang/crates.io-index" 962 | checksum = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea" 963 | 964 | [[package]] 965 | name = "proc-macro-hack" 966 | version = "0.5.16" 967 | source = "registry+https://github.com/rust-lang/crates.io-index" 968 | checksum = "7e0456befd48169b9f13ef0f0ad46d492cf9d2dbb918bcf38e01eed4ce3ec5e4" 969 | 970 | [[package]] 971 | name = "proc-macro-nested" 972 | version = "0.1.4" 973 | source = "registry+https://github.com/rust-lang/crates.io-index" 974 | checksum = "8e946095f9d3ed29ec38de908c22f95d9ac008e424c7bcae54c75a79c527c694" 975 | 976 | [[package]] 977 | name = "proc-macro2" 978 | version = "1.0.17" 979 | source = "registry+https://github.com/rust-lang/crates.io-index" 980 | checksum = "1502d12e458c49a4c9cbff560d0fe0060c252bc29799ed94ca2ed4bb665a0101" 981 | dependencies = [ 982 | "unicode-xid", 983 | ] 984 | 985 | [[package]] 986 | name = "quick-error" 987 | version = "1.2.3" 988 | source = "registry+https://github.com/rust-lang/crates.io-index" 989 | checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" 990 | 991 | [[package]] 992 | name = "quote" 993 | version = "1.0.6" 994 | source = "registry+https://github.com/rust-lang/crates.io-index" 995 | checksum = "54a21852a652ad6f610c9510194f398ff6f8692e334fd1145fed931f7fbe44ea" 996 | dependencies = [ 997 | "proc-macro2", 998 | ] 999 | 1000 | [[package]] 1001 | name = "rand" 1002 | version = "0.6.5" 1003 | source = "registry+https://github.com/rust-lang/crates.io-index" 1004 | checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca" 1005 | dependencies = [ 1006 | "autocfg 0.1.7", 1007 | "libc", 1008 | "rand_chacha 0.1.1", 1009 | "rand_core 0.4.2", 1010 | "rand_hc 0.1.0", 1011 | "rand_isaac", 1012 | "rand_jitter", 1013 | "rand_os", 1014 | "rand_pcg", 1015 | "rand_xorshift", 1016 | "winapi 0.3.8", 1017 | ] 1018 | 1019 | [[package]] 1020 | name = "rand" 1021 | version = "0.7.3" 1022 | source = "registry+https://github.com/rust-lang/crates.io-index" 1023 | checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" 1024 | dependencies = [ 1025 | "getrandom", 1026 | "libc", 1027 | "rand_chacha 0.2.2", 1028 | "rand_core 0.5.1", 1029 | "rand_hc 0.2.0", 1030 | ] 1031 | 1032 | [[package]] 1033 | name = "rand_chacha" 1034 | version = "0.1.1" 1035 | source = "registry+https://github.com/rust-lang/crates.io-index" 1036 | checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef" 1037 | dependencies = [ 1038 | "autocfg 0.1.7", 1039 | "rand_core 0.3.1", 1040 | ] 1041 | 1042 | [[package]] 1043 | name = "rand_chacha" 1044 | version = "0.2.2" 1045 | source = "registry+https://github.com/rust-lang/crates.io-index" 1046 | checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" 1047 | dependencies = [ 1048 | "ppv-lite86", 1049 | "rand_core 0.5.1", 1050 | ] 1051 | 1052 | [[package]] 1053 | name = "rand_core" 1054 | version = "0.3.1" 1055 | source = "registry+https://github.com/rust-lang/crates.io-index" 1056 | checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b" 1057 | dependencies = [ 1058 | "rand_core 0.4.2", 1059 | ] 1060 | 1061 | [[package]] 1062 | name = "rand_core" 1063 | version = "0.4.2" 1064 | source = "registry+https://github.com/rust-lang/crates.io-index" 1065 | checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc" 1066 | 1067 | [[package]] 1068 | name = "rand_core" 1069 | version = "0.5.1" 1070 | source = "registry+https://github.com/rust-lang/crates.io-index" 1071 | checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" 1072 | dependencies = [ 1073 | "getrandom", 1074 | ] 1075 | 1076 | [[package]] 1077 | name = "rand_hc" 1078 | version = "0.1.0" 1079 | source = "registry+https://github.com/rust-lang/crates.io-index" 1080 | checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4" 1081 | dependencies = [ 1082 | "rand_core 0.3.1", 1083 | ] 1084 | 1085 | [[package]] 1086 | name = "rand_hc" 1087 | version = "0.2.0" 1088 | source = "registry+https://github.com/rust-lang/crates.io-index" 1089 | checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" 1090 | dependencies = [ 1091 | "rand_core 0.5.1", 1092 | ] 1093 | 1094 | [[package]] 1095 | name = "rand_isaac" 1096 | version = "0.1.1" 1097 | source = "registry+https://github.com/rust-lang/crates.io-index" 1098 | checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08" 1099 | dependencies = [ 1100 | "rand_core 0.3.1", 1101 | ] 1102 | 1103 | [[package]] 1104 | name = "rand_jitter" 1105 | version = "0.1.4" 1106 | source = "registry+https://github.com/rust-lang/crates.io-index" 1107 | checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b" 1108 | dependencies = [ 1109 | "libc", 1110 | "rand_core 0.4.2", 1111 | "winapi 0.3.8", 1112 | ] 1113 | 1114 | [[package]] 1115 | name = "rand_os" 1116 | version = "0.1.3" 1117 | source = "registry+https://github.com/rust-lang/crates.io-index" 1118 | checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071" 1119 | dependencies = [ 1120 | "cloudabi", 1121 | "fuchsia-cprng", 1122 | "libc", 1123 | "rand_core 0.4.2", 1124 | "rdrand", 1125 | "winapi 0.3.8", 1126 | ] 1127 | 1128 | [[package]] 1129 | name = "rand_pcg" 1130 | version = "0.1.2" 1131 | source = "registry+https://github.com/rust-lang/crates.io-index" 1132 | checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44" 1133 | dependencies = [ 1134 | "autocfg 0.1.7", 1135 | "rand_core 0.4.2", 1136 | ] 1137 | 1138 | [[package]] 1139 | name = "rand_xorshift" 1140 | version = "0.1.1" 1141 | source = "registry+https://github.com/rust-lang/crates.io-index" 1142 | checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c" 1143 | dependencies = [ 1144 | "rand_core 0.3.1", 1145 | ] 1146 | 1147 | [[package]] 1148 | name = "rdrand" 1149 | version = "0.4.0" 1150 | source = "registry+https://github.com/rust-lang/crates.io-index" 1151 | checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2" 1152 | dependencies = [ 1153 | "rand_core 0.3.1", 1154 | ] 1155 | 1156 | [[package]] 1157 | name = "redox_syscall" 1158 | version = "0.1.56" 1159 | source = "registry+https://github.com/rust-lang/crates.io-index" 1160 | checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" 1161 | 1162 | [[package]] 1163 | name = "regex" 1164 | version = "1.3.7" 1165 | source = "registry+https://github.com/rust-lang/crates.io-index" 1166 | checksum = "a6020f034922e3194c711b82a627453881bc4682166cabb07134a10c26ba7692" 1167 | dependencies = [ 1168 | "aho-corasick", 1169 | "memchr", 1170 | "regex-syntax", 1171 | "thread_local", 1172 | ] 1173 | 1174 | [[package]] 1175 | name = "regex-syntax" 1176 | version = "0.6.17" 1177 | source = "registry+https://github.com/rust-lang/crates.io-index" 1178 | checksum = "7fe5bd57d1d7414c6b5ed48563a2c855d995ff777729dcd91c369ec7fea395ae" 1179 | 1180 | [[package]] 1181 | name = "remove_dir_all" 1182 | version = "0.5.2" 1183 | source = "registry+https://github.com/rust-lang/crates.io-index" 1184 | checksum = "4a83fa3702a688b9359eccba92d153ac33fd2e8462f9e0e3fdf155239ea7792e" 1185 | dependencies = [ 1186 | "winapi 0.3.8", 1187 | ] 1188 | 1189 | [[package]] 1190 | name = "rustc-demangle" 1191 | version = "0.1.16" 1192 | source = "registry+https://github.com/rust-lang/crates.io-index" 1193 | checksum = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783" 1194 | 1195 | [[package]] 1196 | name = "rustc-hash" 1197 | version = "1.1.0" 1198 | source = "registry+https://github.com/rust-lang/crates.io-index" 1199 | checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" 1200 | 1201 | [[package]] 1202 | name = "ryu" 1203 | version = "1.0.4" 1204 | source = "registry+https://github.com/rust-lang/crates.io-index" 1205 | checksum = "ed3d612bc64430efeb3f7ee6ef26d590dce0c43249217bddc62112540c7941e1" 1206 | 1207 | [[package]] 1208 | name = "safemem" 1209 | version = "0.3.3" 1210 | source = "registry+https://github.com/rust-lang/crates.io-index" 1211 | checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072" 1212 | 1213 | [[package]] 1214 | name = "scoped-tls" 1215 | version = "1.0.0" 1216 | source = "registry+https://github.com/rust-lang/crates.io-index" 1217 | checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" 1218 | 1219 | [[package]] 1220 | name = "serde" 1221 | version = "1.0.110" 1222 | source = "registry+https://github.com/rust-lang/crates.io-index" 1223 | checksum = "99e7b308464d16b56eba9964e4972a3eee817760ab60d88c3f86e1fecb08204c" 1224 | dependencies = [ 1225 | "serde_derive", 1226 | ] 1227 | 1228 | [[package]] 1229 | name = "serde_derive" 1230 | version = "1.0.110" 1231 | source = "registry+https://github.com/rust-lang/crates.io-index" 1232 | checksum = "818fbf6bfa9a42d3bfcaca148547aa00c7b915bec71d1757aa2d44ca68771984" 1233 | dependencies = [ 1234 | "proc-macro2", 1235 | "quote", 1236 | "syn", 1237 | ] 1238 | 1239 | [[package]] 1240 | name = "serde_json" 1241 | version = "1.0.53" 1242 | source = "registry+https://github.com/rust-lang/crates.io-index" 1243 | checksum = "993948e75b189211a9b31a7528f950c6adc21f9720b6438ff80a7fa2f864cea2" 1244 | dependencies = [ 1245 | "itoa", 1246 | "ryu", 1247 | "serde", 1248 | ] 1249 | 1250 | [[package]] 1251 | name = "serde_urlencoded" 1252 | version = "0.6.1" 1253 | source = "registry+https://github.com/rust-lang/crates.io-index" 1254 | checksum = "9ec5d77e2d4c73717816afac02670d5c4f534ea95ed430442cad02e7a6e32c97" 1255 | dependencies = [ 1256 | "dtoa", 1257 | "itoa", 1258 | "serde", 1259 | "url", 1260 | ] 1261 | 1262 | [[package]] 1263 | name = "sha-1" 1264 | version = "0.8.2" 1265 | source = "registry+https://github.com/rust-lang/crates.io-index" 1266 | checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df" 1267 | dependencies = [ 1268 | "block-buffer", 1269 | "digest", 1270 | "fake-simd", 1271 | "opaque-debug", 1272 | ] 1273 | 1274 | [[package]] 1275 | name = "shlex" 1276 | version = "0.1.1" 1277 | source = "registry+https://github.com/rust-lang/crates.io-index" 1278 | checksum = "7fdf1b9db47230893d76faad238fd6097fd6d6a9245cd7a4d90dbd639536bbd2" 1279 | 1280 | [[package]] 1281 | name = "signal-hook-registry" 1282 | version = "1.2.0" 1283 | source = "registry+https://github.com/rust-lang/crates.io-index" 1284 | checksum = "94f478ede9f64724c5d173d7bb56099ec3e2d9fc2774aac65d34b8b890405f41" 1285 | dependencies = [ 1286 | "arc-swap", 1287 | "libc", 1288 | ] 1289 | 1290 | [[package]] 1291 | name = "siphasher" 1292 | version = "0.2.3" 1293 | source = "registry+https://github.com/rust-lang/crates.io-index" 1294 | checksum = "0b8de496cf83d4ed58b6be86c3a275b8602f6ffe98d3024a869e124147a9a3ac" 1295 | 1296 | [[package]] 1297 | name = "slab" 1298 | version = "0.4.2" 1299 | source = "registry+https://github.com/rust-lang/crates.io-index" 1300 | checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 1301 | 1302 | [[package]] 1303 | name = "smallvec" 1304 | version = "1.4.0" 1305 | source = "registry+https://github.com/rust-lang/crates.io-index" 1306 | checksum = "c7cb5678e1615754284ec264d9bb5b4c27d2018577fd90ac0ceb578591ed5ee4" 1307 | 1308 | [[package]] 1309 | name = "socket2" 1310 | version = "0.3.12" 1311 | source = "registry+https://github.com/rust-lang/crates.io-index" 1312 | checksum = "03088793f677dce356f3ccc2edb1b314ad191ab702a5de3faf49304f7e104918" 1313 | dependencies = [ 1314 | "cfg-if", 1315 | "libc", 1316 | "redox_syscall", 1317 | "winapi 0.3.8", 1318 | ] 1319 | 1320 | [[package]] 1321 | name = "static_assertions" 1322 | version = "1.1.0" 1323 | source = "registry+https://github.com/rust-lang/crates.io-index" 1324 | checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" 1325 | 1326 | [[package]] 1327 | name = "strsim" 1328 | version = "0.8.0" 1329 | source = "registry+https://github.com/rust-lang/crates.io-index" 1330 | checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" 1331 | 1332 | [[package]] 1333 | name = "syn" 1334 | version = "1.0.24" 1335 | source = "registry+https://github.com/rust-lang/crates.io-index" 1336 | checksum = "f87bc5b2815ebb664de0392fdf1b95b6d10e160f86d9f64ff65e5679841ca06a" 1337 | dependencies = [ 1338 | "proc-macro2", 1339 | "quote", 1340 | "unicode-xid", 1341 | ] 1342 | 1343 | [[package]] 1344 | name = "synstructure" 1345 | version = "0.12.3" 1346 | source = "registry+https://github.com/rust-lang/crates.io-index" 1347 | checksum = "67656ea1dc1b41b1451851562ea232ec2e5a80242139f7e679ceccfb5d61f545" 1348 | dependencies = [ 1349 | "proc-macro2", 1350 | "quote", 1351 | "syn", 1352 | "unicode-xid", 1353 | ] 1354 | 1355 | [[package]] 1356 | name = "tempfile" 1357 | version = "3.1.0" 1358 | source = "registry+https://github.com/rust-lang/crates.io-index" 1359 | checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" 1360 | dependencies = [ 1361 | "cfg-if", 1362 | "libc", 1363 | "rand 0.7.3", 1364 | "redox_syscall", 1365 | "remove_dir_all", 1366 | "winapi 0.3.8", 1367 | ] 1368 | 1369 | [[package]] 1370 | name = "termcolor" 1371 | version = "1.1.0" 1372 | source = "registry+https://github.com/rust-lang/crates.io-index" 1373 | checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" 1374 | dependencies = [ 1375 | "winapi-util", 1376 | ] 1377 | 1378 | [[package]] 1379 | name = "textwrap" 1380 | version = "0.11.0" 1381 | source = "registry+https://github.com/rust-lang/crates.io-index" 1382 | checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" 1383 | dependencies = [ 1384 | "unicode-width", 1385 | ] 1386 | 1387 | [[package]] 1388 | name = "thread_local" 1389 | version = "1.0.1" 1390 | source = "registry+https://github.com/rust-lang/crates.io-index" 1391 | checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" 1392 | dependencies = [ 1393 | "lazy_static", 1394 | ] 1395 | 1396 | [[package]] 1397 | name = "time" 1398 | version = "0.1.43" 1399 | source = "registry+https://github.com/rust-lang/crates.io-index" 1400 | checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" 1401 | dependencies = [ 1402 | "libc", 1403 | "winapi 0.3.8", 1404 | ] 1405 | 1406 | [[package]] 1407 | name = "tokio" 1408 | version = "0.2.21" 1409 | source = "registry+https://github.com/rust-lang/crates.io-index" 1410 | checksum = "d099fa27b9702bed751524694adbe393e18b36b204da91eb1cbbbbb4a5ee2d58" 1411 | dependencies = [ 1412 | "bytes", 1413 | "fnv", 1414 | "futures-core", 1415 | "iovec", 1416 | "lazy_static", 1417 | "libc", 1418 | "memchr", 1419 | "mio", 1420 | "mio-named-pipes", 1421 | "mio-uds", 1422 | "num_cpus", 1423 | "pin-project-lite", 1424 | "signal-hook-registry", 1425 | "slab", 1426 | "tokio-macros", 1427 | "winapi 0.3.8", 1428 | ] 1429 | 1430 | [[package]] 1431 | name = "tokio-macros" 1432 | version = "0.2.5" 1433 | source = "registry+https://github.com/rust-lang/crates.io-index" 1434 | checksum = "f0c3acc6aa564495a0f2e1d59fab677cd7f81a19994cfc7f3ad0e64301560389" 1435 | dependencies = [ 1436 | "proc-macro2", 1437 | "quote", 1438 | "syn", 1439 | ] 1440 | 1441 | [[package]] 1442 | name = "tokio-tungstenite" 1443 | version = "0.10.1" 1444 | source = "registry+https://github.com/rust-lang/crates.io-index" 1445 | checksum = "b8b8fe88007ebc363512449868d7da4389c9400072a3f666f212c7280082882a" 1446 | dependencies = [ 1447 | "futures", 1448 | "log 0.4.8", 1449 | "pin-project", 1450 | "tokio", 1451 | "tungstenite", 1452 | ] 1453 | 1454 | [[package]] 1455 | name = "tokio-util" 1456 | version = "0.3.1" 1457 | source = "registry+https://github.com/rust-lang/crates.io-index" 1458 | checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" 1459 | dependencies = [ 1460 | "bytes", 1461 | "futures-core", 1462 | "futures-sink", 1463 | "log 0.4.8", 1464 | "pin-project-lite", 1465 | "tokio", 1466 | ] 1467 | 1468 | [[package]] 1469 | name = "tower-service" 1470 | version = "0.3.0" 1471 | source = "registry+https://github.com/rust-lang/crates.io-index" 1472 | checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" 1473 | 1474 | [[package]] 1475 | name = "try-lock" 1476 | version = "0.2.2" 1477 | source = "registry+https://github.com/rust-lang/crates.io-index" 1478 | checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" 1479 | 1480 | [[package]] 1481 | name = "tungstenite" 1482 | version = "0.10.1" 1483 | source = "registry+https://github.com/rust-lang/crates.io-index" 1484 | checksum = "cfea31758bf674f990918962e8e5f07071a3161bd7c4138ed23e416e1ac4264e" 1485 | dependencies = [ 1486 | "base64 0.11.0", 1487 | "byteorder", 1488 | "bytes", 1489 | "http", 1490 | "httparse", 1491 | "input_buffer", 1492 | "log 0.4.8", 1493 | "rand 0.7.3", 1494 | "sha-1", 1495 | "url", 1496 | "utf-8", 1497 | ] 1498 | 1499 | [[package]] 1500 | name = "twoway" 1501 | version = "0.1.8" 1502 | source = "registry+https://github.com/rust-lang/crates.io-index" 1503 | checksum = "59b11b2b5241ba34be09c3cc85a36e56e48f9888862e19cedf23336d35316ed1" 1504 | dependencies = [ 1505 | "memchr", 1506 | ] 1507 | 1508 | [[package]] 1509 | name = "typenum" 1510 | version = "1.12.0" 1511 | source = "registry+https://github.com/rust-lang/crates.io-index" 1512 | checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" 1513 | 1514 | [[package]] 1515 | name = "unicase" 1516 | version = "1.4.2" 1517 | source = "registry+https://github.com/rust-lang/crates.io-index" 1518 | checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" 1519 | dependencies = [ 1520 | "version_check 0.1.5", 1521 | ] 1522 | 1523 | [[package]] 1524 | name = "unicase" 1525 | version = "2.6.0" 1526 | source = "registry+https://github.com/rust-lang/crates.io-index" 1527 | checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" 1528 | dependencies = [ 1529 | "version_check 0.9.2", 1530 | ] 1531 | 1532 | [[package]] 1533 | name = "unicode-bidi" 1534 | version = "0.3.4" 1535 | source = "registry+https://github.com/rust-lang/crates.io-index" 1536 | checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" 1537 | dependencies = [ 1538 | "matches", 1539 | ] 1540 | 1541 | [[package]] 1542 | name = "unicode-normalization" 1543 | version = "0.1.12" 1544 | source = "registry+https://github.com/rust-lang/crates.io-index" 1545 | checksum = "5479532badd04e128284890390c1e876ef7a993d0570b3597ae43dfa1d59afa4" 1546 | dependencies = [ 1547 | "smallvec", 1548 | ] 1549 | 1550 | [[package]] 1551 | name = "unicode-width" 1552 | version = "0.1.7" 1553 | source = "registry+https://github.com/rust-lang/crates.io-index" 1554 | checksum = "caaa9d531767d1ff2150b9332433f32a24622147e5ebb1f26409d5da67afd479" 1555 | 1556 | [[package]] 1557 | name = "unicode-xid" 1558 | version = "0.2.0" 1559 | source = "registry+https://github.com/rust-lang/crates.io-index" 1560 | checksum = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" 1561 | 1562 | [[package]] 1563 | name = "url" 1564 | version = "2.1.1" 1565 | source = "registry+https://github.com/rust-lang/crates.io-index" 1566 | checksum = "829d4a8476c35c9bf0bbce5a3b23f4106f79728039b726d292bb93bc106787cb" 1567 | dependencies = [ 1568 | "idna", 1569 | "matches", 1570 | "percent-encoding", 1571 | ] 1572 | 1573 | [[package]] 1574 | name = "urlencoding" 1575 | version = "1.0.0" 1576 | source = "registry+https://github.com/rust-lang/crates.io-index" 1577 | checksum = "3df3561629a8bb4c57e5a2e4c43348d9e29c7c29d9b1c4c1f47166deca8f37ed" 1578 | 1579 | [[package]] 1580 | name = "utf-8" 1581 | version = "0.7.5" 1582 | source = "registry+https://github.com/rust-lang/crates.io-index" 1583 | checksum = "05e42f7c18b8f902290b009cde6d651262f956c98bc51bca4cd1d511c9cd85c7" 1584 | 1585 | [[package]] 1586 | name = "uuid" 1587 | version = "0.8.1" 1588 | source = "registry+https://github.com/rust-lang/crates.io-index" 1589 | checksum = "9fde2f6a4bea1d6e007c4ad38c6839fa71cbb63b6dbf5b595aa38dc9b1093c11" 1590 | 1591 | [[package]] 1592 | name = "vec_map" 1593 | version = "0.8.2" 1594 | source = "registry+https://github.com/rust-lang/crates.io-index" 1595 | checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" 1596 | 1597 | [[package]] 1598 | name = "version_check" 1599 | version = "0.1.5" 1600 | source = "registry+https://github.com/rust-lang/crates.io-index" 1601 | checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" 1602 | 1603 | [[package]] 1604 | name = "version_check" 1605 | version = "0.9.2" 1606 | source = "registry+https://github.com/rust-lang/crates.io-index" 1607 | checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" 1608 | 1609 | [[package]] 1610 | name = "want" 1611 | version = "0.3.0" 1612 | source = "registry+https://github.com/rust-lang/crates.io-index" 1613 | checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" 1614 | dependencies = [ 1615 | "log 0.4.8", 1616 | "try-lock", 1617 | ] 1618 | 1619 | [[package]] 1620 | name = "warp" 1621 | version = "0.2.3" 1622 | source = "registry+https://github.com/rust-lang/crates.io-index" 1623 | checksum = "0e95175b7a927258ecbb816bdada3cc469cb68593e7940b96a60f4af366a9970" 1624 | dependencies = [ 1625 | "bytes", 1626 | "futures", 1627 | "headers", 1628 | "http", 1629 | "hyper", 1630 | "log 0.4.8", 1631 | "mime 0.3.16", 1632 | "mime_guess 2.0.3", 1633 | "multipart", 1634 | "pin-project", 1635 | "scoped-tls", 1636 | "serde", 1637 | "serde_json", 1638 | "serde_urlencoded", 1639 | "tokio", 1640 | "tokio-tungstenite", 1641 | "tower-service", 1642 | "urlencoding", 1643 | ] 1644 | 1645 | [[package]] 1646 | name = "wasi" 1647 | version = "0.9.0+wasi-snapshot-preview1" 1648 | source = "registry+https://github.com/rust-lang/crates.io-index" 1649 | checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" 1650 | 1651 | [[package]] 1652 | name = "which" 1653 | version = "3.1.1" 1654 | source = "registry+https://github.com/rust-lang/crates.io-index" 1655 | checksum = "d011071ae14a2f6671d0b74080ae0cd8ebf3a6f8c9589a2cd45f23126fe29724" 1656 | dependencies = [ 1657 | "libc", 1658 | ] 1659 | 1660 | [[package]] 1661 | name = "winapi" 1662 | version = "0.2.8" 1663 | source = "registry+https://github.com/rust-lang/crates.io-index" 1664 | checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1665 | 1666 | [[package]] 1667 | name = "winapi" 1668 | version = "0.3.8" 1669 | source = "registry+https://github.com/rust-lang/crates.io-index" 1670 | checksum = "8093091eeb260906a183e6ae1abdba2ef5ef2257a21801128899c3fc699229c6" 1671 | dependencies = [ 1672 | "winapi-i686-pc-windows-gnu", 1673 | "winapi-x86_64-pc-windows-gnu", 1674 | ] 1675 | 1676 | [[package]] 1677 | name = "winapi-build" 1678 | version = "0.1.1" 1679 | source = "registry+https://github.com/rust-lang/crates.io-index" 1680 | checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1681 | 1682 | [[package]] 1683 | name = "winapi-i686-pc-windows-gnu" 1684 | version = "0.4.0" 1685 | source = "registry+https://github.com/rust-lang/crates.io-index" 1686 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1687 | 1688 | [[package]] 1689 | name = "winapi-util" 1690 | version = "0.1.5" 1691 | source = "registry+https://github.com/rust-lang/crates.io-index" 1692 | checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" 1693 | dependencies = [ 1694 | "winapi 0.3.8", 1695 | ] 1696 | 1697 | [[package]] 1698 | name = "winapi-x86_64-pc-windows-gnu" 1699 | version = "0.4.0" 1700 | source = "registry+https://github.com/rust-lang/crates.io-index" 1701 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1702 | 1703 | [[package]] 1704 | name = "ws2_32-sys" 1705 | version = "0.2.1" 1706 | source = "registry+https://github.com/rust-lang/crates.io-index" 1707 | checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1708 | dependencies = [ 1709 | "winapi 0.2.8", 1710 | "winapi-build", 1711 | ] 1712 | 1713 | [[package]] 1714 | name = "xml-rs" 1715 | version = "0.8.3" 1716 | source = "registry+https://github.com/rust-lang/crates.io-index" 1717 | checksum = "b07db065a5cf61a7e4ba64f29e67db906fb1787316516c4e6e5ff0fea1efcd8a" 1718 | --------------------------------------------------------------------------------