Skip to content

Commit

Permalink
refactor(autonomi): remove data feature
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Dec 4, 2024
1 parent bdb24b9 commit 7924f23
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 20 deletions.
6 changes: 1 addition & 5 deletions ant-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ ant-build-info = { path = "../ant-build-info", version = "0.1.19" }
ant-logging = { path = "../ant-logging", version = "0.2.40" }
ant-peers-acquisition = { path = "../ant-peers-acquisition", version = "0.5.7" }
autonomi = { path = "../autonomi", version = "0.2.4", features = [
"data",
"fs",
"vault",
"registers",
Expand Down Expand Up @@ -61,10 +60,7 @@ tracing = { version = "~0.1.26" }
walkdir = "2.5.0"

[dev-dependencies]
autonomi = { path = "../autonomi", version = "0.2.4", features = [
"data",
"fs",
]}
autonomi = { path = "../autonomi", version = "0.2.4", features = ["fs"]}
criterion = "0.5.1"
eyre = "0.6.8"
rand = { version = "~0.8.5", features = ["small_rng"] }
Expand Down
13 changes: 6 additions & 7 deletions autonomi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ name = "autonomi"
crate-type = ["cdylib", "rlib"]

[features]
data = []
default = ["data", "vault"]
external-signer = ["ant-evm/external-signer", "data"]
default = ["vault"]
external-signer = ["ant-evm/external-signer"]
extension-module = ["pyo3/extension-module"]
fs = ["tokio/fs", "data"]
full = ["data", "registers", "vault", "fs"]
fs = ["tokio/fs"]
full = ["registers", "vault", "fs"]
local = ["ant-networking/local", "ant-evm/local"]
loud = []
registers = ["data"]
vault = ["data", "registers"]
registers = []
vault = ["registers"]
websockets = ["ant-networking/websockets"]

[dependencies]
Expand Down
4 changes: 0 additions & 4 deletions autonomi/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
pub mod address;
pub mod payment;

#[cfg(feature = "data")]
pub mod archive;
#[cfg(feature = "data")]
pub mod archive_private;
#[cfg(feature = "data")]
pub mod data;
#[cfg(feature = "data")]
pub mod data_private;
#[cfg(feature = "external-signer")]
pub mod external_signer;
Expand Down
2 changes: 0 additions & 2 deletions autonomi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
//!
//! - `fs`: Up/download files and directories from filesystem
//! - `registers`: Operate on register datatype
//! - `data`: Operate on raw bytes and chunks
//! - `vault`: Operate on Vault datatype
//! - `full`: All of above
//! - `local`: Discover local peers using mDNS. Useful for development.
Expand All @@ -39,7 +38,6 @@
extern crate tracing;

pub mod client;
#[cfg(feature = "data")]
mod self_encryption;
mod utils;

Expand Down
2 changes: 0 additions & 2 deletions autonomi/tests/put.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// KIND, either express or implied. Please review the Licences for the specific language governing
// permissions and limitations relating to use of the SAFE Network Software.

#![cfg(feature = "data")]

use ant_logging::LogBuilder;
use autonomi::Client;
use eyre::Result;
Expand Down

0 comments on commit 7924f23

Please sign in to comment.