netrc-parser
A Rust library for parsing and manipulating .netrc files.
netrc-parser provides a modern, idiomatic parser for .netrc files, supporting machine entries, login credentials, accounts, and macro definitions (macdef). It includes serialization to JSON and TOML, file I/O, and comprehensive error handling.
Installation
Add to your Cargo.toml:
[]
= "0.1.0"
Usage
Parse a .netrc file and retrieve credentials:
use ;
Run the example
Documentation
Run cargo doc --open to view the API documentation.
Development
Format code with rustfmt nightly
License
Licensed under the MIT. See LICENSE for details.
Contributing
Contributions are welcome! Please open a issue or pull request on Github