netplan-types

Crates.ionetplan-types
lib.rsnetplan-types
version
sourcesrc
created_at2022-04-20 10:15:31.474369+00
updated_at2025-03-26 12:58:28.791182+00
descriptionNetplan configuration types as Rust structs and enums
homepage
repositoryhttps://github.com/TobiasDeBruijn/netplan-types
max_upload_size
id570901
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Tobias de Bruijn (TobiasDeBruijn)

documentation

README

netplan-types

Motivation

This crate attempts to map the entire netplan configuration into Rust structs and enums. The 'layout' is as close to what you'd write in your netplan YAML files.

The intented use of this crate is to allow for easy editing of the network configuration via the netplan configuration files from a Rust program.

Based on the documentation from netplan, which can be found here Please note that I do not check the docs often for updates, if anything is missing or incorrect in the future, please open an issue or a pull-request so the issue can be addressed.

Features

  • serde [Default] Add serde support
  • derive_builder Enable the derive_builder crate for an automatically generated builder pattern API
  • schemars Allow generation of a JSON schema

License

This crate is licensed under the MIT license, or the Apache 2.0 license, at your discretion.

Commit count: 21

cargo fmt