Skip to content

Commit

Permalink
fix build problem when disable clap
Browse files Browse the repository at this point in the history
  • Loading branch information
reiase committed Jun 16, 2024
1 parent 5b1f6ed commit 6b081d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "hyperparameter"
version = "0.5.9"
version = "0.5.10"
license = "Apache-2.0"
description = "A high performance configuration system for Rust."
homepage = "https://reiase.github.io/hyperparameter/"
readme = "examples/rust/README.md"
readme = "README.md"
repository = "https://github.com/reiase/hyperparameter"
authors = ["reiase <[email protected]>"]
edition = "2021"
Expand Down
10 changes: 7 additions & 3 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ mod value;

mod api;
mod cfg;
mod cli;
mod ffi;
mod xxh;

pub use crate::api::frozen;
pub use crate::api::ParamScope;
pub use crate::api::ParamScopeOps;
pub use crate::cfg::AsParamScope;
pub use crate::cli::generate_params_help;
pub use crate::cli::PARAMS;
pub use crate::storage::GetOrElse;
pub use crate::storage::THREAD_STORAGE;
pub use crate::value::Value;
pub use crate::xxh::xxhash;
pub use crate::xxh::XXHashable;

#[cfg(feature = "clap")]
mod cli;
#[cfg(feature = "clap")]
pub use crate::cli::generate_params_help;
#[cfg(feature = "clap")]
pub use crate::cli::PARAMS;
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = ["hyperparameter/hyperparameter.h"]

[project]
name = "hyperparameter"
version = "0.5.6"
version = "0.5.10"
authors = [{ name = "Reiase", email = "[email protected]" }]
description = "A hyper-parameter library for researchers, data scientists and machine learning engineers."
requires-python = ">=3.7"
Expand Down

0 comments on commit 6b081d8

Please sign in to comment.