Skip to content

Commit bfdb361

Browse files
committed
fix build problem when disable clap
1 parent 5b1f6ed commit bfdb361

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hyperparameter"
3-
version = "0.5.9"
3+
version = "0.5.10"
44
license = "Apache-2.0"
55
description = "A high performance configuration system for Rust."
66
homepage = "https://reiase.github.io/hyperparameter/"
@@ -16,7 +16,7 @@ exclude = [
1616
]
1717

1818
[features]
19-
default = ["json", "toml", "clap"]
19+
default = ["json", "toml"]
2020
json = ["config/json"]
2121
toml = ["config/toml"]
2222
clap = ["dep:linkme", "dep:clap"]

core/src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@ mod value;
77

88
mod api;
99
mod cfg;
10-
mod cli;
1110
mod ffi;
1211
mod xxh;
1312

1413
pub use crate::api::frozen;
1514
pub use crate::api::ParamScope;
1615
pub use crate::api::ParamScopeOps;
1716
pub use crate::cfg::AsParamScope;
18-
pub use crate::cli::generate_params_help;
19-
pub use crate::cli::PARAMS;
2017
pub use crate::storage::GetOrElse;
2118
pub use crate::storage::THREAD_STORAGE;
2219
pub use crate::value::Value;
2320
pub use crate::xxh::xxhash;
2421
pub use crate::xxh::XXHashable;
22+
23+
#[cfg(feature = "cli")]
24+
mod cli;
25+
#[cfg(feature = "cli")]
26+
pub use crate::cli::generate_params_help;
27+
#[cfg(feature = "cli")]
28+
pub use crate::cli::PARAMS;

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ include = ["hyperparameter/hyperparameter.h"]
1010

1111
[project]
1212
name = "hyperparameter"
13-
version = "0.5.6"
13+
version = "0.5.10"
1414
authors = [{ name = "Reiase", email = "reiase@gmail.com" }]
1515
description = "A hyper-parameter library for researchers, data scientists and machine learning engineers."
1616
requires-python = ">=3.7"

0 commit comments

Comments
 (0)