authorized_keys 0.9.0

Parse and manipulate OpenSSH `authorized_keys` files
Documentation

authorized_keys-rs

Parse and manipulate OpenSSH authorized_keys files.

Installation

Cargo.toml:

[features]
authorized_keys = "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

  1. Open an issue for the contribution you'd like to make
    • Check for duplicates first :slightly_smiling_face:
  2. Fork the repository, make your changes on a branch
  3. Add tests for new features
  4. Ensure just check passes locally
  5. Open a PR for the changes
    • Add yourself as an author to Cargo.toml and README.md, if you'd like!

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.