authorized_keys-rs
Parse and manipulate OpenSSH authorized_keys
files.
Installation
Cargo.toml
:
[]
= "0.9"
Features
- Parse
authorized_keys
files - Parse individual lines from
authorized_keys
files - Change the parts of a line (options, key type, encoded key, comments) with convenience methods
- Write
authorized_keys
files in the correct format - Depends on
pest
,pest_derive
by default:data-encoding
if you want to edit keys as bytes- No dependencies if you disable the default
parsing
feature
Contributing
Requirements
rustc
/cargo
1.34+ ([rustup
] recommended)cargo clippy --version
0.0.212+cargo fmt --version
1.0.3-stable+
Process
- Open an issue for the contribution you'd like to make
- Check for duplicates first :slightly_smiling_face:
- Fork the repository, make your changes on a branch
- Add tests for new features
- Ensure
just check
passes locally - Open a PR for the changes
- Add yourself as an author to
Cargo.toml
andREADME.md
, if you'd like!
- Add yourself as an author to
Authors
License
Rustfmt is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.