Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
rustc --version
cargo --version
- name: 'Build RRG executable'
run: cargo build --features 'action-get_file_contents_kmx action-get_filesystem_timeline_tsk'
run: cargo build --features 'action-get_file_contents_kmx action-get_file_metadata_kmx action-get_filesystem_timeline_tsk'
# TODO: Add a step that runs tests with all action features disabled.
- name: 'Run RRG tests'
run: cargo test --features 'test-chattr test-setfattr test-fuse test-wtmp test-libguestfs action-get_file_contents_kmx action-get_filesystem_timeline_tsk'
run: cargo test --features 'test-chattr test-setfattr test-fuse test-wtmp test-libguestfs action-get_file_contents_kmx action-get_file_metadata_kmx action-get_filesystem_timeline_tsk'
1 change: 1 addition & 0 deletions crates/rrg-proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const PROTOS: &'static [&'static str] = &[
"../../proto/rrg/action/get_file_contents_kmx.proto",
"../../proto/rrg/action/get_file_sha256.proto",
"../../proto/rrg/action/get_file_metadata.proto",
"../../proto/rrg/action/get_file_metadata_kmx.proto",
"../../proto/rrg/action/get_filesystem_timeline.proto",
"../../proto/rrg/action/get_filesystem_timeline_tsk.proto",
"../../proto/rrg/action/get_system_metadata.proto",
Expand Down
9 changes: 9 additions & 0 deletions crates/rrg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ action-get_file_metadata = []
action-get_file_metadata-md5 = ["action-get_file_metadata", "dep:md-5"]
action-get_file_metadata-sha1 = ["action-get_file_metadata", "dep:sha1"]
action-get_file_metadata-sha256 = ["action-get_file_metadata", "dep:sha2"]
action-get_file_metadata_kmx = ["dep:keramics-core", "dep:keramics-datetime", "dep:keramics-formats", "dep:keramics-types", "dep:keramics-vfs"]
action-get_file_contents = ["dep:sha2"]
action-get_file_contents_kmx = ["dep:keramics-core", "dep:keramics-formats", "dep:keramics-types"]
action-get_file_sha256 = ["dep:sha2"]
Expand Down Expand Up @@ -120,6 +121,10 @@ optional = true
version = "0.0.0"
optional = true

[dependencies.keramics-datetime]
version = "0.0.0"
optional = true

[dependencies.keramics-formats]
version = "0.0.0"
optional = true
Expand All @@ -128,6 +133,10 @@ optional = true
version = "0.0.0"
optional = true

[dependencies.keramics-vfs]
version = "0.0.0"
optional = true

[dependencies.md-5]
version = "0.10.6"
optional = true
Expand Down
7 changes: 7 additions & 0 deletions crates/rrg/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ pub mod get_system_metadata;
#[cfg(feature = "action-get_file_metadata")]
pub mod get_file_metadata;

#[cfg(feature = "action-get_file_metadata_kmx")]
pub mod get_file_metadata_kmx;

#[cfg(feature = "action-get_file_contents")]
pub mod get_file_contents;

Expand Down Expand Up @@ -109,6 +112,10 @@ where
GetFileMetadata => {
handle(session, request, self::get_file_metadata::handle)
}
#[cfg(feature = "action-get_file_metadata_kmx")]
GetFileMetadataKmx => {
handle(session, request, self::get_file_metadata_kmx::handle)
}
#[cfg(feature = "action-get_file_contents")]
GetFileContents => {
handle(session, request, self::get_file_contents::handle)
Expand Down
Loading
Loading