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

RecordId should be public #234

Open
jtmoon79 opened this issue Mar 19, 2023 · 0 comments
Open

RecordId should be public #234

jtmoon79 opened this issue Mar 19, 2023 · 0 comments

Comments

@jtmoon79
Copy link

tl;dr make type RecordId public so it can be used

I'd like to store the RecordId instance for later processing. While I know the RecordId is a u64, it would nice if I could simply refer to RecordId.

As in this contrived example.

use ::evtx::EvtxParser;
use ::evtx::RecordId;

fn main() {
    let fp = PathBuf::new();
    let mut parser = EvtxParser::from_path(fp).unwrap();
    let mut ids: Vec<RecordId> = vec![];
    for record in parser.records() {
        match record {
            Ok(r) => {
                ids.push(r.event_record_id);
            },
            _ => {},
        }
    }
}

Currently, that code does not compile

error[E0432]: unresolved import `evtx::RecordId`
 --> src\main.rs:2:5
  |
2 | use ::evtx::RecordId;
  |     ^^^^^^^^^^^^^^^^ no `RecordId` in the root

Using evtx version 0.8.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant