diff --git a/Cargo.toml b/Cargo.toml index 9d500b0..c63f944 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,13 +89,13 @@ serial_test = "^2.0" cfg_aliases = "0.1" [features] -default = ["with-keyring"] +default = ["smb", "with-keyring"] github-actions = [] with-keyring = ["keyring"] +smb = ["remotefs-smb"] -[target."cfg(not(target_os = \"macos\"))"] [target."cfg(not(target_os = \"macos\"))".dependencies] -remotefs-smb = "^0.2" +remotefs-smb = { version = "^0.2", optional = true } [target."cfg(target_family = \"windows\")"] [target."cfg(target_family = \"windows\")".dependencies] diff --git a/build.rs b/build.rs index e1dcbd8..2b7d1a8 100644 --- a/build.rs +++ b/build.rs @@ -9,7 +9,7 @@ fn main() { unix: { target_family = "unix" }, windows: { target_family = "windows" }, // exclusive features - smb: { not( macos ) }, - smb_unix: { all(unix, not(macos)) } + smb: { all(feature = "smb", not( macos )) }, + smb_unix: { all(unix, feature = "smb", not(macos)) } } } diff --git a/site/html/get-started.html b/site/html/get-started.html index 65dd276..05949af 100644 --- a/site/html/get-started.html +++ b/site/html/get-started.html @@ -145,14 +145,13 @@ sudo rpm -U termscp.rpm
  • pkg-config
  • -
  • libssh2
  • -
  • openssl-dev
  • +
  • libdbus-1
  • +
  • libsmbclient
  • FreeBSD: