Skip to content

Commit 4d5a147

Browse files
committed
Export EosVariant and FunctionalVariant at the crate root
1 parent dfafee6 commit 4d5a147

6 files changed

Lines changed: 17 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Changed
9+
- Export `EosVariant` and `FunctionalVariant` directly in the crate root instead of their own modules. [#62](https://github.com/feos-org/feos/pull/62)
810

911
## [0.3.0] - 2022-09-14
1012
- Major restructuring of the entire `feos` project. All individual models are reunited in the `feos` crate. `feos-core` and `feos-dft` still live as individual crates within the `feos` workspace.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords = ["physics", "thermodynamics", "equations_of_state", "phase_equilibria
1212
categories = ["science"]
1313

1414
[package.metadata.docs.rs]
15-
features = ["all_models"]
15+
features = ["all_models", "rayon"]
1616
rustdoc-args = [ "--html-in-header", "./docs-header.html" ]
1717

1818
[workspace]

feos-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ workspace = ".."
1515

1616
[package.metadata.docs.rs]
1717
rustdoc-args = [ "--html-in-header", "./docs-header.html" ]
18+
features = "rayon"
1819

1920
[dependencies]
2021
quantity = "0.5"

src/dft.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ use petgraph::graph::UnGraph;
1515
use petgraph::Graph;
1616
use quantity::si::*;
1717

18+
/// Collection of different [HelmholtzEnergyFunctional] implementations.
19+
///
20+
/// Particularly relevant for situations in which generic types
21+
/// are undesirable (e.g. FFI).
1822
#[derive(HelmholtzEnergyFunctional)]
1923
pub enum FunctionalVariant {
2024
#[cfg(feature = "pcsaft")]

src/eos.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ use feos_derive::EquationOfState;
1414
use ndarray::Array1;
1515
use quantity::si::*;
1616

17+
/// Collection of different [EquationOfState] implementations.
18+
///
19+
/// Particularly relevant for situations in which generic types
20+
/// are undesirable (e.g. FFI).
1721
#[derive(EquationOfState)]
1822
pub enum EosVariant {
1923
#[cfg(feature = "pcsaft")]

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@
3434
#![warn(clippy::all)]
3535
#![allow(clippy::too_many_arguments)]
3636
#[cfg(feature = "dft")]
37-
pub mod dft;
38-
pub mod eos;
37+
mod dft;
38+
#[cfg(feature = "dft")]
39+
pub use dft::FunctionalVariant;
40+
mod eos;
41+
pub use eos::EosVariant;
3942

4043
#[cfg(feature = "estimator")]
4144
pub mod estimator;

0 commit comments

Comments
 (0)