diff --git a/Cargo.toml b/Cargo.toml index 1c63369..a415f76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,7 +47,8 @@ features = ["sqlite"] [dependencies.reqwest] version = "0.13.4" -features = ["gzip", "json"] +default-features = false +features = ["gzip", "json", "native-tls"] [features] pym = ["pyo3"] diff --git a/src/plugins/chrome.rs b/src/plugins/chrome.rs index 27d6d74..d948a13 100644 --- a/src/plugins/chrome.rs +++ b/src/plugins/chrome.rs @@ -180,3 +180,15 @@ fn encryption_key() -> Result> { // Windows users should set `csrf`/`session` in the config manually. Err(Error::ChromeNotLogin) } + +// for headless installations stub functions are defined +// can add to stubs with cfg(any(...)) +#[cfg(target_os = "android")] +fn cookie_db_path() -> Option { + None +} + +#[cfg(target_os = "android")] +fn encryption_key() -> Result> { + Err(Error::ChromeNotLogin) +}