From a071f3d4206c7ce6dc80c3bd4c7723e4e90772f0 Mon Sep 17 00:00:00 2001 From: Christian Visintin Date: Thu, 6 Jul 2023 11:02:53 +0200 Subject: [PATCH] feat: smb is now an optional feature (#200) --- Cargo.toml | 6 +++--- build.rs | 4 ++-- site/html/get-started.html | 11 ++++++----- site/lang/en.json | 5 +++-- site/lang/es.json | 3 ++- site/lang/fr.json | 3 ++- site/lang/it.json | 3 ++- site/lang/zh-CN.json | 3 ++- site/output.css | 2 +- 9 files changed, 23 insertions(+), 17 deletions(-) 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: