Skip to content

Instantly share code, notes, and snippets.

@pjenvey
pjenvey / out
Created February 1, 2019 23:18
$ cargo build -vvv -p libsqlite3-sys
Fresh pkg-config v0.3.14
Compiling libsqlite3-sys v0.11.1
Running `rustc --edition=2018 --crate-name build_script_build /home/pjenvey/.cargo/registry/src/github.com-1ecc6299db9ec823/libsqlite3-sys-0.11.1/build.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="min_sqlite_version_3_6_8"' --cfg 'feature="min_sqlite_version_3_7_7"' --cfg 'feature="pkg-config"' --cfg 'feature="sqlcipher"' --cfg 'feature="vcpkg"' -C metadata=10fc3d68df14e06a -C extra-filename=-10fc3d68df14e06a --out-dir /media/ext/pjenvey/src/moz/application-services/target/debug/build/libsqlite3-sys-10fc3d68df14e06a -L dependency=/media/ext/pjenvey/src/moz/application-services/target/debug/deps --extern pkg_config=/media/ext/pjenvey/src/moz/application-services/target/debug/deps/libpkg_config-a3f65465477e5815.rlib --cap-lints warn`
Running `/media/ext/pjenvey/src/moz/application-services/target/debug/build/libsqlite3-sys-10fc3d68
use failure::{Context, Fail};
use rusqlite;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug)]
pub struct Error {
inner: Context<ErrorKind>,
}
$ rustc --version
rustc 1.30.0 (da5f414c2 2018-10-24)
$ grep recursion_limit src/main.rs
#![recursion_limit="4096"]
$ cargo doc -q --document-private-items --no-deps > /dev/stdout 2>&1 | tee /tmp/out
error[E0275]: overflow evaluating the requirement `<&_ as diesel::Insertable<_>>::Values`
|
= help: consider adding a `#![recursion_limit="8192"]` attribute to your crate
= note: required because of the requirements on the impl of `diesel::Insertable<_>` for `(&_, &_, &_)`
= note: required because of the requirements on the impl of `diesel::Insertable<_>` for `&(_, _, _)`
diff --git a/channelserver/src/server.rs b/channelserver/src/server.rs
index 5de9069..bf2581a 100644
--- a/channelserver/src/server.rs
+++ b/channelserver/src/server.rs
@@ -278,7 +278,8 @@ impl Handler<Connect> for ChannelServer {
);
let chan_id = &msg.channel.to_simple();
// Is this a new channel request?
- if !self.channels.contains_key(&msg.channel) {
+ use std::collections::hash_map::Entry; // XXX:
diff --git a/src/web/error.rs b/src/web/error.rs
index c6035be0..0f855ebd 100644
--- a/src/web/error.rs
+++ b/src/web/error.rs
@@ -4,7 +4,7 @@ use std::fmt;
use actix_web::http::header::ToStrError;
use base64::DecodeError;
-use failure::{Backtrace, Context, Fail};
+use failure::{Backtrace, Context, Fail, SyncFailure};
use db::{Db, DbFuture, DbPool};
impl DbPool for MysqlDbPool {
//type Db = MysqlDb;
//fn get(&self) -> DbFuture<Self::Db> {
fn get(&self) -> DbFuture<Box<Db>> {
// XXX:
use futures::future::poll_fn;
use futures::Future;
use tokio_threadpool::blocking;
diff --git a/src/web/auth.rs b/src/web/auth.rs
index 35dd410e..b625083f 100644
--- a/src/web/auth.rs
+++ b/src/web/auth.rs
@@ -59,10 +59,7 @@ impl HawkPayload {
}
let header: HawkHeader = header[5..].parse()?;
- let id = header.id.as_ref().ok_or_else(|| {
- let error: ApiError = HawkErrorKind::MissingId.into();
@pjenvey
pjenvey / Pipfile
Created November 22, 2016 19:13
requests requirements
package('alabaster', '==0.7.7')
package('Babel', '==2.2.0')
package('coverage', '==4.0.3')
package('decorator', '==4.0.9')
package('docutils', '==0.12')
package('Flask', '==0.10.1')
package('httpbin', '==0.5.0')
package('itsdangerous', '==0.24')
package('Jinja2', '==2.8')
package('MarkupSafe', '==0.23')
package('alabaster', '0.7.7')
package('Babel', '2.2.0')
package('coverage', '4.0.3')
package('decorator', '4.0.9')
package('docutils', '0.12')
package('Flask', '0.10.1')
package('httpbin', '0.5.0')
package('itsdangerous', '0.24')
package('Jinja2', '2.8')
package('MarkupSafe', '0.23')
diff -r 6ccd15eec7cf pypy/doc/release-pypy2.7-v5.3.0.rst
--- a/pypy/doc/release-pypy2.7-v5.3.0.rst Sun Jun 05 23:32:04 2016 +0300
+++ b/pypy/doc/release-pypy2.7-v5.3.0.rst Sun Jun 05 13:43:43 2016 -0700
@@ -2,11 +2,12 @@
PyPy2.7 v5.3
============
-We have released PyPy2.7 v5.3, about six weeks after PyPy 5.1.
-This release includes further improvements for the CAPI compatibility layer
-which we call cpyext. In addtion to complete support for lxml, we now pass