From a8d10bc91c22196849228f24061408196069264a Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Wed, 11 Sep 2024 10:24:56 +0900 Subject: [PATCH] chore(cli_aut): feat flag to avoid clippy errors --- autonomi/Cargo.toml | 4 ++-- autonomi/src/lib.rs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/autonomi/Cargo.toml b/autonomi/Cargo.toml index a3fbe99138..6ba4aead48 100644 --- a/autonomi/Cargo.toml +++ b/autonomi/Cargo.toml @@ -4,10 +4,10 @@ version = "0.1.0" edition = "2021" [features] -default = [] +default = ["data"] full = ["data", "files", "fs", "registers", "transfers"] data = ["transfers"] -files = ["transfers"] +files = ["transfers", "data"] fs = [] local = ["sn_client/local-discovery"] registers = ["transfers"] diff --git a/autonomi/src/lib.rs b/autonomi/src/lib.rs index d3e835666b..3314d8a1b3 100644 --- a/autonomi/src/lib.rs +++ b/autonomi/src/lib.rs @@ -47,7 +47,10 @@ pub use client::{Client, ConnectError, CONNECT_TIMEOUT_SECS}; mod client; mod secrets; +#[cfg(feature = "data")] mod self_encryption; +#[cfg(feature = "transfers")] mod wallet; +#[cfg(feature = "transfers")] const VERIFY_STORE: bool = true;