{"id":21001153,"url":"https://github.com/jabedude/acct","last_synced_at":"2025-05-14T23:32:30.603Z","repository":{"id":57478915,"uuid":"152912760","full_name":"jabedude/acct","owner":"jabedude","description":"Rust crate for processing acct(5) files","archived":false,"fork":false,"pushed_at":"2020-11-02T15:43:10.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T01:11:08.148Z","etag":null,"topics":["acct","accton","crates","file-processing","log","logging","parsing","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jabedude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-13T20:42:42.000Z","updated_at":"2024-10-11T14:45:01.000Z","dependencies_parsed_at":"2022-09-17T04:21:44.137Z","dependency_job_id":null,"html_url":"https://github.com/jabedude/acct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Facct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Facct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Facct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jabedude%2Facct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jabedude","download_url":"https://codeload.github.com/jabedude/acct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254248401,"owners_count":22039007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acct","accton","crates","file-processing","log","logging","parsing","rust"],"created_at":"2024-11-19T08:13:58.518Z","updated_at":"2025-05-14T23:32:25.572Z","avatar_url":"https://github.com/jabedude.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![acct title](https://github.com/jabedude/acct/raw/master/acct.png)\n\n# Rust acct - parse acct(5) files\n\n[![Crates.io](https://img.shields.io/crates/v/acct.svg)](https://crates.io/crates/acct)\n\nA library for handling UNIX process accounting files.\n\nTo install, add this line to your Cargo.toml:\n\n```toml\n[dependencies]\nacct = \"0.6.0\"\n```\n\n## Example\n```rust\n    let mut file = File::open(acct_file).unwrap();\n\n    let acct_file = AcctFile::new(\u0026mut file).unwrap();\n    for acct in \u0026acct_file.records {\n        let datetime = DateTime::\u003cUtc\u003e::from(acct.creation_time);\n        let timestamp_str = datetime.format(\"%Y-%m-%d %H:%M:%S.%f\").to_string();\n        println!(\"{}\\t{}\\t{:?}\\tSU:{}\", acct.command, acct.username, timestamp_str, acct.was_super_user());\n    }\n```\n\n## Documentation\n\n[acct reference](https://docs.rs/acct)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabedude%2Facct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjabedude%2Facct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjabedude%2Facct/lists"}