Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: Flatten public module structure #190

Merged
merged 1 commit into from
Dec 20, 2024
Merged
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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,5 @@ jobs:
- name: Check documentation
run: |
export RUSTDOCFLAGS="-D warnings"
cargo doc --no-deps --features serde-extensions,virt
cargo doc --no-deps --package trussed-core --all-features
cargo doc --no-deps --workspace --all-features
if: matrix.target == 'x86_64-unknown-linux-gnu'
29 changes: 7 additions & 22 deletions core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,19 @@ use crate::{
};

#[cfg(feature = "attestation-client")]
mod attestation;
pub mod attestation;
#[cfg(feature = "certificate-client")]
mod certificate;
pub mod certificate;
#[cfg(feature = "counter-client")]
mod counter;
pub mod counter;
#[cfg(feature = "crypto-client")]
mod crypto;
pub mod crypto;
#[cfg(feature = "filesystem-client")]
mod filesystem;
pub mod filesystem;
#[cfg(feature = "management-client")]
mod management;
pub mod management;
#[cfg(feature = "ui-client")]
mod ui;

#[cfg(feature = "attestation-client")]
pub use attestation::AttestationClient;
#[cfg(feature = "certificate-client")]
pub use certificate::CertificateClient;
#[cfg(feature = "counter-client")]
pub use counter::CounterClient;
#[cfg(feature = "crypto-client")]
pub use crypto::*;
#[cfg(feature = "filesystem-client")]
pub use filesystem::FilesystemClient;
#[cfg(feature = "management-client")]
pub use management::ManagementClient;
#[cfg(feature = "ui-client")]
pub use ui::UiClient;
pub mod ui;

// to be fair, this is a programmer error,
// and could also just panic
Expand Down
Loading
Loading