Browse Source

Disable Facebook authentication for now.

It got broken when moving to the authentication subdirectory.
Paul Lietar 9 years ago
parent
commit
b051bfcc5b
4 changed files with 7 additions and 9 deletions
  1. 1 1
      .travis.yml
  2. 0 3
      Cargo.lock
  3. 1 1
      Cargo.toml
  4. 5 4
      src/authentication/mod.rs

+ 1 - 1
.travis.yml

@@ -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;

+ 0 - 3
Cargo.lock

@@ -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)",

+ 1 - 1
Cargo.toml

@@ -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"]

+ 5 - 4
src/authentication/mod.rs

@@ -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(())