{"id":19418165,"url":"https://github.com/lensvol/strfile-rs","last_synced_at":"2025-08-24T15:08:39.579Z","repository":{"id":57668795,"uuid":"45769426","full_name":"lensvol/strfile-rs","owner":"lensvol","description":"Tiny library for reading strfile headers.","archived":false,"fork":false,"pushed_at":"2016-10-04T20:26:18.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-08T07:04:55.580Z","etag":null,"topics":[],"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/lensvol.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":"2015-11-08T06:18:21.000Z","updated_at":"2021-06-28T11:26:44.000Z","dependencies_parsed_at":"2022-08-27T03:50:35.957Z","dependency_job_id":null,"html_url":"https://github.com/lensvol/strfile-rs","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/lensvol%2Fstrfile-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensvol%2Fstrfile-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensvol%2Fstrfile-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lensvol%2Fstrfile-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lensvol","download_url":"https://codeload.github.com/lensvol/strfile-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240599184,"owners_count":19826959,"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":[],"created_at":"2024-11-10T13:13:02.725Z","updated_at":"2025-02-25T03:41:47.550Z","avatar_url":"https://github.com/lensvol.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strfile-rs 0.1.0\n![crates.io badge](https://img.shields.io/crates/v/strfile.svg) ![TravisCI badge](https://travis-ci.org/lensvol/strfile-rs.svg)\n\nTiny crate for reading `strfile` headers, which are indexed representations of quote files used in `fortune` utility. \n\nIt is a hobby project, so pull requests are welcome. :)\n\n## Usage\n\n```rust\nextern crate strfile;\n\nuse strfile::Strfile;\n\nfn display_strfile_header(header: \u0026Strfile) {\n    println!(\"Version:\\t{}\", header.version);\n    println!(\"Strings:\\t{}\", header.number_of_strings);\n    println!(\"Longest:\\t{}\", header.longest_length);\n    println!(\"Shortest:\\t{}\", header.shortest_length);\n    println!(\"Delimeter:\\t{:?}\", header.delim as char);\n\n    println!(\"Randomized:\\t{}\", header.is_random());\n    println!(\"Ordered:\\t{}\", header.is_ordered());\n    println!(\"ROT13:\\t\\t{}\", header.is_rotated());\n    println!(\"Comments:\\t{}\\n\", header.has_comments());\n}   \n\nlet header = Strfile::parse(\"quotes.dat\").unwrap();\nlet quotes = h.read_quotes(quotes_fn).unwrap();\n\nprintln!(\"{:?}\", header);\n```\n\n## TODO\n\n* Support for headers generated on 64-bit machines\n* Construct headers from raw quotes file\n* Partial modification of headers (randomization of offsets, \"encrypting\" etc)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flensvol%2Fstrfile-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flensvol%2Fstrfile-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flensvol%2Fstrfile-rs/lists"}