{"id":17712699,"url":"https://github.com/gribouille/netrc","last_synced_at":"2026-01-03T00:11:56.962Z","repository":{"id":218135866,"uuid":"743968021","full_name":"gribouille/netrc","owner":"gribouille","description":".netrc support for Rust","archived":false,"fork":false,"pushed_at":"2024-01-20T22:50:53.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T20:43:42.646Z","etag":null,"topics":["netrc","reqwest","reqwest-middleware","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","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/gribouille.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-16T11:15:11.000Z","updated_at":"2024-06-20T07:58:19.565Z","dependencies_parsed_at":"2024-06-20T07:58:13.439Z","dependency_job_id":"24b30009-f35c-4ebf-8d79-928c7fd7abd6","html_url":"https://github.com/gribouille/netrc","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"e572bbf5eecffb8c26acac97d4959d7c84dd377c"},"previous_names":["gribouille/netrc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gribouille%2Fnetrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gribouille%2Fnetrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gribouille%2Fnetrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gribouille%2Fnetrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gribouille","download_url":"https://codeload.github.com/gribouille/netrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243300868,"owners_count":20269261,"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":["netrc","reqwest","reqwest-middleware","rust","rust-lang"],"created_at":"2024-10-25T09:42:34.100Z","updated_at":"2026-01-03T00:11:56.927Z","avatar_url":"https://github.com/gribouille.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netrc\n\nA [netrc](https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html)\nlibrary for Rust, with support for [reqwest](https://crates.io/crates/reqwest)\nvia [reqwest-middleware](https://crates.io/crates/reqwest-middleware).\n\n\n## reqwest-netrc\n\nThe `reqwest-netrc` crate is a middleware for [reqwest](https://crates.io/crates/reqwest)\nto support the `netrc` file.\n\n[![crates.io][crates-badge-2]][crate-url-2]\n[![Documentation][doc-badge-2]][doc-url-2]\n[![MIT licensed][mit-badge]][mit-url]\n[![CI][actions-badge-2]][actions-url-2]\n\n\n### Usage\n\nTo bring this crate into your repository, either add `reqwest-netrc` to your\n`Cargo.toml`, or run:\n\n```\n\u003e cargo add reqwest-netrc\n```\n\n### Example\n\nThe common scenario is to have a `~/.netrc` file or the `NETRC` environement variable defined:\n\n```rust\nuse reqwest::Client;\nuse reqwest_middleware::ClientBuilder;\nuse reqwest_netrc::NetrcMiddleware;\n\n// ...\n\nlet client = ClientBuilder::new(Client::builder().build().unwrap())\n    .with_init(NetrcMiddleware::new().unwrap())\n    .build();\n\nlet res = client.get(\"https://domain.io/api/hello\").send().await;\n\n// ...\n```\n\n## rust-netrc\n\nThe `rust-netrc` crate is a parser for the `netrc` files.\n\n[![crates.io][crates-badge]][crate-url]\n[![Documentation][doc-badge]][doc-url]\n[![MIT licensed][mit-badge]][mit-url]\n[![CI][actions-badge]][actions-url]\n\n### Usage\n\nTo bring this crate into your repository, either add `rust-netrc` to your\n`Cargo.toml`, or run:\n\n```\n\u003e cargo add rust-netrc\n```\n\n### Example\n\n```rust\nuse netrc::Netrc;\n\nfn main() {\n  let nrc = Netrc::new().unwrap();\n\n  for (host, auth) in nrc.hosts {\n      println!(\"{host}: {auth:?}\");\n  }\n}\n```\n\n\n## Contributing\n\nFeedback and contributions are very welcome.\n\n\n## License\n\nThis project is licensed under [MIT](./LICENSE).\n\n\n[mit-badge]: https://img.shields.io/crates/l/rust-netrc.svg\n[mit-url]: ./LICENSE\n\n[crates-badge]: https://img.shields.io/crates/v/rust-netrc.svg\n[crate-url]: https://crates.io/crates/rust-netrc\n[doc-badge]: https://docs.rs/rust-netrc/badge.svg\n[doc-url]: https://docs.rs/rust-netrc\n[actions-badge]: https://github.com/gribouille/netrc/actions/workflows/rust-netrc.yml/badge.svg\n[actions-url]: https://github.com/gribouille/netrc/actions/workflows/rust-netrc.yml\n\n[crates-badge-2]: https://img.shields.io/crates/v/reqwest-netrc.svg\n[crate-url-2]: https://crates.io/crates/reqwest-netrc\n[doc-badge-2]: https://docs.rs/reqwest-netrc/badge.svg\n[doc-url-2]: https://docs.rs/reqwest-netrc\n[actions-badge-2]: https://github.com/gribouille/netrc/actions/workflows/reqwest-netrc.yml/badge.svg\n[actions-url-2]: https://github.com/gribouille/netrc/actions/workflows/reqwest-netrc.yml","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgribouille%2Fnetrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgribouille%2Fnetrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgribouille%2Fnetrc/lists"}