Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rust/agama-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ rust-version.workspace = true
edition.workspace = true

[dependencies]
agama-utils = { path = "../agama-utils" }
agama-utils = { path = "../agama-utils", default-features = false }
anyhow = "1.0.98"
async-trait = "0.1.88"
cidr = { version = "0.3.1", features = ["serde"] }
Expand Down
6 changes: 5 additions & 1 deletion rust/agama-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ version = "0.1.0"
rust-version.workspace = true
edition.workspace = true

[features]
default = ["curl"]
curl = ["dep:agama-transfer"]

[dependencies]
agama-locale-data = { path = "../agama-locale-data" }
agama-transfer = { path = "../agama-transfer" }
agama-transfer = { path = "../agama-transfer", optional = true }
async-trait = "0.1.89"
camino = "1.2.1"
serde = { version = "1.0.228", features = ["derive"] }
Expand Down
5 changes: 5 additions & 0 deletions rust/agama-utils/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ pub use issue::{Issue, IssueMap, IssueWithScope};
mod system_info;
pub use system_info::SystemInfo;

#[cfg(feature = "curl")]
pub mod config;
#[cfg(feature = "curl")]
pub use config::Config;

mod raw_config;
pub use raw_config::RawConfig;

#[cfg(feature = "curl")]
pub mod patch;
#[cfg(feature = "curl")]
pub use patch::Patch;

mod proposal;
Expand All @@ -55,6 +59,7 @@ mod action;
pub use {action::Action, action::FinishMethod};

pub mod bootloader;
#[cfg(feature = "curl")]
pub mod files;
pub mod hostname;
pub mod iscsi;
Expand Down