Disable Facebook authentication for now.

It got broken when moving to the authentication subdirectory.
This commit is contained in:
Paul Lietar 2016-03-17 03:45:47 +00:00
parent 230c891df0
commit b051bfcc5b
4 changed files with 7 additions and 9 deletions

View file

@ -13,7 +13,7 @@ addons:
script:
- cargo build
- cargo build --features with-tremor
- cargo build --features facebook
#- cargo build --features facebook
# Building without syntex only works on nightly
- if [[ $(rustc --version) == *"nightly"* ]]; then
cargo build --no-default-features;

3
Cargo.lock generated
View file

@ -102,8 +102,6 @@ name = "cookie"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"openssl 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-serialize 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)",
"url 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
@ -169,7 +167,6 @@ dependencies = [
"log 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
"mime 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
"openssl 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)",
"rustc-serialize 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)",
"solicit 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
"time 0.1.34 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -58,6 +58,6 @@ json_macros = { git = "https://github.com/plietar/json_macros" }
discovery = ["dns-sd"]
with-syntex = ["syntex", "protobuf_macros/with-syntex", "json_macros/with-syntex"]
with-tremor = ["tremor"]
facebook = ["hyper/ssl", "openssl"]
#facebook = ["hyper/ssl", "openssl"]
static-appkey = []
default = ["with-syntex"]

View file

@ -172,10 +172,11 @@ pub fn discovery_login(device_name: &str, device_id: &str) -> Result<Credentials
Err(())
}
#[cfg(feature = "facebook")]
mod facebook;
#[cfg(feature = "facebook")]
pub use self::facebook::facebook_login;
//FIXME
//#[cfg(feature = "facebook")]
//mod facebook;
//#[cfg(feature = "facebook")]
//pub use self::facebook::facebook_login;
#[cfg(not(feature = "facebook"))]
pub fn facebook_login() -> Result<Credentials, ()> {
Err(())